Re: DEC PWS433a and 2.1.61VGER don't match...

David S. Miller (davem@dm.cobaltmicro.com)
Tue, 11 Nov 1997 11:14:57 -0800


Date: Mon, 10 Nov 1997 21:45:35 +0200 (EET)
From: Matti Aarnio <matti.aarnio@tele.fi>

I have been wondering, why my test kernels of VGER series
have rather consistently failed to boot with AIC7XXX SCSI
controller, and today I finally found a small difference
between working arch/alpha/kernel/pyxis.c, and failing one
(on VGER series):

#define vuip volatile unsigned int *

Ok: *((vuip)SOME_ADDRESS) = ...
Fail: *(viup)SOME_ADDRESS = ...

This smells of a GCC bug, but it is very strange. What does CPP
pre-processed output of these two cases look like btw?

Does any portable way exist for doing this type
of architecture specific linkages on modules, or should we just
yield, and add things like this on net/ipv6/Makefile:

ifeq ($(ARCH),alpha)
IPV6_OBJS += ../../arch/alpha/lib/csum_ipv6_magic.o
endif

No this is horrible. Can we find some other way to deal with this?
I really think maybe that csum_ipv6_magic code should be in the other
checksum.c code, #ifdef'd out when IPv6 is not compiled in. Would
this work?

Later,
David S. Miller
davem@dm.cobaltmicro.com