From: Jeff Garzik <jgarzik@pobox.com>
To: Anton Vorontsov <avorontsov@mvista.com>
Cc: "René Bolldorf" <xsecute@googlemail.com>, linux-ide@vger.kernel.org
Subject: Re: [PATCH] ahci_platform: Remove unneeded ahci_driver.probe assignment
Date: Thu, 01 Jul 2010 15:30:12 -0400 [thread overview]
Message-ID: <4C2CECC4.5030400@pobox.com> (raw)
In-Reply-To: <20100625122053.GA14391@oksana.dev.rtsoft.ru>
On 06/25/2010 08:20 AM, Anton Vorontsov wrote:
> The driver is using platform_driver_probe() during initialization,
> so ahci_driver.probe hook is never used.
>
> But it causes the following (harmless, luckily) section mismatch:
>
> WARNING: vmlinux.o(.data+0x2fb20): Section mismatch in reference
> from the variable ahci_driver to the function .init.text:ahci_probe()
>
> This patch removes the ahci_driver.probe assignment, thus fixes
> the warning.
>
> p.s. Note that there's another patch[1] from Rene Bolldorf that
> tried to solve the same issue by __refdata annotation. __refdata
> says that this reference is actually OK, but in fact it is not OK,
> because dereferencing .probe() will cause problems. So the proper
> fix is to remove the assignment.
>
> [1] http://kerneltrap.org/mailarchive/linux-kernel/2010/3/18/4549547
>
> Signed-off-by: Anton Vorontsov<avorontsov@mvista.com>
> ---
> drivers/ata/ahci_platform.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
applied
prev parent reply other threads:[~2010-07-01 19:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-25 12:20 [PATCH] ahci_platform: Remove unneeded ahci_driver.probe assignment Anton Vorontsov
2010-07-01 19:30 ` Jeff Garzik [this message]
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=4C2CECC4.5030400@pobox.com \
--to=jgarzik@pobox.com \
--cc=avorontsov@mvista.com \
--cc=linux-ide@vger.kernel.org \
--cc=xsecute@googlemail.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 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.