public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* need help with oaknet.c
@ 2003-06-12  9:05 Felix von Leitner
  2003-06-12  9:25 ` Jörn Engel
  0 siblings, 1 reply; 2+ messages in thread
From: Felix von Leitner @ 2003-06-12  9:05 UTC (permalink / raw)
  To: linux-kernel

Hi Grant,

I'm trying to cross compile a linux 2.5.70 kernel to ppc, and after
removing a few obstacles I'm now stuck in oaknet.c, which bears your
email address.

Here are the compile errors.  I have no idea where I can get an
asm/board.h and a grep did not find the missing defines.

drivers/net/oaknet.c:24:23: asm/board.h: No such file or directory
drivers/net/oaknet.c: In function `oaknet_init':
drivers/net/oaknet.c:102: error: `OAKNET_IO_BASE' undeclared (first use
in this function)
drivers/net/oaknet.c:102: error: (Each undeclared identifier is reported
only once
drivers/net/oaknet.c:102: error: for each function it appears in.)
drivers/net/oaknet.c:102: error: `OAKNET_IO_SIZE' undeclared (first use
in this function)
drivers/net/oaknet.c:102: warning: initialization makes integer from
pointer without a cast
drivers/net/oaknet.c:104: error: cannot convert to a pointer type
drivers/net/oaknet.c:123: warning: implicit declaration of function
`ei_ibp'
drivers/net/oaknet.c:132: warning: implicit declaration of function
`ei_obp'
drivers/net/oaknet.c:165: error: `OAKNET_INT' undeclared (first use in
this function)
drivers/net/oaknet.c:228: warning: passing arg 1 of `iounmap' makes
pointer from integer without a cast
drivers/net/oaknet.c: In function `oaknet_reset_8390':
drivers/net/oaknet.c:303: error: `E8390_BASE' undeclared (first use in
this function)
drivers/net/oaknet.c: In function `oaknet_get_8390_hdr':
drivers/net/oaknet.c:355: error: `OAKNET_CMD' undeclared (first use in
this function)
drivers/net/oaknet.c:364: error: `OAKNET_DATA' undeclared (first use in
this function)
drivers/net/oaknet.c: In function `oaknet_block_input':
drivers/net/oaknet.c:384: error: `OAKNET_BASE' undeclared (first use in
this function)
drivers/net/oaknet.c:398: error: `flags' undeclared (first use in this
function)
drivers/net/oaknet.c:410: warning: implicit declaration of function
`ei_isw'
drivers/net/oaknet.c:410: error: `E8390_DATA' undeclared (first use in
this function)
drivers/net/oaknet.c:412: warning: implicit declaration of function
`ei_ib'
drivers/net/oaknet.c:414: error: `bytes' undeclared (first use in this
function)
drivers/net/oaknet.c:418: warning: implicit declaration of function
`ei_isb'
drivers/net/oaknet.c: In function `oaknet_block_output':
drivers/net/oaknet.c:477: error: `E8390_BASE' undeclared (first use in
this function)
drivers/net/oaknet.c:584: warning: implicit declaration of function
`ei_osw'
drivers/net/oaknet.c:584: error: `E8390_DATA' undeclared (first use in
this function)
drivers/net/oaknet.c:586: warning: implicit declaration of function
`ei_osb'
drivers/net/oaknet.c: In function `oaknet_dma_error':
drivers/net/oaknet.c:661: error: structure has no member named
`interrupt'
drivers/net/oaknet.c: In function `oaknet_cleanup_module':
drivers/net/oaknet.c:687: error: `OAKNET_IO_SIZE' undeclared (first use
in this function)
drivers/net/oaknet.c:688: warning: passing arg 1 of `iounmap' makes
pointer from integer without a cast
drivers/net/oaknet.c:689: error: `oaknet_dev' undeclared (first use in
this function)
make[2]: *** [drivers/net/oaknet.o] Error 1
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2


Can you help me?

Felix

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

* Re: need help with oaknet.c
  2003-06-12  9:05 need help with oaknet.c Felix von Leitner
@ 2003-06-12  9:25 ` Jörn Engel
  0 siblings, 0 replies; 2+ messages in thread
From: Jörn Engel @ 2003-06-12  9:25 UTC (permalink / raw)
  To: Felix von Leitner; +Cc: linux-kernel

On Thu, 12 June 2003 11:05:03 +0200, Felix von Leitner wrote:
> Envelope-to: joern@wohnheim.fh-wedel.de
> Delivery-date: Thu, 12 Jun 2003 11:06:56 +0200
> From:	Felix von Leitner <felix-kernel@fefe.de>
> To:	linux-kernel@vger.kernel.org
> Subject: need help with oaknet.c
> X-Mailing-List:	linux-kernel@vger.kernel.org
> 
> Hi Grant,
> 
> I'm trying to cross compile a linux 2.5.70 kernel to ppc, and after
> removing a few obstacles I'm now stuck in oaknet.c, which bears your
> email address.

Did I miss something or did you forget something in To: or CC:?

> Here are the compile errors.  I have no idea where I can get an
> asm/board.h and a grep did not find the missing defines.
> 
> drivers/net/oaknet.c:24:23: asm/board.h: No such file or directory
> drivers/net/oaknet.c: In function `oaknet_init':
> drivers/net/oaknet.c:102: error: `OAKNET_IO_BASE' undeclared (first use
> in this function)

include/asm-ppc/board.h got removed somewhere between 2.4.19 and
2.4.20 (and between 2.5.0 and 2.5.70, search yourself).  Quick fix
without thinking is to grab the one from 2.4.19 and add it to 2.5.70.
If you want a working system, a bit thinking might help though. :)

Jörn

-- 
To announce that there must be no criticism of the President, or that we
are to stand by the President, right or wrong, is not only unpatriotic
and servile, but is morally treasonable to the American public.
-- Theodore Roosevelt, Kansas City Star, 1918

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

end of thread, other threads:[~2003-06-12  9:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-12  9:05 need help with oaknet.c Felix von Leitner
2003-06-12  9:25 ` Jörn Engel

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