From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933949Ab1J3J7X (ORCPT ); Sun, 30 Oct 2011 05:59:23 -0400 Received: from one.firstfloor.org ([213.235.205.2]:57689 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753287Ab1J3J7W (ORCPT ); Sun, 30 Oct 2011 05:59:22 -0400 Date: Sun, 30 Oct 2011 10:59:18 +0100 From: Andi Kleen To: Eric Dumazet Cc: Linus Torvalds , Ben Hutchings , Andi Kleen , linux-kernel , netdev , Andrew Morton Subject: Re: >Re: [RFC] should VM_BUG_ON(cond) really evaluate cond 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 Content-Disposition: inline In-Reply-To: <1319964754.13597.26.camel@edumazet-laptop> User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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