mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Section mismatch: kernel/workqueue.c
@ 2008-02-04  2:57 Peter Teoh
  2008-02-04  5:55 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Teoh @ 2008-02-04  2:57 UTC (permalink / raw)
  To: LKML

During compilation of the linus tree the following warnings are encountered:

WARNING: kernel/built-in.o(.data+0x2480): Section mismatch in
reference from the variable workqueue_cpu_callback_nb.14223 to the
function .devinit.text:workqueue_cpu_callback()
The variable workqueue_cpu_callback_nb.14223 references
the function __devinit workqueue_cpu_callback()
If the reference is valid then annotate the
variable with __init* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

This fix is to correct the following warning during compilation.
Based on my "elementary" analysis, as it is called from other
non-__init functions, this function cannot be declared as __devinit(),
correct?   Please comment.   Thanks :-).

Signed-off-by: Peter Teoh <htmldeveloper@gmail.com>

--- workqueue.c.orig    2008-02-04 10:47:03.000000000 +0800
+++ workqueue.c 2008-02-04 10:45:49.000000000 +0800
@@ -825,7 +825,7 @@ void destroy_workqueue(struct workqueue_
 }
 EXPORT_SYMBOL_GPL(destroy_workqueue);

-static int __devinit workqueue_cpu_callback(struct notifier_block *nfb,
+static int workqueue_cpu_callback(struct notifier_block *nfb,
                                                unsigned long action,
                                                void *hcpu)
 {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-04  5:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-04  2:57 Section mismatch: kernel/workqueue.c Peter Teoh
2008-02-04  5:55 ` Sam Ravnborg

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®