Re: [patch] i386: make bitops safe

From: Richard Henderson
Date: Tue Feb 28 2006 - 16:24:29 EST


On Tue, Feb 28, 2006 at 01:04:01AM -0500, Chuck Ebbert wrote:
> > One could reasonably argue that if you used a structure with a
> > flexible array member, that GCC could not look through that. But
> > again I'm not 100% positive this is handled properly.
>
> This seems to work but causes more problems than it solves:
>
> #define vaddr ((volatile long *) addr)

This isn't a structure witha flexible array member.


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