From: Fabio Estevam <fabio.estevam@freescale.com>
To: <linux-kernel@vger.kernel.org>
Cc: <gregkh@suse.de>, Fabio Estevam <fabio.estevam@freescale.com>
Subject: [PATCH] devtmpfs: Annotate devtmpfsd as __init
Date: Tue, 16 Aug 2011 14:22:35 -0300 [thread overview]
Message-ID: <1313515355-28920-1-git-send-email-fabio.estevam@freescale.com> (raw)
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
next reply other threads:[~2011-08-16 17:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-16 17:22 Fabio Estevam [this message]
2011-08-16 17:30 ` Arnaud Lacombe
2011-08-16 17:57 ` Greg KH
2011-08-16 18:08 ` Arnaud Lacombe
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=1313515355-28920-1-git-send-email-fabio.estevam@freescale.com \
--to=fabio.estevam@freescale.com \
--cc=gregkh@suse.de \
--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®