From 1c442e5d3d82d64651f56e9f474543d2ca69febb Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 5 Jan 2011 14:36:33 -0600 Subject: [PATCH] add patch for sparc build failure --- ...t-__exit-in-n2_unregister_algs-fixes.patch | 26 +++++++++++++++++++ kernel.spec | 5 ++++ 2 files changed, 31 insertions(+) create mode 100644 0001-use-__devexit-not-__exit-in-n2_unregister_algs-fixes.patch diff --git a/0001-use-__devexit-not-__exit-in-n2_unregister_algs-fixes.patch b/0001-use-__devexit-not-__exit-in-n2_unregister_algs-fixes.patch new file mode 100644 index 000000000..a5c4c12dd --- /dev/null +++ b/0001-use-__devexit-not-__exit-in-n2_unregister_algs-fixes.patch @@ -0,0 +1,26 @@ +From 56a2432f60ea0a0c85a93b0951ae8507e5b85270 Mon Sep 17 00:00:00 2001 +From: dennis +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(-) + +diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c +index 88ee015..3372491 100644 +--- a/drivers/crypto/n2_core.c ++++ b/drivers/crypto/n2_core.c +@@ -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) +-- +1.6.6.1 + diff --git a/kernel.spec b/kernel.spec index a0ac5d9a8..516ffeb89 100644 --- a/kernel.spec +++ b/kernel.spec @@ -600,6 +600,7 @@ Patch31: linux-2.6-utrace.patch Patch32: linux-2.6-utrace-ptrace.patch Patch150: linux-2.6.29-sparc-IOC_TYPECHECK.patch +Patch151: 0001-use-__devexit-not-__exit-in-n2_unregister_algs-fixes.patch Patch160: linux-2.6-32bit-mmap-exec-randomization.patch Patch161: linux-2.6-i386-nx-emulation.patch @@ -1157,6 +1158,7 @@ ApplyPatch linux-2.6-utrace-ptrace.patch # SPARC64 # ApplyPatch linux-2.6.29-sparc-IOC_TYPECHECK.patch +ApplyPatch 0001-use-__devexit-not-__exit-in-n2_unregister_algs-fixes.patch # # Exec shield @@ -1951,6 +1953,9 @@ fi # || || %changelog +* Tue Jan 04 2011 Dennis Gilmore +- add patch for sparc build failure + * Tue Jan 04 2011 Kyle McMartin 2.6.37-1 - Track release of 2.6.37