Skip to content

Commit c17db64

Browse files
rikardfalkebornbostrovs
authored andcommitted
xen-platform: Constify dev_pm_ops
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Juergen Gross <[email protected]> Signed-off-by: Boris Ostrovsky <[email protected]>
1 parent c8d70a2 commit c17db64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/xen/platform-pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static const struct pci_device_id platform_pci_tbl[] = {
168168
{0,}
169169
};
170170

171-
static struct dev_pm_ops platform_pm_ops = {
171+
static const struct dev_pm_ops platform_pm_ops = {
172172
.resume_noirq = platform_pci_resume,
173173
};
174174

0 commit comments

Comments
 (0)