RE: [PATCH] Fix ambassador atm driver with recent gcc

Giuliano Procida (Giuliano.Procida@red-m.com)
Tue, 6 Jun 2000 15:59:32 +0100


Jakub Jelinet wrote:

> ambassador fails to build with gcc 2.96 for two reasons:
> [snip]
> 2) the static const amb_mem * const mem = 0; trick does not work either,
but
> it is a really good candidate for offsetof IMHO which is exactly what the
> driver is trying to do.

I don't have 2.96 handy (only 2.95) so I have not been able to test this.
Just out of curiousity, what's wrong with the (foo *) 0 trick? I notice that
offsetof is implemented in just this way (see include/linux/stddef.h).

Giuliano.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/