From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6FC85DDDE7 for ; Wed, 3 Dec 2008 15:31:34 +1100 (EST) From: Kumar Gala To: herbert@gondor.apana.org.au Subject: [PATCH] crypto: talitos - Fix modpost warning Date: Tue, 2 Dec 2008 22:29:16 -0600 Message-Id: <1228278556-1056-1-git-send-email-galak@kernel.crashing.org> Cc: linuxppc-dev@ozlabs.org, linux-crypto@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Removed __devexit from talitos_remove() since its also called from talitos_probe(). WARNING: vmlinux.o(.text+0x28a008): Section mismatch in reference from the function talitos_probe() to the function .devexit.text:talitos_remove() The function talitos_probe() references a function in an exit section. Often the function talitos_remove() has valid usage outside the exit section and the fix is to remove the __devexit annotation of talitos_remove. Signed-off-by: Kumar Gala --- drivers/crypto/talitos.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index b6ad3ac..2479348 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -1357,7 +1357,7 @@ static int hw_supports(struct device *dev, __be32 desc_hdr_template) return ret; } -static int __devexit talitos_remove(struct of_device *ofdev) +static int talitos_remove(struct of_device *ofdev) { struct device *dev = &ofdev->dev; struct talitos_private *priv = dev_get_drvdata(dev); -- 1.5.6.5