Re: >Re: [RFC] should VM_BUG_ON(cond) really evaluate cond

From: Andi Kleen
Date: Sun Oct 30 2011 - 05:59:22 EST


> +#define ACCESS_AT_MOST_ONCE(x) \
> + ({ unsigned long __y; \

why not typeof here?

> + asm("":"=r" (__y):"0" (x)); \
> + (__force __typeof__(x)) __y; \
> + })
> +

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