FRV: Fix const sections change
authorAndi Kleen <[email protected]>
Mon, 15 Oct 2012 23:10:28 +0000 (00:10 +0100)
committerLinus Torvalds <[email protected]>
Wed, 17 Oct 2012 01:49:15 +0000 (18:49 -0700)
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 <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Signed-off-by: David Howells <[email protected]>
cc: Geert Uytterhoeven <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/frv/kernel/setup.c

index 1f1e5efb338514c17171b31c037427d1d5c5d5a4..b8993c87d3de8473d95141560fdb82aef0aa1085 100644 (file)
@@ -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 {