Skip to contentSkip to conversation

use __devexit not __exit in n2_unregister_algs fixes build

PATCH In review Dennis Gilmore 2 participants 2 messages Jan 5, 2011 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use __devexit not __exit in n2_unregister_algs fixes build

Kernel builds on fedora have been failing with

.exit.text' referenced in section .devexit.text' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o
+ /usr/lib/rpm/debugedit -b /builddir/build/BUILD -d /usr/src/debug -i .tmp_vmlinux1
Failed to open input file '.tmp_vmlinux1': No such file or directory

the attached patch fixes building.

Dennis

From 56a2432f60ea0a0c85a93b0951ae8507e5b85270 Mon Sep 17 00:00:00 2001
From: dennis <[email protected]>
Date: Wed, 5 Jan 2011 19:43:25 +0000
Subject: [PATCH] use __devexit not __exit in n2_unregister_algs fixes build failure on fedora

thanks to kylem for helping with debugging

---
 drivers/crypto/n2_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/crypto/n2_core.c +1 -1
index 88ee015..3372491 100644
@@ -1542,7 +1542,7 @@ out:
 	return err;
 }
 
-static void __exit n2_unregister_algs(void)
+static void __devexit n2_unregister_algs(void)
 {
 	mutex_lock(&spu_lock);
 	if (!--algs_registered)
Signature · 1 line
1.6.6.1
maintainer
#1 lore raw

Re: [patch] use __devexit not __exit in n2_unregister_algs fixes

From: Dennis Gilmore <[email protected]>
Date: Wed, 5 Jan 2011 14:05:10 -0600

Quoted 7 lines

Kernel builds on fedora have been failing with

.exit.text' referenced in section .devexit.text' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o
+ /usr/lib/rpm/debugedit -b /builddir/build/BUILD -d /usr/src/debug -i .tmp_vmlinux1
Failed to open input file '.tmp_vmlinux1': No such file or directory

the attached patch fixes building.

Please read Documentation/SubmittingPatches to learn how to write a proper commit message for your patch, in particular you need to add a proper "Signed-off-by: " tag.

Also, this patch, as it's a crypto driver patch, needs to be sent to [email protected] and Herber Xu ([email protected]) the crypto layer maintainer.