linux: pci/guestdev: cleanup data definitions
PATCH 1/1 linux: pci/guestdev: cleanup data definitions
Keep a local variable from polluting the global namespace, and move another one into .init.data since it's only being used by __init functions.
Signed-off-by Jan Beulich <[email protected]>
drivers/pci/guestdev.c +2 -2
@@ -81,8 +81,8 @@ struct pcidev_sbdf_node {static int reassign_resources =0 ; -static char guestdev_param[COMMAND_LINE_SIZE ]; -LIST_HEAD (guestdev_list); +static char __initdata guestdev_param[COMMAND_LINE_SIZE ]; +static LIST_HEAD (guestdev_list);/* Get hid and uid */ static int __init pci_get_hid_uid (char *str,char *hid,char *uid)
Subject: pci/guestdev: cleanup data definitions
Keep a local variable from polluting the global namespace, and move another one into .init.data since it's only being used by __init functions.
Signed-off-by Jan Beulich <[email protected]>
drivers/pci/guestdev.c +2 -2
@@ -81,8 +81,8 @@ struct pcidev_sbdf_node {static int reassign_resources =0 ; -static char guestdev_param[COMMAND_LINE_SIZE ]; -LIST_HEAD (guestdev_list); +static char __initdata guestdev_param[COMMAND_LINE_SIZE ]; +static LIST_HEAD (guestdev_list);/* Get hid and uid */ static int __init pci_get_hid_uid (char *str,char *hid,char *uid)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel