diff options
author | Luck, Tony <tony.luck@intel.com> | 2010-08-23 20:18:02 (GMT) |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-10-22 00:21:04 (GMT) |
commit | c43d559f0423816bb2918d892131d21c51816c3d (patch) | |
tree | 4bf97746e892819999633cb9fca02c3abd1cc278 /drivers/ata/libata-sff.c | |
parent | 6a2148c6dc68cd221397a0b9d44ddb89802e5cc0 (diff) | |
download | linux-fsl-qoriq-c43d559f0423816bb2918d892131d21c51816c3d.tar.xz |
[libata] Fix section mismatch: ata_sff_exit
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>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r-- | drivers/ata/libata-sff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index e30c537..193f242 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c @@ -3342,7 +3342,7 @@ int __init ata_sff_init(void) return 0; } -void __exit ata_sff_exit(void) +void ata_sff_exit(void) { destroy_workqueue(ata_sff_wq); } |