* drivers/mtd/nand/spia.c broken ?
@ 2002-03-21 15:39 Robert Kaiser
2002-03-21 18:02 ` Thomas Gleixner
2002-03-21 18:29 ` Thomas Gleixner
0 siblings, 2 replies; 4+ messages in thread
From: Robert Kaiser @ 2002-03-21 15:39 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse
Hi,
has anyone tried to compile this file lately ?
I'm only asking because it contains some IMO strange stuff:
Line 38 following: #define SPIA_XX =
Line 38 vs. 55, 39 vs 56: xxx_ADDR <> xxx_BASE
Line 161: return = -ENOMEM
Rob
----------------------------------------------------------------
Robert Kaiser email: rkaiser@sysgo.de
SYSGO RTS GmbH
Am Pfaffenstein 14 phone: (49) 6136 9948-762
D-55270 Klein-Winternheim / Germany fax: (49) 6136 9948-10
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: drivers/mtd/nand/spia.c broken ?
2002-03-21 15:39 drivers/mtd/nand/spia.c broken ? Robert Kaiser
@ 2002-03-21 18:02 ` Thomas Gleixner
2002-03-21 18:37 ` Robert Kaiser
2002-03-21 18:29 ` Thomas Gleixner
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Gleixner @ 2002-03-21 18:02 UTC (permalink / raw)
To: rkaiser, Robert Kaiser; +Cc: linux-mtd
On Donnerstag, 21. März 2002 16:39 , Robert Kaiser wrote:
> Hi,
> has anyone tried to compile this file lately ?
Not me. I just adjusted all the changes we made in nand.c.
> I'm only asking because it contains some IMO strange stuff:
> Line 38 following: #define SPIA_XX =
> Line 38 vs. 55, 39 vs 56: xxx_ADDR <> xxx_BASE
I don't know, where the SPIA_IO_BASE comes from. Maybe from a header, which
is not in the ARM kernel tree. But it should represent the virtual base
address of EP7212 IO adress space.
> Line 161: return = -ENOMEM
This is the standard return, if kmalloc failes :) The data cache was
introduced due to the changes in nand.c, which were made for JFFS2 on NAND
--
Thomas
_________________________________
Thomas Gleixner <gleixner@autronix.de>
autronix automation http://www.autronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: drivers/mtd/nand/spia.c broken ?
2002-03-21 15:39 drivers/mtd/nand/spia.c broken ? Robert Kaiser
2002-03-21 18:02 ` Thomas Gleixner
@ 2002-03-21 18:29 ` Thomas Gleixner
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Gleixner @ 2002-03-21 18:29 UTC (permalink / raw)
To: rkaiser, Robert Kaiser; +Cc: linux-mtd
On Donnerstag, 21. März 2002 19:02 , Thomas Gleixner wrote:
> > Line 161: return = -ENOMEM
> This is the standard return, if kmalloc failes :) The data cache was
> introduced due to the changes in nand.c, which were made for JFFS2 on NAND
OOPS, missed the '=' :)
--
Thomas
_________________________________
Thomas Gleixner <gleixner@autronix.de>
autronix automation http://www.autronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: drivers/mtd/nand/spia.c broken ?
2002-03-21 18:02 ` Thomas Gleixner
@ 2002-03-21 18:37 ` Robert Kaiser
0 siblings, 0 replies; 4+ messages in thread
From: Robert Kaiser @ 2002-03-21 18:37 UTC (permalink / raw)
To: gleixner; +Cc: linux-mtd
Am Donnerstag, 21. März 2002 19:02 schrieben Sie:
> On Donnerstag, 21. März 2002 16:39 , Robert Kaiser wrote:
> > Hi,
> > has anyone tried to compile this file lately ?
>
> Not me. I just adjusted all the changes we made in nand.c.
>
> > I'm only asking because it contains some IMO strange stuff:
> > Line 38 following: #define SPIA_XX =
> > Line 38 vs. 55, 39 vs 56: xxx_ADDR <> xxx_BASE
>
> I don't know, where the SPIA_IO_BASE comes from. Maybe from a header, which
> is not in the ARM kernel tree. But it should represent the virtual base
> address of EP7212 IO adress space.
>
> > Line 161: return = -ENOMEM
>
> This is the standard return, if kmalloc failes :) The data cache was
> introduced due to the changes in nand.c, which were made for JFFS2 on NAND
Hmm, what I meant to point out is that "return" is a reserved word in C, so
it is not possible to have a variable of that name, let alone assign a value
to it. Similarly, lines like "#define SOMETHING = something" to me make no
sense (the "=" must be removed).
These are some reasons why the file probably won't compile as is.
Rob
----------------------------------------------------------------
Robert Kaiser email: rkaiser@sysgo.de
SYSGO RTS GmbH
Am Pfaffenstein 14 phone: (49) 6136 9948-762
D-55270 Klein-Winternheim / Germany fax: (49) 6136 9948-10
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-03-21 18:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-21 15:39 drivers/mtd/nand/spia.c broken ? Robert Kaiser
2002-03-21 18:02 ` Thomas Gleixner
2002-03-21 18:37 ` Robert Kaiser
2002-03-21 18:29 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox