From: Adrian Bunk <bunk@stusta.de>
To: Frank van Maarseveen <frankvm@frankvm.com>
Cc: linux-kernel@vger.kernel.org, stable@kernel.org,
Andrew Morton <akpm@linux-foundation.org>
Subject: [2.6 patch] arch/i386/kernel/smpboot.c:setup_trampoline() must be __cpuinit
Date: Tue, 10 Jul 2007 02:05:52 +0200 [thread overview]
Message-ID: <20070710000552.GM3492@stusta.de> (raw)
In-Reply-To: <20070709194853.GA3601@janus>
This patch fixes the following section mismatch reported by
Frank van Maarseveen:
<-- snip -->
...
MODPOST vmlinux
WARNING: arch/i386/kernel/built-in.o(.text+0xf201): Section mismatch: reference to .init.data:trampoline_end (between 'setup_trampoline' and 'cpu_coregroup_map')
WARNING: arch/i386/kernel/built-in.o(.text+0xf207): Section mismatch: reference to .init.data:trampoline_data (between 'setup_trampoline' and 'cpu_coregroup_map')
WARNING: arch/i386/kernel/built-in.o(.text+0xf21a): Section mismatch: reference to .init.data:trampoline_data (between 'setup_trampoline' and 'cpu_coregroup_map')
...
<-- snip -->
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
@stable:
Harmless but annoying warnings present when building an i386 SMP kernel
with CONFIG_HOTPLUG_CPU=n and gcc < 4.0 .
--- linux-2.6.22-rc6-mm1/arch/i386/kernel/smpboot.c.old 2007-07-10 01:26:07.000000000 +0200
+++ linux-2.6.22-rc6-mm1/arch/i386/kernel/smpboot.c 2007-07-10 01:26:18.000000000 +0200
@@ -117,7 +117,7 @@
* has made sure it's suitably aligned.
*/
-static unsigned long __devinit setup_trampoline(void)
+static unsigned long __cpuinit setup_trampoline(void)
{
memcpy(trampoline_base, trampoline_data, trampoline_end - trampoline_data);
return virt_to_phys(trampoline_base);
next prev parent reply other threads:[~2007-07-10 0:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-09 18:42 2.6.22: section mismatch warnings Frank van Maarseveen
2007-07-09 19:45 ` Adrian Bunk
2007-07-09 19:48 ` Frank van Maarseveen
2007-07-10 0:05 ` Adrian Bunk [this message]
2007-10-15 15:02 ` [2.6 patch] arch/i386/kernel/smpboot.c:setup_trampoline() must be __cpuinit Frank van Maarseveen
2007-07-10 0:10 ` [2.6 patch] arch/i386/kernel/cpu/intel_cacheinfo.c: fix section mismatch Adrian Bunk
2007-07-10 0:14 ` 2.6.22: section mismatch warnings Adrian Bunk
2007-07-10 8:34 ` Frank van Maarseveen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070710000552.GM3492@stusta.de \
--to=bunk@stusta.de \
--cc=akpm@linux-foundation.org \
--cc=frankvm@frankvm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox