From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: >Re: [RFC] should VM_BUG_ON(cond) really evaluate cond Date: Sun, 30 Oct 2011 10:59:18 +0100 Message-ID: <20111030095918.GA19676@one.firstfloor.org> References: <1319772566.6759.27.camel@deadeye> <1319777025.23112.67.camel@edumazet-laptop> <1319803781.23112.113.camel@edumazet-laptop> <1319813252.23112.122.camel@edumazet-laptop> <1319964754.13597.26.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linus Torvalds , Ben Hutchings , Andi Kleen , linux-kernel , netdev , Andrew Morton To: Eric Dumazet Return-path: Content-Disposition: inline In-Reply-To: <1319964754.13597.26.camel@edumazet-laptop> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org > +#define ACCESS_AT_MOST_ONCE(x) \ > + ({ unsigned long __y; \ why not typeof here? > + asm("":"=r" (__y):"0" (x)); \ > + (__force __typeof__(x)) __y; \ > + }) > + -Andi