Skip to content

Commit c43d559

Browse files
aeglJeff Garzik
authored andcommitted
[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>
1 parent 6a2148c commit c43d559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ata/libata-sff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3342,7 +3342,7 @@ int __init ata_sff_init(void)
33423342
return 0;
33433343
}
33443344

3345-
void __exit ata_sff_exit(void)
3345+
void ata_sff_exit(void)
33463346
{
33473347
destroy_workqueue(ata_sff_wq);
33483348
}

0 commit comments

Comments
 (0)