From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751316Ab1LRAe0 (ORCPT ); Sat, 17 Dec 2011 19:34:26 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:50287 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750981Ab1LRAeY (ORCPT ); Sat, 17 Dec 2011 19:34:24 -0500 Date: Sun, 18 Dec 2011 00:34:19 +0000 From: Al Viro To: Eric Dumazet Cc: Jesper Juhl , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Michel Lespinasse , Hugh Dickins , Andrea Arcangeli , KAMEZAWA Hiroyuki Subject: Re: [PATCH] Put braces around potentially empty 'if' body in handle_pte_fault() Message-ID: <20111218003419.GE2203@ZenIV.linux.org.uk> References: <1324167535.3323.63.camel@edumazet-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1324167535.3323.63.camel@edumazet-laptop> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 18, 2011 at 01:18:55AM +0100, Eric Dumazet wrote: > Thats should be fixed in the reverse way : > > #define flush_tlb_fix_spurious_fault(vma, address) do { } while (0) There's a better way to do that - #define f(a) do { } while(0) does not work as a function returning void - f(1), g(); won't work. OTOH #define f(a) ((void)0) works just fine.