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

[Xen-devel] [PATCH] properly __initdata-annotate command line option string buffers



Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--- 2009-08-18.orig/xen/arch/x86/acpi/power.c   2009-03-24 09:04:02.000000000 
+0100
+++ 2009-08-18/xen/arch/x86/acpi/power.c        2009-08-24 17:46:05.000000000 
+0200
@@ -32,7 +32,7 @@
 
 uint32_t system_reset_counter = 1;
 
-static char opt_acpi_sleep[20];
+static char __initdata opt_acpi_sleep[20];
 string_param("acpi_sleep", opt_acpi_sleep);
 
 static u8 sleep_states[ACPI_S_STATE_COUNT];
--- 2009-08-18.orig/xen/arch/x86/domain_build.c 2009-08-21 17:38:51.000000000 
+0200
+++ 2009-08-18/xen/arch/x86/domain_build.c      2009-08-24 17:40:18.000000000 
+0200
@@ -101,10 +101,10 @@ struct vcpu *__init alloc_dom0_vcpu0(voi
     return alloc_vcpu(dom0, 0, 0);
 }
 
-static unsigned int opt_dom0_shadow;
+static unsigned int __initdata opt_dom0_shadow;
 boolean_param("dom0_shadow", opt_dom0_shadow);
 
-static char opt_dom0_ioports_disable[200] = "";
+static char __initdata opt_dom0_ioports_disable[200] = "";
 string_param("dom0_ioports_disable", opt_dom0_ioports_disable);
 
 #if defined(__i386__)
--- 2009-08-18.orig/xen/common/gdbstub.c        2009-08-17 11:37:45.000000000 
+0200
+++ 2009-08-18/xen/common/gdbstub.c     2009-08-24 17:54:20.000000000 +0200
@@ -65,7 +65,7 @@ static atomic_t gdb_smp_paused_count;
 static void gdb_smp_pause(void);
 static void gdb_smp_resume(void);
 
-static char opt_gdb[30];
+static char __initdata opt_gdb[30];
 string_param("gdb", opt_gdb);
 
 static void gdbstub_console_puts(const char *str);
--- 2009-08-18.orig/xen/common/page_alloc.c     2009-08-07 09:20:56.000000000 
+0200
+++ 2009-08-18/xen/common/page_alloc.c  2009-08-24 17:53:10.000000000 +0200
@@ -45,7 +45,7 @@
  * Comma-separated list of hexadecimal page numbers containing bad bytes.
  * e.g. 'badpage=0x3f45,0x8a321'.
  */
-static char opt_badpage[100] = "";
+static char __initdata opt_badpage[100] = "";
 string_param("badpage", opt_badpage);
 
 /*
--- 2009-08-18.orig/xen/common/schedule.c       2009-07-15 16:34:17.000000000 
+0200
+++ 2009-08-18/xen/common/schedule.c    2009-08-24 17:53:43.000000000 +0200
@@ -35,7 +35,7 @@
 #include <xsm/xsm.h>
 
 /* opt_sched: scheduler - default to credit */
-static char opt_sched[10] = "credit";
+static char __initdata opt_sched[10] = "credit";
 string_param("sched", opt_sched);
 
 /* if sched_smt_power_savings is set,
--- 2009-08-18.orig/xen/drivers/char/console.c  2009-08-07 09:20:56.000000000 
+0200
+++ 2009-08-18/xen/drivers/char/console.c       2009-08-24 17:51:39.000000000 
+0200
@@ -36,7 +36,7 @@
 #include <public/sysctl.h>
 
 /* console: comma-separated list of console outputs. */
-static char opt_console[30] = OPT_CONSOLE_STR;
+static char __initdata opt_console[30] = OPT_CONSOLE_STR;
 string_param("console", opt_console);
 
 /* conswitch: a character pair controlling console switching. */
@@ -677,7 +677,7 @@ void __init console_endboot(void)
     switch_serial_input();
 }
 
-int console_has(const char *device)
+int __init console_has(const char *device)
 {
     char *p;
 
--- 2009-08-18.orig/xen/drivers/char/ns16550.c  2009-07-30 16:50:59.000000000 
+0200
+++ 2009-08-18/xen/drivers/char/ns16550.c       2009-08-24 17:49:42.000000000 
+0200
@@ -25,7 +25,8 @@
  * can be specified in place of a numeric baud rate. Polled mode is specified
  * by requesting irq 0.
  */
-static char opt_com1[30] = "", opt_com2[30] = "";
+static char __initdata opt_com1[30] = "";
+static char __initdata opt_com2[30] = "";
 string_param("com1", opt_com1);
 string_param("com2", opt_com2);
 
--- 2009-08-18.orig/xen/drivers/video/vga.c     2009-08-18 14:20:06.000000000 
+0200
+++ 2009-08-18/xen/drivers/video/vga.c  2009-08-24 17:48:32.000000000 +0200
@@ -48,7 +48,7 @@ void (*vga_puts)(const char *) = vga_noo
  * after domain 0 starts to boot. The default behaviour is to relinquish
  * control of the console to domain 0.
  */
-static char opt_vga[30] = "";
+static char __initdata opt_vga[30] = "";
 string_param("vga", opt_vga);
 
 /* VGA text-mode definitions. */




_______________________________________________
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®.