Re: [PATCH] xen-platform: Constify dev_pm_ops

From: JÃrgen GroÃ
Date: Mon May 11 2020 - 04:12:10 EST


On 09.05.20 15:47, Rikard Falkeborn wrote:
dev_pm_ops is never modified, so mark it const to allow the compiler to
put it in read-only memory.

Before:
text data bss dec hex filename
2457 1668 256 4381 111d drivers/xen/platform-pci.o

After:
text data bss dec hex filename
2681 1444 256 4381 111d drivers/xen/platform-pci.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@xxxxxxxxx>

Reviewed-by: Juergen Gross <jgross@xxxxxxxx>


Juergen