WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] linux: pci/guestdev: cleanup data definitions

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux: pci/guestdev: cleanup data definitions
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Fri, 09 Jul 2010 10:08:43 +0100
Delivery-date: Fri, 09 Jul 2010 02:08:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux: pci/guestdev: cleanup data definitions, Jan Beulich <=