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

From: Giuliano Procida (Giuliano.Procida@red-m.com)
Date: Tue Jun 06 2000 - 09:59:32 EST


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/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:25 EST