Re: [tip:x86/mce] x86/bitops: Move BIT_64() for a wider use

From: Linus Torvalds
Date: Wed May 23 2012 - 13:37:46 EST


On Wed, May 23, 2012 at 10:11 AM, Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> And, in addition, hpa's example won't work too:
>
>        u64 msr = ~BIT(1);

Yes, that's a good example of something that can be problematic, and
is fundamentally different on 32-bit and 64-bit.

So maybe BIT() unconditionally being long, and BIT_64() being u64
simply is the right model.

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/