[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] 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 <jbeulich@xxxxxxxxxx>

--- a/drivers/pci/guestdev.c
+++ b/drivers/pci/guestdev.c
@@ -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)



Attachment: xenlinux-pci-guestdev-decls.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.