* [PATCH] linux: pci/guestdev: cleanup data definitions
@ 2010-07-09 9:08 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2010-07-09 9:08 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
[-- Attachment #1: Type: text/plain, Size: 623 bytes --]
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@novell.com>
--- 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 #2: xenlinux-pci-guestdev-decls.patch --]
[-- Type: text/plain, Size: 668 bytes --]
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 <jbeulich@novell.com>
--- 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 #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-09 9:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-09 9:08 [PATCH] linux: pci/guestdev: cleanup data definitions Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).