From: Tejun Heo <tj@kernel.org>
To: "Luck, Tony" <tony.luck@intel.com>, Jeff Garzik <jgarzik@redhat.com>
Cc: linux-next@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: [PATCH] Fix section mismatch: ata_sff_exit
Date: Tue, 24 Aug 2010 10:47:33 +0200 [thread overview]
Message-ID: <4C738725.5070101@kernel.org> (raw)
In-Reply-To: <4c72d77a17302aa2a9@agluck-desktop.sc.intel.com>
On 08/23/2010 10:18 PM, Luck, Tony wrote:
> This build error showed up in linux-next tag next-20100820 for ia64:
>
> WARNING: vmlinux.o(.init.text+0x4a952): Section mismatch in reference from the function ata_init() to the function .exit.text:ata_sff_exit()
> The function __init ata_init() references
> a function __exit ata_sff_exit().
> This is often seen when error handling in the init function
> uses functionality in the exit path.
> The fix is often to remove the __exit annotation of
> ata_sff_exit() so it may be used outside an exit section.
>
> Sure enough, dropping the __exit fixes the problem.
>
> Signed-off-by: Tony Luck <tony.luck@intel.com>
> ---
>
> Tejun: I didn't pin down which commit broke this ... but you seem
> to have a number of recent commits here.
It's the scsi transport addition. It adds an init failure case where
ata_sff_exit() is called to undo initialization, so your fix is
correct.
Acked-by: Tejun Heo <tj@kernel.org>
Thanks.
--
tejun
prev parent reply other threads:[~2010-08-24 8:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-23 20:18 [PATCH] Fix section mismatch: ata_sff_exit Luck, Tony
2010-08-24 8:47 ` Tejun Heo [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=4C738725.5070101@kernel.org \
--to=tj@kernel.org \
--cc=jgarzik@redhat.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=tony.luck@intel.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.