mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Henrik Kretzschmar <henne@nachtwindheim.de>
To: steffen.klassert@secunet.com
Cc: herbert@gondor.apana.org.au, linux-kernel@vger.kernel.org,
	Henrik Kretzschmar <henne@nachtwindheim.de>
Subject: [PATCH] padata: section cleanup
Date: Sat, 27 Mar 2010 07:53:46 +0100	[thread overview]
Message-ID: <1269672826-1102-1-git-send-email-henne@nachtwindheim.de> (raw)

This patch removes the __cupinit from padata_cpu_callback(),
which is refered by the exportet function padata_alloc().

This could lead to problems if CONFIG_HOTPLUG_CPU is disabled,
which should happen very often.

WARNING: kernel/built-in.o(.text+0x7ffcb): Section mismatch in reference from the function padata_alloc() to the function .cpuinit.text:padata_cpu_callback()
The function padata_alloc() references
the function __cpuinit padata_cpu_callback().
This is often because padata_alloc lacks a __cpuinit
annotation or the annotation of padata_cpu_callback is wrong.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
---
 kernel/padata.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/padata.c b/kernel/padata.c
index 93caf65..32fdd5f 100644
--- a/kernel/padata.c
+++ b/kernel/padata.c
@@ -569,7 +569,7 @@ void padata_stop(struct padata_instance *pinst)
 }
 EXPORT_SYMBOL(padata_stop);
 
-static int __cpuinit padata_cpu_callback(struct notifier_block *nfb,
+static int padata_cpu_callback(struct notifier_block *nfb,
 					 unsigned long action, void *hcpu)
 {
 	int err;
-- 
1.7.0


             reply	other threads:[~2010-03-27  6:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-27  6:53 Henrik Kretzschmar [this message]
2010-03-29  7:42 ` Steffen Klassert
2010-03-29  8:15 ` Herbert Xu
2010-03-31 21:58   ` Andrew Morton
2010-04-01  0:24     ` Herbert Xu
2010-03-31 22:04       ` Andrew Morton
2010-04-01  1:38         ` Herbert Xu
2010-04-01  0:29           ` Andrew Morton
2010-04-01  7:15             ` David Miller
2010-04-01 13:59               ` Andrew Morton
2010-04-01  8:11     ` Steffen Klassert
2010-04-01 21:59       ` Andrew Morton
2010-04-02  1:09         ` Herbert Xu
2010-04-02 11:23         ` Steffen Klassert
2010-04-06 18:00       ` Jonathan Corbet
2010-04-07 13:34         ` Steffen Klassert
2010-04-29 12:14         ` Steffen Klassert

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=1269672826-1102-1-git-send-email-henne@nachtwindheim.de \
    --to=henne@nachtwindheim.de \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=steffen.klassert@secunet.com \
    /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®