From: Jeremiah Mahler Date: Sat, 13 Jun 2015 04:56:40 +0000 (-0700) Subject: crypto: aesni - fix crypto_fpu_exit() section mismatch X-Git-Tag: omap-for-v4.2/fixes-rc1^2~164^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de1e00871d1e6ad803850b9eb1d4d32305187c26;p=pandora-kernel.git crypto: aesni - fix crypto_fpu_exit() section mismatch The '__init aesni_init()' function calls the '__exit crypto_fpu_exit()' function directly. Since they are in different sections, this generates a warning. make CONFIG_DEBUG_SECTION_MISMATCH=y ... WARNING: arch/x86/crypto/aesni-intel.o(.init.text+0x12b): Section mismatch in reference from the function init_module() to the function .exit.text:crypto_fpu_exit() The function __init init_module() references a function __exit crypto_fpu_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 crypto_fpu_exit() so it may be used outside an exit section. Fix the warning by removing the __exit annotation. Signed-off-by: Jeremiah Mahler Signed-off-by: Herbert Xu --- Reading git-diff-tree failed