Re: [PATCH] Fix the cpumask rewrite

From: Linus Torvalds
Date: Sat Jun 26 2004 - 14:17:57 EST




On Sat, 26 Jun 2004, James Bottomley wrote:
>
> Our test bit implementation would then become:
>
> static __inline__ int test_bit(int nr, const volatile void *address)
> {
> return __test_bit(nr, (const void *)address);
> }
>
> That would keep our implementation happy.

You just _want_ to be screwed over whenever your gcc bugs are fixed, don't
you?

Are you going to complain to the gcc people when they fix their bugs? Or
are you going to spend months to debug problems that only happen for other
people, because they happen to have fixed compilers?

There's a real reason why there is a "volatile" there on other
architectures.

Linus
-
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/