linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] MIPS: more replace CL_SIZE by COMMAND_LINE_SIZE
@ 2009-12-08  7:58 Yoichi Yuasa
  2009-12-08  8:24 ` [PATCH resend] " Yoichi Yuasa
  0 siblings, 1 reply; 7+ messages in thread
From: Yoichi Yuasa @ 2009-12-08  7:58 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: yuasa, linux-mips


Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
---
 arch/mips/powertv/asic/asic_devices.c |    4 ++--
 arch/mips/powertv/memory.c            |    2 +-
 arch/mips/rb532/prom.c                |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/mips/powertv/asic/asic_devices.c b/arch/mips/powertv/asic/asic_devices.c
index 5f20cee..bae8288 100644
--- a/arch/mips/powertv/asic/asic_devices.c
+++ b/arch/mips/powertv/asic/asic_devices.c
@@ -187,7 +187,7 @@ static void __init fs_update(int pe, int md, int sdiv, int disable_div_by_3)
 /*
  * Allow override of bootloader-specified model
  */
-static char __initdata cmdline[CL_SIZE];
+static char __initdata cmdline[COMMAND_LINE_SIZE];
 
 #define	FORCEFAMILY_PARAM	"forcefamily"
 
@@ -199,7 +199,7 @@ static __init int check_forcefamily(unsigned char forced_family[2])
 	forced_family[1] = '\0';
 
 	/* Check the command line for a forcefamily directive */
-	strncpy(cmdline, arcs_cmdline, CL_SIZE - 1);
+	strncpy(cmdline, arcs_cmdline, COMMAND_LINE_SIZE - 1);
 	p = strstr(cmdline, FORCEFAMILY_PARAM);
 	if (p && (p != cmdline) && (*(p - 1) != ' '))
 		p = strstr(p, " " FORCEFAMILY_PARAM "=");
diff --git a/arch/mips/powertv/memory.c b/arch/mips/powertv/memory.c
index c63620a..28d0660 100644
--- a/arch/mips/powertv/memory.c
+++ b/arch/mips/powertv/memory.c
@@ -44,7 +44,7 @@
 
 unsigned long ptv_memsize;
 
-char __initdata cmdline[CL_SIZE];
+char __initdata cmdline[COMMAND_LINE_SIZE];
 
 void __init prom_meminit(void)
 {
diff --git a/arch/mips/rb532/prom.c b/arch/mips/rb532/prom.c
index f4f3f2e..13f350c 100644
--- a/arch/mips/rb532/prom.c
+++ b/arch/mips/rb532/prom.c
@@ -69,7 +69,7 @@ static inline unsigned long tag2ul(char *arg, const char *tag)
 
 void __init prom_setup_cmdline(void)
 {
-	static char cmd_line[CL_SIZE] __initdata;
+	static char cmd_line[COMMAND_LINE_SIZE] __initdata;
 	char *cp, *board;
 	int prom_argc;
 	char **prom_argv, **prom_envp;
-- 
1.6.5.4

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

* [PATCH resend] MIPS: more replace CL_SIZE by COMMAND_LINE_SIZE
  2009-12-08  7:58 [PATCH] MIPS: more replace CL_SIZE by COMMAND_LINE_SIZE Yoichi Yuasa
@ 2009-12-08  8:24 ` Yoichi Yuasa
  2009-12-08 11:34   ` Sergei Shtylyov
  2009-12-08 12:36   ` Ralf Baechle
  0 siblings, 2 replies; 7+ messages in thread
From: Yoichi Yuasa @ 2009-12-08  8:24 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: yuasa, linux-mips

Sorry, I forgot one more CL_SIZE.

Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
---
 arch/mips/powertv/asic/asic_devices.c |    4 ++--
 arch/mips/powertv/cmdline.c           |    2 +-
 arch/mips/powertv/memory.c            |    2 +-
 arch/mips/rb532/prom.c                |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/mips/powertv/asic/asic_devices.c b/arch/mips/powertv/asic/asic_devices.c
index 5f20cee..bae8288 100644
--- a/arch/mips/powertv/asic/asic_devices.c
+++ b/arch/mips/powertv/asic/asic_devices.c
@@ -187,7 +187,7 @@ static void __init fs_update(int pe, int md, int sdiv, int disable_div_by_3)
 /*
  * Allow override of bootloader-specified model
  */
-static char __initdata cmdline[CL_SIZE];
+static char __initdata cmdline[COMMAND_LINE_SIZE];
 
 #define	FORCEFAMILY_PARAM	"forcefamily"
 
@@ -199,7 +199,7 @@ static __init int check_forcefamily(unsigned char forced_family[2])
 	forced_family[1] = '\0';
 
 	/* Check the command line for a forcefamily directive */
-	strncpy(cmdline, arcs_cmdline, CL_SIZE - 1);
+	strncpy(cmdline, arcs_cmdline, COMMAND_LINE_SIZE - 1);
 	p = strstr(cmdline, FORCEFAMILY_PARAM);
 	if (p && (p != cmdline) && (*(p - 1) != ' '))
 		p = strstr(p, " " FORCEFAMILY_PARAM "=");
diff --git a/arch/mips/powertv/cmdline.c b/arch/mips/powertv/cmdline.c
index 3bc4334..98d73cb 100644
--- a/arch/mips/powertv/cmdline.c
+++ b/arch/mips/powertv/cmdline.c
@@ -48,5 +48,5 @@ void  __init prom_init_cmdline(void)
 	arcs_cmdline[len] = ' ';
 
 	strlcpy(arcs_cmdline + len + 1, (char *)_prom_argv,
-		CL_SIZE - len - 1);
+		COMMAND_LINE_SIZE - len - 1);
 }
diff --git a/arch/mips/powertv/memory.c b/arch/mips/powertv/memory.c
index c63620a..28d0660 100644
--- a/arch/mips/powertv/memory.c
+++ b/arch/mips/powertv/memory.c
@@ -44,7 +44,7 @@
 
 unsigned long ptv_memsize;
 
-char __initdata cmdline[CL_SIZE];
+char __initdata cmdline[COMMAND_LINE_SIZE];
 
 void __init prom_meminit(void)
 {
diff --git a/arch/mips/rb532/prom.c b/arch/mips/rb532/prom.c
index f4f3f2e..13f350c 100644
--- a/arch/mips/rb532/prom.c
+++ b/arch/mips/rb532/prom.c
@@ -69,7 +69,7 @@ static inline unsigned long tag2ul(char *arg, const char *tag)
 
 void __init prom_setup_cmdline(void)
 {
-	static char cmd_line[CL_SIZE] __initdata;
+	static char cmd_line[COMMAND_LINE_SIZE] __initdata;
 	char *cp, *board;
 	int prom_argc;
 	char **prom_argv, **prom_envp;
-- 
1.6.5.4

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

* Re: [PATCH resend] MIPS: more replace CL_SIZE by COMMAND_LINE_SIZE
  2009-12-08  8:24 ` [PATCH resend] " Yoichi Yuasa
@ 2009-12-08 11:34   ` Sergei Shtylyov
  2009-12-09  1:58     ` Yoichi Yuasa
  2009-12-08 12:36   ` Ralf Baechle
  1 sibling, 1 reply; 7+ messages in thread
From: Sergei Shtylyov @ 2009-12-08 11:34 UTC (permalink / raw)
  To: Yoichi Yuasa; +Cc: Ralf Baechle, linux-mips

Hello.

Yoichi Yuasa wrote:
> Sorry, I forgot one more CL_SIZE.
>   

   You should put such notes under the --- tearline, not into the patch 
description.

> Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
> ---

WBR, Sergei

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

* Re: [PATCH resend] MIPS: more replace CL_SIZE by COMMAND_LINE_SIZE
  2009-12-08  8:24 ` [PATCH resend] " Yoichi Yuasa
  2009-12-08 11:34   ` Sergei Shtylyov
@ 2009-12-08 12:36   ` Ralf Baechle
  2009-12-12 23:55     ` Maciej W. Rozycki
  1 sibling, 1 reply; 7+ messages in thread
From: Ralf Baechle @ 2009-12-08 12:36 UTC (permalink / raw)
  To: Yoichi Yuasa; +Cc: linux-mips

On Tue, Dec 08, 2009 at 05:24:44PM +0900, Yoichi Yuasa wrote:

> Sorry, I forgot one more CL_SIZE.
> 
> Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>

I fixed these in the pull tree for Linus a few days ago along with a few
other issues and I was planning to get these fixes into the main tree
indirectly by just pulling from Linus.

Thanks!

  Ralf

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

* Re: [PATCH resend] MIPS: more replace CL_SIZE by COMMAND_LINE_SIZE
  2009-12-08 11:34   ` Sergei Shtylyov
@ 2009-12-09  1:58     ` Yoichi Yuasa
  0 siblings, 0 replies; 7+ messages in thread
From: Yoichi Yuasa @ 2009-12-09  1:58 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: yuasa, Ralf Baechle, linux-mips

Hi Sergei,

On Tue, 08 Dec 2009 14:34:11 +0300
Sergei Shtylyov <sshtylyov@ru.mvista.com> wrote:

> Hello.
> 
> Yoichi Yuasa wrote:
> > Sorry, I forgot one more CL_SIZE.
> >   
> 
>    You should put such notes under the --- tearline, not into the patch 
> description.

I'll be careful.

Thanks,
Yoichi

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

* Re: [PATCH resend] MIPS: more replace CL_SIZE by COMMAND_LINE_SIZE
  2009-12-08 12:36   ` Ralf Baechle
@ 2009-12-12 23:55     ` Maciej W. Rozycki
  2009-12-19 22:11       ` Ralf Baechle
  0 siblings, 1 reply; 7+ messages in thread
From: Maciej W. Rozycki @ 2009-12-12 23:55 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Yoichi Yuasa, linux-mips

On Tue, 8 Dec 2009, Ralf Baechle wrote:

> > Sorry, I forgot one more CL_SIZE.
> > 
> > Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
> 
> I fixed these in the pull tree for Linus a few days ago along with a few
> other issues and I was planning to get these fixes into the main tree
> indirectly by just pulling from Linus.

 Hmm, why do I have a feeling of deja vu?...  Must be this:

http://www.linux-mips.org/git?p=linux.git;a=commitdiff;h=97b7ae4257ef7ba8ed9b7944a4f56a49af3e8abb

  Maciej

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

* Re: [PATCH resend] MIPS: more replace CL_SIZE by COMMAND_LINE_SIZE
  2009-12-12 23:55     ` Maciej W. Rozycki
@ 2009-12-19 22:11       ` Ralf Baechle
  0 siblings, 0 replies; 7+ messages in thread
From: Ralf Baechle @ 2009-12-19 22:11 UTC (permalink / raw)
  To: Maciej W. Rozycki; +Cc: Yoichi Yuasa, linux-mips

On Sat, Dec 12, 2009 at 11:55:47PM +0000, Maciej W. Rozycki wrote:

> > > Sorry, I forgot one more CL_SIZE.
> > > 
> > > Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
> > 
> > I fixed these in the pull tree for Linus a few days ago along with a few
> > other issues and I was planning to get these fixes into the main tree
> > indirectly by just pulling from Linus.
> 
>  Hmm, why do I have a feeling of deja vu?...  Must be this:
> 
> http://www.linux-mips.org/git?p=linux.git;a=commitdiff;h=97b7ae4257ef7ba8ed9b7944a4f56a49af3e8abb

Good memory - this time CL_SIZE is dead for good!

  Ralf

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

end of thread, other threads:[~2009-12-19 22:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-08  7:58 [PATCH] MIPS: more replace CL_SIZE by COMMAND_LINE_SIZE Yoichi Yuasa
2009-12-08  8:24 ` [PATCH resend] " Yoichi Yuasa
2009-12-08 11:34   ` Sergei Shtylyov
2009-12-09  1:58     ` Yoichi Yuasa
2009-12-08 12:36   ` Ralf Baechle
2009-12-12 23:55     ` Maciej W. Rozycki
2009-12-19 22:11       ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).