From: Linus Torvalds <torvalds@linux-foundation.org>
To: Daniel J Blueman <daniel.blueman@gmail.com>,
Akinobu Mita <akinobu.mita@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [2.6.35-rc1, patch] fix cpu_chain section mismatch...
Date: Tue, 1 Jun 2010 08:49:33 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.2.00.1006010842350.3637@i5.linux-foundation.org> (raw)
In-Reply-To: <AANLkTilnTVvZOw-bIpcKS0VwhlpYWnnxvOevNv67hnga@mail.gmail.com>
On Tue, 1 Jun 2010, Daniel J Blueman wrote:
>
> In 2.6.35-rc1, __cpu_notify access cpu_chain, which shouldn't be
> marked __cpuinitdata (via section mismatch warning).
Hmm. Does this section mismatch go away if you instead mark cpu_notify(),
__cpu_notify() and cpu_notify_nofail as "inline"? Or alternatively, maybe
they should all be marked as __ref?
I think the section mismatch started happening when those wrapper
functions were created, but all the callers seem to be __ref or __cpuinit.
Or maybe we should just make that variable be non-cpuinitdata like your
patch suggests.
Does anybody have strong preferences (patch appended for reference)?
Linus
---
> Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>
>
> diff --git a/kernel/cpu.c b/kernel/cpu.c
> index 8b92539..97d1b42 100644
> --- a/kernel/cpu.c
> +++ b/kernel/cpu.c
> @@ -34,7 +34,7 @@ void cpu_maps_update_done(void)
> mutex_unlock(&cpu_add_remove_lock);
> }
>
> -static __cpuinitdata RAW_NOTIFIER_HEAD(cpu_chain);
> +static RAW_NOTIFIER_HEAD(cpu_chain);
>
> /* If set, cpu_up and cpu_down will return -EBUSY and do nothing.
> * Should always be manipulated under cpu_add_remove_lock
> --
> Daniel J Blueman
>
next prev parent reply other threads:[~2010-06-01 15:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-01 11:15 Daniel J Blueman
2010-06-01 15:49 ` Linus Torvalds [this message]
2010-06-01 16:02 ` Linus Torvalds
2010-06-01 20:49 ` Daniel J Blueman
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=alpine.LFD.2.00.1006010842350.3637@i5.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=akinobu.mita@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=daniel.blueman@gmail.com \
--cc=linux-kernel@vger.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
all inboxes | Powered by JetHome®