[kernel/private-jcm-arm-nosmp-kallsyms-f17] kallsyms: Temporary fix for kallsyms on !CONFIG_SMP

Jon Masters jcm at fedoraproject.org
Sun Mar 25 04:38:20 UTC 2012


commit 5e97d35e3e9044ac1145cc5e2a2025322d89a686
Author: Jon Masters <jcm at redhat.com>
Date:   Sun Mar 25 00:37:33 2012 -0400

    kallsyms: Temporary fix for kallsyms on !CONFIG_SMP
    
    Corrects a problem with kallsyms while discussing upstream.
    
    Signed-off-by: Jon Masters <jcm at redhat.com>

 arm-nosmp-fix-per_cpu-data-type-kallsyms.patch |   12 ++++++++++++
 kernel.spec                                    |    2 ++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/arm-nosmp-fix-per_cpu-data-type-kallsyms.patch b/arm-nosmp-fix-per_cpu-data-type-kallsyms.patch
new file mode 100644
index 0000000..e5dde58
--- /dev/null
+++ b/arm-nosmp-fix-per_cpu-data-type-kallsyms.patch
@@ -0,0 +1,12 @@
+--- linux-3.3.0-0.rc6.git2.3.fc15.armv7hl_percpu_problem/arch/arm/kernel/vmlinux.lds.S	2012-03-24 21:59:47.000000000 -0400
++++ linux-3.3.0-0.rc6.git2.3.fc15.armv7hl_test1/arch/arm/kernel/vmlinux.lds.S	2012-03-24 15:24:50.000000000 -0400
+@@ -183,7 +183,9 @@ SECTIONS
+ 	}
+ #endif
+ 
++#ifdef CONFIG_SMP
+ 	PERCPU_SECTION(L1_CACHE_BYTES)
++#endif
+ 
+ #ifdef CONFIG_XIP_KERNEL
+ 	__data_loc = ALIGN(4);		/* location in binary */
diff --git a/kernel.spec b/kernel.spec
index 971133b..d33b8d8 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -727,6 +727,7 @@ Patch20000: utrace.patch
 Patch21000: arm-omap-dt-compat.patch
 Patch21001: arm-smsc-support-reading-mac-address-from-device-tree.patch
 Patch21004: arm-tegra-nvec-kconfig.patch
+Patch21005: arm-nosmp-fix-per_cpu-data-type-kallsyms.patch
 
 # highbank patches
 # Highbank clock functions need to be EXPORT for module builds
@@ -1325,6 +1326,7 @@ ApplyPatch linux-2.6-i386-nx-emulation.patch
 #pplyPatch arm-omap-dt-compat.patch
 ApplyPatch arm-smsc-support-reading-mac-address-from-device-tree.patch
 ApplyPatch arm-tegra-nvec-kconfig.patch
+ApplyPatch arm-nosmp-fix-per_cpu-data-type-kallsyms.patch
 
 #
 # bugfixes to drivers and filesystems


More information about the scm-commits mailing list