All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Fix u16 status declaration when PCMCIA is defined
@ 2007-11-18 11:55 Jean-Christophe PLAGNIOL-VILLARD
  2007-11-18 15:27 ` Wolfgang Denk
  2007-11-18 20:49 ` Wolfgang Denk
  0 siblings, 2 replies; 6+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2007-11-18 11:55 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

diff --git a/board/pb1x00/pb1x00.c b/board/pb1x00/pb1x00.c
index 95b7d82..536c954 100644
--- a/board/pb1x00/pb1x00.c
+++ b/board/pb1x00/pb1x00.c
@@ -42,7 +42,9 @@ void write_one_tlb( int index, u32 pagemask, u32 hi, u32 low0, u32 low1 );
 
 int checkboard (void)
 {
+#if defined(CONFIG_IDE_PCMCIA) && 0
 	u16 status;
+#endif
 	/* volatile u32 *pcmcia_bcsr = (u32*)(DB1000_BCSR_ADDR+0x10); */
 	volatile u32 *sys_counter = (volatile u32*)SYS_COUNTER_CNTRL;
 	u32 proc_id;
-- 
1.5.3.2

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

* [U-Boot-Users] [PATCH] Fix u16 status declaration when PCMCIA is defined
  2007-11-18 11:55 [U-Boot-Users] [PATCH] Fix u16 status declaration when PCMCIA is defined Jean-Christophe PLAGNIOL-VILLARD
@ 2007-11-18 15:27 ` Wolfgang Denk
  2007-11-18 16:28   ` Jean-Christophe PLAGNIOL-VILLARD
  2007-11-18 20:49 ` Wolfgang Denk
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2007-11-18 15:27 UTC (permalink / raw)
  To: u-boot

In message <1195386902-15477-1-git-send-email-plagnioj@jcrosoft.com> you wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> 
> diff --git a/board/pb1x00/pb1x00.c b/board/pb1x00/pb1x00.c
> index 95b7d82..536c954 100644
> --- a/board/pb1x00/pb1x00.c
> +++ b/board/pb1x00/pb1x00.c
> @@ -42,7 +42,9 @@ void write_one_tlb( int index, u32 pagemask, u32 hi, u32 low0, u32 low1 );
>  
>  int checkboard (void)
>  {
> +#if defined(CONFIG_IDE_PCMCIA) && 0

Oops? What is the meaning of the "&& 0" here ???

There are less cryptic ways to comment out a line of code, it seems.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"One thing they don't tell you about doing  experimental  physics  is
that sometimes you must work under adverse conditions... like a state
of sheer terror."                                    - W. K. Hartmann

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

* [U-Boot-Users] [PATCH] Fix u16 status declaration when PCMCIA is defined
  2007-11-18 15:27 ` Wolfgang Denk
@ 2007-11-18 16:28   ` Jean-Christophe PLAGNIOL-VILLARD
  2007-11-18 19:32     ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2007-11-18 16:28 UTC (permalink / raw)
  To: u-boot

On 16:27 Sun 18 Nov     , Wolfgang Denk wrote:
> In message <1195386902-15477-1-git-send-email-plagnioj@jcrosoft.com> you wrote:
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > 
> > diff --git a/board/pb1x00/pb1x00.c b/board/pb1x00/pb1x00.c
> > index 95b7d82..536c954 100644
> > --- a/board/pb1x00/pb1x00.c
> > +++ b/board/pb1x00/pb1x00.c
> > @@ -42,7 +42,9 @@ void write_one_tlb( int index, u32 pagemask, u32 hi, u32 low0, u32 low1 );
> >  
> >  int checkboard (void)
> >  {
> > +#if defined(CONFIG_IDE_PCMCIA) && 0
> 
> Oops? What is the meaning of the "&& 0" here ???
> 
> There are less cryptic ways to comment out a line of code, it seems.
> 

I agree, but I've chose the same that the line 78.

If you prefer I can as fallowing

#if 0
#if defined(CONFIG_IDE_PCMCIA)

...

#endif
#endif

Best Regards.
J.

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

* [U-Boot-Users] [PATCH] Fix u16 status declaration when PCMCIA is defined
  2007-11-18 19:32     ` Wolfgang Denk
@ 2007-11-18 17:16       ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 6+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2007-11-18 17:16 UTC (permalink / raw)
  To: u-boot

On 20:32 Sun 18 Nov     , Wolfgang Denk wrote:
> In message <20071118162829.GA4286@game.jcrosoft.org> you wrote:
> >
> > I agree, but I've chose the same that the line 78.
> > 
> > If you prefer I can as fallowing
> > 
> > #if 0
> > #if defined(CONFIG_IDE_PCMCIA)
> > 
> > ...
> > 
> > #endif
> > #endif
> 
> Well, instead, we could as well remove the code. That would be much
> cleaner.
> 
> BTW - which board configuration is throwing warnings for you?

On Mips incaip on cramfs, On arm evb4510, mx1ads(errors) ,
mx1fs2(errors), sbc2410x, adsvix, pleb2, wepep250, xm250, all ixp

I will send a ppc status within the few hours ro tomorrow morming

Best regards,
J.

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

* [U-Boot-Users] [PATCH] Fix u16 status declaration when PCMCIA is defined
  2007-11-18 16:28   ` Jean-Christophe PLAGNIOL-VILLARD
@ 2007-11-18 19:32     ` Wolfgang Denk
  2007-11-18 17:16       ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2007-11-18 19:32 UTC (permalink / raw)
  To: u-boot

In message <20071118162829.GA4286@game.jcrosoft.org> you wrote:
>
> I agree, but I've chose the same that the line 78.
> 
> If you prefer I can as fallowing
> 
> #if 0
> #if defined(CONFIG_IDE_PCMCIA)
> 
> ...
> 
> #endif
> #endif

Well, instead, we could as well remove the code. That would be much
cleaner.

BTW - which board configuration is throwing warnings for you?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I distrust all systematisers, and avoid them. The will  to  a  system
shows a lack of honesty.
- Friedrich Wilhelm Nietzsche _G?tzen-D?mmerung [The Twilight of  the
Idols]_ ``Maxims and Missiles'' no. 26

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

* [U-Boot-Users] [PATCH] Fix u16 status declaration when PCMCIA is defined
  2007-11-18 11:55 [U-Boot-Users] [PATCH] Fix u16 status declaration when PCMCIA is defined Jean-Christophe PLAGNIOL-VILLARD
  2007-11-18 15:27 ` Wolfgang Denk
@ 2007-11-18 20:49 ` Wolfgang Denk
  1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2007-11-18 20:49 UTC (permalink / raw)
  To: u-boot

In message <1195386902-15477-1-git-send-email-plagnioj@jcrosoft.com> you wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> 
> diff --git a/board/pb1x00/pb1x00.c b/board/pb1x00/pb1x00.c
> index 95b7d82..536c954 100644
> --- a/board/pb1x00/pb1x00.c
> +++ b/board/pb1x00/pb1x00.c
> @@ -42,7 +42,9 @@ void write_one_tlb( int index, u32 pagemask, u32 hi, u32 low0, u32 low1 );
>  
>  int checkboard (void)
>  {
> +#if defined(CONFIG_IDE_PCMCIA) && 0
>  	u16 status;
> +#endif
>  	/* volatile u32 *pcmcia_bcsr = (u32*)(DB1000_BCSR_ADDR+0x10); */
>  	volatile u32 *sys_counter = (volatile u32*)SYS_COUNTER_CNTRL;
>  	u32 proc_id;

Checked in. Thanks.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A Vulcan can  no  sooner  be  disloyal  than  he  can  exist  without
breathing.
	-- Kirk, "The Menagerie", stardate 3012.4

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

end of thread, other threads:[~2007-11-18 20:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-18 11:55 [U-Boot-Users] [PATCH] Fix u16 status declaration when PCMCIA is defined Jean-Christophe PLAGNIOL-VILLARD
2007-11-18 15:27 ` Wolfgang Denk
2007-11-18 16:28   ` Jean-Christophe PLAGNIOL-VILLARD
2007-11-18 19:32     ` Wolfgang Denk
2007-11-18 17:16       ` Jean-Christophe PLAGNIOL-VILLARD
2007-11-18 20:49 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.