mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fix initdata usage in i386/kernel/cpu/mtrr/generic.c
@ 2004-06-15  5:18 Randy.Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2004-06-15  5:18 UTC (permalink / raw)
  To: lkml; +Cc: akpm


Fix bad initdata use in cpu/mtrr/generic.c

Error: ./arch/i386/kernel/cpu/mtrr/generic.o .text refers to 0000038f R_386_32          .init.data

arch/i386/kernel/cpu/mtrr/generic.c
generic_set_all() uses __initdata smp_changes_mask.

smp_changes_mask should not be __initdata.

Error no longer reported by reference_init.pl.

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>


diffstat:=
 arch/i386/kernel/cpu/mtrr/generic.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naurp ./arch/i386/kernel/cpu/mtrr/generic.c~cpu_mtrr_gen ./arch/i386/kernel/cpu/mtrr/generic.c
--- ./arch/i386/kernel/cpu/mtrr/generic.c~cpu_mtrr_gen	2004-05-09 19:32:38.000000000 -0700
+++ ./arch/i386/kernel/cpu/mtrr/generic.c	2004-06-14 22:05:02.000000000 -0700
@@ -18,7 +18,7 @@ struct mtrr_state {
 	mtrr_type def_type;
 };
 
-static unsigned long smp_changes_mask __initdata = 0;
+static unsigned long smp_changes_mask;
 struct mtrr_state mtrr_state = {};
 
 


--
~Randy

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-15  5:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-15  5:18 [PATCH] fix initdata usage in i386/kernel/cpu/mtrr/generic.c Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®