Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755334AbbFOKTv (ORCPT ); Mon, 15 Jun 2015 06:19:51 -0400 Received: from helcar.hengli.com.au ([209.40.204.226]:58898 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753471AbbFOKTo (ORCPT ); Mon, 15 Jun 2015 06:19:44 -0400 Date: Mon, 15 Jun 2015 18:19:22 +0800 From: Herbert Xu To: Jeremiah Mahler Cc: "David S. Miller" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: aesni-intel: fix crypto_fpu_exit() section mismatch Message-ID: <20150615101922.GB32751@gondor.apana.org.au> References: <1434171400-10566-1-git-send-email-jmmahler@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434171400-10566-1-git-send-email-jmmahler@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1296 Lines: 31 On Fri, Jun 12, 2015 at 09:56:40PM -0700, Jeremiah Mahler wrote: > 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 Applied. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/