From: Luck, Tony Date: Mon, 23 Aug 2010 20:18:02 +0000 (-0700) Subject: [libata] Fix section mismatch: ata_sff_exit X-Git-Tag: v2.6.37-rc1~181^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c43d559f0423816bb2918d892131d21c51816c3d;p=pandora-kernel.git [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 Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed