mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] resource.c: Fixing section mismatch warning .
@ 2008-10-30  3:35 Rakib Mullick
  2008-10-30  4:01 ` Rakib Mullick
  0 siblings, 1 reply; 2+ messages in thread
From: Rakib Mullick @ 2008-10-30  3:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ingo Molnar, Andrew Morton

 LD      kernel/built-in.o
WARNING: kernel/built-in.o(.text+0xfcad): Section mismatch in
reference from the function reserve_region_with_split() to the
function .init.text:__reserve_region_with_split()
The function reserve_region_with_split() references
the function __init __reserve_region_with_split().
This is often because reserve_region_with_split lacks a __init
annotation or the annotation of __reserve_region_with_split is wrong.

This patch fixes the above warning.

Thanks.

Signed-off-by: Md.Rakib H. Mullick <rakib.mullick@gmail.com>

--- linux-2.6-orig/kernel/resource.c	2008-10-28 20:52:38.000000000 +0600
+++ linux-2.6/kernel/resource.c	2008-10-28 22:34:44.000000000 +0600
@@ -571,7 +571,7 @@ static void __init __reserve_region_with

 }

-void reserve_region_with_split(struct resource *root,
+void __init reserve_region_with_split(struct resource *root,
 		resource_size_t start, resource_size_t end,
 		const char *name)
 {

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

end of thread, other threads:[~2008-10-30  4:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-30  3:35 [PATCH] resource.c: Fixing section mismatch warning Rakib Mullick
2008-10-30  4:01 ` Rakib Mullick

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®