cris: Fix conflicting types for _etext, _edata, _end
PATCH 1/1 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.
--- arch/cris/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/cris/kernel/setup.c +1 -1
@@ -24,6 +24,7 @@#include <linux/of_fdt.h> #include <asm/setup.h> #include <arch/system.h> +#include <asm/sections.h> /* * Setup options
@@ -31,7 +32,6 @@struct screen_info screen_info;extern int root_mountflags; -extern char _etext, _edata, _end;char __initdata cris_command_line[COMMAND_LINE_SIZE ] = {0 , };
Signature · 1 line
2.15.1
Quoted 4 lines · Sergey Senozhatsky
Include
asm/sections.hheader which contains the correct types for_etext,_edataand_end- char arrays.Signed-off-by Sergey Senozhatsky <[email protected]>
Mikael, Jesper,
any opinions?
-ss
Quoted 27 lines
--- arch/cris/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/cris/kernel/setup.c +1
-1@@ -24,6 +24,7 @@#include <linux/of_fdt.h> #include <asm/setup.h> #include <arch/system.h> +#include <asm/sections.h> /* * Setup options @@ -31,7 +32,6 @@struct screen_info screen_info;extern int root_mountflags; -extern char _etext, _edata, _end;char __initdata cris_command_line[COMMAND_LINE_SIZE ] = {0 , };Signature · 1 line
2.15.1
Quoted 9 lines · Sergey Senozhatsky
Quoted 4 lines · Sergey Senozhatsky
Include
asm/sections.hheader which contains the correct types for_etext,_edataand_end- char arrays.Signed-off-by Sergey Senozhatsky <[email protected]>Mikael, Jesper,
any opinions?
This looks sane, and I can take it in the CRIS tree, allthough I'm currently pondering the future of the CRIS port, lack of time and active hardware are increasing problems.
Quoted 1 line
-ss
/Jesper
Quoted 19 lines
Quoted 19 lines
--- arch/cris/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/cris/kernel/setup.c +1
-0@@ -24,6 +24,7 @@#include <linux/of_fdt.h> #include <asm/setup.h> #include <arch/system.h> +#include <asm/sections.h> /* * Setup options @@ -31,7 +32,6 @@struct screen_info screen_info;
Quoted 8 lines
Quoted 8 lines
arch/cris/kernel/setup.c +0
-1extern int root_mountflags; -extern char _etext, _edata, _end;char __initdata cris_command_line[COMMAND_LINE_SIZE ] = {0 , };Signature · 1 line
2.15.1
/^JN - Jesper Nilsson
Signature · 1 line
Jesper Nilsson -- [email protected]
Quoted 7 lines · Jesper Nilsson
Quoted 6 lines · Sergey Senozhatsky
Quoted 4 lines · Sergey Senozhatsky
Include
asm/sections.hheader which contains the correct types for_etext,_edataand_end- char arrays.Signed-off-by Sergey Senozhatsky <[email protected]>
Quoted 7 lines
Quoted 3 lines
Mikael, Jesper,
any opinions?
This looks sane, and I can take it in the CRIS tree, allthough I'm currently pondering the future of the CRIS port, lack of time and active hardware are increasing problems.
ah, got it... didn't know that.
we have a number of patches in linux-next which introduce some changes to commonly used header files and we saw build errors on other platforms because of conflicting etext/etc types. so I just grepped arch/ and applied the same fix to CRIS.
-ss