All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] devtmpfs: Annotate devtmpfsd as __init
@ 2011-08-16 17:22 Fabio Estevam
  2011-08-16 17:30 ` Arnaud Lacombe
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2011-08-16 17:22 UTC (permalink / raw)
  To: linux-kernel; +Cc: gregkh, Fabio Estevam

This fixes the following:

WARNING: vmlinux.o(.text+0x1ed41c): Section mismatch in reference from the function devtmpfsd() to the (unknown reference) .init.data:(unknown)
The function devtmpfsd() references
the (unknown reference) __initdata (unknown).
This is often because devtmpfsd lacks a __initdata 
annotation or the annotation of (unknown) is wrong.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/base/devtmpfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c
index 33e1bed..7bd4860 100644
--- a/drivers/base/devtmpfs.c
+++ b/drivers/base/devtmpfs.c
@@ -386,7 +386,7 @@ static int handle(const char *name, mode_t mode, struct device *dev)
 		return handle_remove(name, dev);
 }
 
-static int devtmpfsd(void *p)
+static __init int devtmpfsd(void *p)
 {
 	char options[] = "mode=0755";
 	int *err = p;
-- 
1.6.0.4



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

end of thread, other threads:[~2011-08-16 18:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16 17:22 [PATCH] devtmpfs: Annotate devtmpfsd as __init Fabio Estevam
2011-08-16 17:30 ` Arnaud Lacombe
2011-08-16 17:57   ` Greg KH
2011-08-16 18:08     ` Arnaud Lacombe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.