[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linux-2.4.20 CVS kernel-image for mac



On Thu, 6 Mar 2003, Christian T. Steigies wrote:
> So this does not work...
> 
> gcc -D__KERNEL__ -I/debian/linux-m68k/linux-2.4/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2
>  -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -fno-strength-reduce -ffixed-a2
> -nost
> dinc -iwithprefix include -DKBUILD_BASENAME=smc9194  -c -o smc9194.o smc9194.c
> smc9194.c: In function `smc_reset':
> smc9194.c:316: warning: implicit declaration of function `outw'
> smc9194.c:320: warning: implicit declaration of function `inw'
> smc9194.c:341: warning: implicit declaration of function `outb'
> smc9194.c: In function `smc_wait_to_send_packet':
> smc9194.c:532: warning: implicit declaration of function `inb'
> smc9194.c: In function `smc_hardware_send_packet':
> smc9194.c:614: warning: implicit declaration of function `outl'
> smc9194.c:631: warning: implicit declaration of function `outsl'
> smc9194.c: In function `smc_rcv':
> smc9194.c:1335: warning: implicit declaration of function `insl'
> smc9194.c:1337: warning: implicit declaration of function `insb'

Yes, smc9194 wasn't ported to the new I/O framework yet, where inb() and
friends are restricted to ISA and PCI I/O.

Simply replacing all inb() by in_8() etc. is not an option, since this driver
is used on PC as well. But probably you could add

    #ifdef CONFIG_MAC
    #undef inb
    #define inb	in_8
    ...
    #endif

> macsonic.c: In function `macsonic_init':
> macsonic.c:145: warning: `lp' might be used uninitialized in this function
> In file included from macsonic.c:680:
> sonic.c: In function `sonic_send_packet':
> sonic.c:120: structure has no member named `tbusy'
> sonic.c:120: structure has no member named `tbusy'
> macsonic.c: At top level:
> sonic.c:90: warning: `sonic_tx_timeout' defined but not used

The sonic driver is still not ported over to the new softirq scheme, which was
introduced in 2.3.x IIRC.

> Any patches for the mac? But Ray said 2.4 does not boot, so I'll try atari
> next.

I applied all patches I'm aware of. And I always compile-test kernels with
all[*] features enabled. Atari should compile, except for some Ethernet
drivers.

Gr{oetje,eeting}s,

						Geert

[*] The features I know that still compile, to catch compile-regressions. I.e.
    I removed smc9194 and macsonic from my list a while ago.
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds




Reply to: