From: Andrew Morton <akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
To: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org
Subject: Re: [patch 2.6.27-rc6] spi_s3c24xx: fix section warning
Date: Fri, 12 Sep 2008 15:52:00 -0700 [thread overview]
Message-ID: <20080912155200.3f58c477.akpm@linux-foundation.org> (raw)
In-Reply-To: <200809120944.13918.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
On Fri, 12 Sep 2008 09:44:13 -0700
David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org> wrote:
> From: Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>
>
> Fix the section mismatch warning generated by the iconrrect
> naming of s3c24xx_spidrv which should be s3c24xx_spi_driver:
>
> WARNING: drivers/spi/spi_s3c24xx.o(.data+0x4):
> Section mismatch in reference from the variable s3c24xx_spidrv
> to the (unknown reference) .exit.text:(unknown)
>
> Signed-off-by: Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>
> Signed-off-by: David Brownell <dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
> ---
> drivers/spi/spi_s3c24xx.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> --- a/drivers/spi/spi_s3c24xx.c
> +++ b/drivers/spi/spi_s3c24xx.c
> @@ -436,7 +436,7 @@ static int s3c24xx_spi_resume(struct pla
> #endif
>
> MODULE_ALIAS("platform:s3c2410-spi");
> -static struct platform_driver s3c24xx_spidrv = {
> +static struct platform_driver s3c24xx_spi_driver = {
> .remove = __exit_p(s3c24xx_spi_remove),
> .suspend = s3c24xx_spi_suspend,
> .resume = s3c24xx_spi_resume,
> @@ -448,12 +448,12 @@ static struct platform_driver s3c24xx_sp
>
> static int __init s3c24xx_spi_init(void)
> {
> - return platform_driver_probe(&s3c24xx_spidrv, s3c24xx_spi_probe);
> + return platform_driver_probe(&s3c24xx_spi_driver, s3c24xx_spi_probe);
> }
>
> static void __exit s3c24xx_spi_exit(void)
> {
> - platform_driver_unregister(&s3c24xx_spidrv);
> + platform_driver_unregister(&s3c24xx_spi_driver);
> }
>
> module_init(s3c24xx_spi_init);
whoa. We have kbuild magic which relies unpn a name ending in "_driver"?
Why did I just learn that. Do you know if this magic is described
anywhere?
Thanks.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
next prev parent reply other threads:[~2008-09-12 22:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-12 16:44 [patch 2.6.27-rc6] spi_s3c24xx: fix section warning David Brownell
[not found] ` <200809120944.13918.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-09-12 22:52 ` Andrew Morton [this message]
[not found] ` <20080912155200.3f58c477.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2008-09-12 23:54 ` David Brownell
[not found] ` <200809121654.08873.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-09-14 21:01 ` Ben Dooks
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=20080912155200.3f58c477.akpm@linux-foundation.org \
--to=akpm-de/tnxtf+jlsfhdxvbkv3wd2fqjk+8+b@public.gmane.org \
--cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
--cc=david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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 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.