properly __initdata-annotate command line option string buffers
PATCH 1/1 properly __initdata-annotate command line option string buffers
Signed-off-by Jan Beulich <[email protected]>
xen/arch/x86/acpi/power.c +1 -1
@@ -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 ];
xen/arch/x86/domain_build.c +2 -2
@@ -101,10 +101,10 @@ struct vcpu *__init alloc_dom0_vcpu0(voireturn 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__)
xen/common/gdbstub.c +1 -1
@@ -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);
xen/common/page_alloc.c +1 -1
@@ -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);/*
xen/common/schedule.c +1 -1
@@ -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,
xen/drivers/char/console.c +2 -2
@@ -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;
xen/drivers/char/ns16550.c +2 -1
@@ -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);
xen/drivers/video/vga.c +1 -1
@@ -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. */