Browse Source

cris: Fix conflicting types for _etext, _edata, _end

Include asm/sections.h header which contains the correct
types for _etext, _edata and _end - char arrays.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Sergey Senozhatsky 7 years ago
parent
commit
fd989db807
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/cris/kernel/setup.c

+ 1 - 1
arch/cris/kernel/setup.c

@@ -24,6 +24,7 @@
 #include <linux/of_fdt.h>
 #include <linux/of_fdt.h>
 #include <asm/setup.h>
 #include <asm/setup.h>
 #include <arch/system.h>
 #include <arch/system.h>
+#include <asm/sections.h>
 
 
 /*
 /*
  * Setup options
  * Setup options
@@ -31,7 +32,6 @@
 struct screen_info screen_info;
 struct screen_info screen_info;
 
 
 extern int root_mountflags;
 extern int root_mountflags;
-extern char _etext, _edata, _end;
 
 
 char __initdata cris_command_line[COMMAND_LINE_SIZE] = { 0, };
 char __initdata cris_command_line[COMMAND_LINE_SIZE] = { 0, };