]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.20.2/fix-compile-error-for-e500-core-based-processors.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.20.2 / fix-compile-error-for-e500-core-based-processors.patch
1 From stable-bounces@linux.kernel.org Fri Feb 9 07:44:05 2007
2 From: Rojhalat Ibrahim <imr@rtschenk.de>
3 Date: Fri, 9 Feb 2007 09:39:57 -0600 (CST)
4 Subject: Fix compile error for e500 core based processors
5 To: stable@kernel.org
6 Cc: imr@rtschenk.de, linux-kernel@vger.kernel.org, linuxppc-embedded@ozlabs.org
7 Message-ID: <Pine.LNX.4.64.0702090938360.26617@localhost.localdomain>
8
9 From: Rojhalat Ibrahim <imr@rtschenk.de>
10
11 We get the following compiler error:
12
13 CC arch/ppc/kernel/ppc_ksyms.o
14 arch/ppc/kernel/ppc_ksyms.c:275: error: '__mtdcr' undeclared here (not in a function)
15 arch/ppc/kernel/ppc_ksyms.c:275: warning: type defaults to 'int' in declaration of '__mtdcr'
16 arch/ppc/kernel/ppc_ksyms.c:276: error: '__mfdcr' undeclared here (not in a function)
17 arch/ppc/kernel/ppc_ksyms.c:276: warning: type defaults to 'int' in declaration of '__mfdcr'
18 make[1]: *** [arch/ppc/kernel/ppc_ksyms.o] Error 1
19
20 This is due to the EXPORT_SYMBOL for __mtdcr/__mfdcr not having the proper CONFIG protection
21
22 Signed-off-by: Rojhalat Ibrahim <imr@rtschenk.de>
23 Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
24 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
25
26 ---
27 arch/ppc/kernel/ppc_ksyms.c | 2 +-
28 1 file changed, 1 insertion(+), 1 deletion(-)
29
30 --- linux-2.6.20.1.orig/arch/ppc/kernel/ppc_ksyms.c
31 +++ linux-2.6.20.1/arch/ppc/kernel/ppc_ksyms.c
32 @@ -270,7 +270,7 @@ EXPORT_SYMBOL(mmu_hash_lock); /* For MOL
33 extern long *intercept_table;
34 EXPORT_SYMBOL(intercept_table);
35 #endif /* CONFIG_PPC_STD_MMU */
36 -#if defined(CONFIG_40x) || defined(CONFIG_BOOKE)
37 +#ifdef CONFIG_PPC_DCR_NATIVE
38 EXPORT_SYMBOL(__mtdcr);
39 EXPORT_SYMBOL(__mfdcr);
40 #endif