From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755550AbcBCDzQ (ORCPT ); Tue, 2 Feb 2016 22:55:16 -0500 Received: from la.guarana.org ([173.254.219.205]:49274 "EHLO la.guarana.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755282AbcBCDzP (ORCPT ); Tue, 2 Feb 2016 22:55:15 -0500 X-Greylist: delayed 547 seconds by postgrey-1.27 at vger.kernel.org; Tue, 02 Feb 2016 22:55:15 EST Date: Tue, 2 Feb 2016 22:46:07 -0500 From: Kevin Easton To: Al Viro Cc: Aleksa Sarai , xypron.glpk@gmx.de, Tejun Heo , koct9i@gmail.com, ebiederm@xmission.com, Wei Tang , linux-kernel@vger.kernel.org, oleg@redhat.com, josh@joshtriplett.org, jason.low2@hp.com, peterz@infradead.org, Ingo Molnar , akpm@linux-foundation.org, kirill.shutemov@linux.intel.com Subject: Re: [PATCH] kernel/fork.c: use sizeof() instead of sizeof Message-ID: <20160203034607.GA4269@la.guarana.org> References: <1454399594-14307-1-git-send-email-tangwei@cmss.chinamobile.com> <20160202091118.GB30393@gmail.com> <20160202154531.GO17997@ZenIV.linux.org.uk> <20160202170406.GP17997@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160202170406.GP17997@ZenIV.linux.org.uk> 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 Tue, Feb 02, 2016 at 05:04:06PM +0000, Al Viro wrote: > FWIW, the actual rules are > unary-expression: postfix-expression | > ++ unary-expression | > -- unary-expression | > - cast-expression | > + cast-expression | > ! cast-expression | > ~ cast-expression | > * cast-expression | > & cast-expression | > sizeof unary-expression | > sizeof ( type-name ) > cast-expression: unary-expression | > ( type-name ) cast-expression > Note that while e.g. > ++ ++ n > is allowed by grammar, it runs afoul of the constraint for ++ argument, which > must be a modifiable lvalue. None of the operators above yield that, so > the rules for ++ and -- might as well have been ++ postfix-expression and > -- postfix-expression resp. Unless I'm mistaken, * cast-expression yields an lvalue. - Kevin