From: Rakib Mullick <rakib.mullick@gmail.com>
To: sameo@openedhand.com
Cc: LKML <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH -mm] mfd: Fix section mismatch in sm501.c
Date: Sat, 14 Feb 2009 09:59:58 +0600 [thread overview]
Message-ID: <b9df5fa10902131959r4f9b9aa6mc00389011b7ce8a1@mail.gmail.com> (raw)
This patch fixes the following warning, caused due to a call from
function sm501_register_gpio() to a function
sm501_gpio_register_chip() which is marked as __devinit function.
LD drivers/mfd/built-in.o
WARNING: drivers/mfd/built-in.o(.text+0x16ca): Section mismatch in
reference from the function sm501_register_gpio() to the function
.devinit.text:sm501_gpio_register_chip()
The function sm501_register_gpio() references
the function __devinit sm501_gpio_register_chip().
This is often because sm501_register_gpio lacks a __devinit
annotation or the annotation of sm501_gpio_register_chip is wrong.
WARNING: drivers/mfd/built-in.o(.text+0x1706): Section mismatch in
reference from the function sm501_register_gpio() to the function
.devinit.text:sm501_gpio_register_chip()
The function sm501_register_gpio() references
the function __devinit sm501_gpio_register_chip().
This is often because sm501_register_gpio lacks a __devinit
annotation or the annotation of sm501_gpio_register_chip is wrong.
Thanks.
---
Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
--- linus/drivers/mfd/sm501.c 2009-02-13 11:26:48.000000000 +0600
+++ rakib/drivers/mfd/sm501.c 2009-02-13 23:34:06.317833808 +0600
@@ -1050,7 +1050,7 @@ static int __devinit sm501_gpio_register
return gpiochip_add(gchip);
}
-static int sm501_register_gpio(struct sm501_devdata *sm)
+static int __devinit sm501_register_gpio(struct sm501_devdata *sm)
{
struct sm501_gpio *gpio = &sm->gpio;
resource_size_t iobase = sm->io_res->start + SM501_GPIO;
reply other threads:[~2009-02-14 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=b9df5fa10902131959r4f9b9aa6mc00389011b7ce8a1@mail.gmail.com \
--to=rakib.mullick@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@openedhand.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®