Sam Ravnborg 69e97c028b x86: silence section mismatch warning in smpboot_64.c
Silence the following warning:
WARNING: o-x86_64/arch/x86/kernel/built-in.o(.text+0x17cd3): Section mismatch in reference from the function remove_cpu_from_maps() to the variable .cpuinit.data:cpu_initialized

remove_cpu:maps() had a single user: __cpu_disable() so
mark it static and annotate it with __ref to silence the
warning from modpost.

_cpu_disable() has a single user in kernel/cpu.c:
 => take_cpu_down()
    which again has a single user in the following call:
    => __stop_machine_run(take_cpu_down, &tcd_param, cpu);
Here a kthread is created.

So maybe the warning is correct and the right fix is to
remove the __cpuinitdata annotation of cpu_initialized?

Note: The analysis were disturbed by the fact that we had a variable
      with the same name in cpu/common.c - but this is 32 bit only]
Note: Should smpboot_64 use cpu_clear()?

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-02-01 17:49:41 +01:00
..
2008-01-31 22:05:45 +01:00
2007-10-17 21:19:04 +02:00
2008-01-30 13:33:14 +01:00
2008-01-30 13:31:12 +01:00
2007-10-11 11:17:01 +02:00
2007-10-11 11:17:24 +02:00
2008-01-30 13:33:23 +01:00
2007-10-19 11:53:33 -07:00
2007-10-13 10:01:23 -07:00
2008-01-30 13:31:31 +01:00
2008-01-31 22:05:47 +01:00
2008-01-30 13:33:32 +01:00
2007-10-11 11:17:01 +02:00
2008-01-30 13:31:19 +01:00
2008-01-30 13:31:23 +01:00
2008-02-01 17:49:41 +01:00
2008-01-30 13:31:55 +01:00
2008-01-30 13:33:14 +01:00
2008-01-30 13:33:14 +01:00
2008-01-30 13:30:28 +01:00
2008-01-30 13:33:10 +01:00
2007-10-11 11:17:24 +02:00
2008-01-30 13:33:23 +01:00
2008-01-30 13:33:14 +01:00
2008-01-30 13:31:12 +01:00
2008-01-30 13:34:09 +01:00
2007-10-13 10:01:23 -07:00
2008-01-30 13:33:23 +01:00
2007-10-11 11:17:01 +02:00
2007-10-11 11:17:24 +02:00
2008-01-24 20:40:04 -08:00
2008-01-30 13:30:33 +01:00
2008-01-30 13:30:33 +01:00
2008-01-30 13:33:19 +01:00
2008-01-30 13:30:31 +01:00
2008-01-30 13:34:07 +01:00
2007-10-11 11:17:01 +02:00
2008-01-30 13:33:25 +01:00
2007-10-11 11:17:01 +02:00
2007-10-11 11:17:24 +02:00
2008-01-30 13:32:40 +01:00
2008-01-30 13:33:24 +01:00
2007-10-11 11:17:01 +02:00
2008-01-30 13:33:23 +01:00
2008-01-30 13:33:53 +01:00
2008-01-30 13:33:23 +01:00
2007-10-20 01:13:56 +02:00
2007-10-17 08:42:55 -07:00
2007-10-11 11:17:01 +02:00
2008-01-30 13:31:52 +01:00
2008-01-30 13:31:52 +01:00
2007-10-17 20:16:08 +02:00
2007-10-17 20:16:08 +02:00
2008-01-30 13:33:49 +01:00
2008-01-30 13:33:33 +01:00
2008-01-30 13:33:24 +01:00
2007-10-11 11:17:24 +02:00
2008-01-30 13:31:42 +01:00
2007-10-11 11:17:01 +02:00
2008-01-30 13:32:39 +01:00
2008-01-30 13:31:10 +01:00