public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cris: Fix conflicting types for _etext, _edata, _end
@ 2018-01-05  2:47 Sergey Senozhatsky
  2018-01-11 14:12 ` Sergey Senozhatsky
  0 siblings, 1 reply; 4+ messages in thread
From: Sergey Senozhatsky @ 2018-01-05  2:47 UTC (permalink / raw)
  To: Mikael Starvik, Jesper Nilsson
  Cc: Fenghua Yu, linux-cris-kernel, linux-kernel, Sergey Senozhatsky

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>
---
 arch/cris/kernel/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/cris/kernel/setup.c b/arch/cris/kernel/setup.c
index 524d47501a23..1b61a7207afb 100644
--- a/arch/cris/kernel/setup.c
+++ b/arch/cris/kernel/setup.c
@@ -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, };
 
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] cris: Fix conflicting types for _etext, _edata, _end
  2018-01-05  2:47 [PATCH] cris: Fix conflicting types for _etext, _edata, _end Sergey Senozhatsky
@ 2018-01-11 14:12 ` Sergey Senozhatsky
  2018-01-11 14:24   ` Jesper Nilsson
  0 siblings, 1 reply; 4+ messages in thread
From: Sergey Senozhatsky @ 2018-01-11 14:12 UTC (permalink / raw)
  To: Mikael Starvik, Jesper Nilsson
  Cc: Fenghua Yu, linux-cris-kernel, linux-kernel, Sergey Senozhatsky,
	Sergey Senozhatsky

On (01/05/18 11:47), Sergey Senozhatsky wrote:
> 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>

Mikael, Jesper,

any opinions?

	-ss

> ---
>  arch/cris/kernel/setup.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/cris/kernel/setup.c b/arch/cris/kernel/setup.c
> index 524d47501a23..1b61a7207afb 100644
> --- a/arch/cris/kernel/setup.c
> +++ b/arch/cris/kernel/setup.c
> @@ -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, };
>  
> -- 
> 2.15.1
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] cris: Fix conflicting types for _etext, _edata, _end
  2018-01-11 14:12 ` Sergey Senozhatsky
@ 2018-01-11 14:24   ` Jesper Nilsson
  2018-01-12  1:34     ` Sergey Senozhatsky
  0 siblings, 1 reply; 4+ messages in thread
From: Jesper Nilsson @ 2018-01-11 14:24 UTC (permalink / raw)
  To: Sergey Senozhatsky
  Cc: Mikael Starvik, Jesper Nilsson, Fenghua Yu, linux-cris-kernel,
	linux-kernel, Sergey Senozhatsky

On Thu, Jan 11, 2018 at 11:12:51PM +0900, Sergey Senozhatsky wrote:
> On (01/05/18 11:47), Sergey Senozhatsky wrote:
> > 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>
> 
> 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.

> 	-ss

/Jesper

> > ---
> >  arch/cris/kernel/setup.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/arch/cris/kernel/setup.c b/arch/cris/kernel/setup.c
> > index 524d47501a23..1b61a7207afb 100644
> > --- a/arch/cris/kernel/setup.c
> > +++ b/arch/cris/kernel/setup.c
> > @@ -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, };
> >  
> > -- 
> > 2.15.1
> > 

/^JN - Jesper Nilsson
-- 
               Jesper Nilsson -- jesper.nilsson@axis.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] cris: Fix conflicting types for _etext, _edata, _end
  2018-01-11 14:24   ` Jesper Nilsson
@ 2018-01-12  1:34     ` Sergey Senozhatsky
  0 siblings, 0 replies; 4+ messages in thread
From: Sergey Senozhatsky @ 2018-01-12  1:34 UTC (permalink / raw)
  To: Jesper Nilsson
  Cc: Sergey Senozhatsky, Mikael Starvik, Jesper Nilsson, Fenghua Yu,
	linux-cris-kernel, linux-kernel, Sergey Senozhatsky

On (01/11/18 15:24), Jesper Nilsson wrote:
> On Thu, Jan 11, 2018 at 11:12:51PM +0900, Sergey Senozhatsky wrote:
> > On (01/05/18 11:47), Sergey Senozhatsky wrote:
> > > 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>
> > 
> > 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-12  1:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-05  2:47 [PATCH] cris: Fix conflicting types for _etext, _edata, _end Sergey Senozhatsky
2018-01-11 14:12 ` Sergey Senozhatsky
2018-01-11 14:24   ` Jesper Nilsson
2018-01-12  1:34     ` Sergey Senozhatsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox