Skip to contentSkip to conversation

cris: Fix conflicting types for _etext, _edata, _end

PATCH In review Sergey Senozhatsky 3 participants 4 messages Jan 5, 2018 – Jan 12, 2018

lore
Share & tools
lore
#0 lore raw

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
index 524d47501a23..1b61a7207afb 100644
@@ -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
#1 lore raw
Quoted 4 lines · Sergey Senozhatsky

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

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
index 524d47501a23..1b61a7207afb 100644
@@ -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
#2 lore raw
Quoted 9 lines · Sergey Senozhatsky
Quoted 4 lines · Sergey Senozhatsky

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

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
index 524d47501a23..1b61a7207afb 100644
@@ -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 -1
 extern 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]
#3 lore raw
Quoted 7 lines · Jesper Nilsson
Quoted 6 lines · Sergey Senozhatsky
Quoted 4 lines · Sergey Senozhatsky

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

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