summaryrefslogtreecommitdiff
path: root/arch/frv
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2012-10-16 00:10:28 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-16 18:49:15 -0700
commitb4b5087173d09507f425714bc8d270615e5800b1 (patch)
tree2241fedcc482c75b954d603e5c91c59d9ce129e5 /arch/frv
parentce7bfc7cde0acd46a1d342fd64a0be15ad9e7930 (diff)
downloadlinux-3.10-b4b5087173d09507f425714bc8d270615e5800b1.tar.gz
linux-3.10-b4b5087173d09507f425714bc8d270615e5800b1.tar.bz2
linux-3.10-b4b5087173d09507f425714bc8d270615e5800b1.zip
FRV: Fix const sections change
Add __pminitconst to fix the build, otherwise the following error can occur: arch/frv/kernel/setup.c:187:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token arch/frv/kernel/setup.c:386:2: error: 'clock_cmodes' undeclared (first use in this function) arch/frv/kernel/setup.c:571:6: error: 'clock_cmodes' undeclared (first use in this function) make[2]: *** [arch/frv/kernel/setup.o] Error 1 http://kisskb.ellerman.id.au/kisskb/buildresult/7344691/ Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: David Howells <dhowells@redhat.com> cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/frv')
-rw-r--r--arch/frv/kernel/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/frv/kernel/setup.c b/arch/frv/kernel/setup.c
index 1f1e5efb338..b8993c87d3d 100644
--- a/arch/frv/kernel/setup.c
+++ b/arch/frv/kernel/setup.c
@@ -112,9 +112,11 @@ char __initdata redboot_command_line[COMMAND_LINE_SIZE];
#ifdef CONFIG_PM
#define __pminit
#define __pminitdata
+#define __pminitconst
#else
#define __pminit __init
#define __pminitdata __initdata
+#define __pminitconst __initconst
#endif
struct clock_cmode {