Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp95758pxx; Wed, 28 Oct 2020 19:30:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwozDB3kKlxJJfoQKnqehIiQoxcESJzXAxxxz046KdwlVHnmcOly3lHtEPk9fvxVUk2kJCW X-Received: by 2002:a17:906:e292:: with SMTP id gg18mr2002907ejb.278.1603938625782; Wed, 28 Oct 2020 19:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603938625; cv=none; d=google.com; s=arc-20160816; b=NfyiZ9SJMSqBGi/gPIez+GqcJHbloOwy7FiMNg01A+IgL0TAfeVVBOTFWfwfCE+GpZ v41+6icU3mYSwQF2rJPVvHhKXJtUfLsaRFFy76Do99jc24J8zvHjlvNPbWIVfZLLQek6 VGGgow9EQymwudRlcVIJoBg8gWYfqDAvrHkVFR8x8tsz0liwlKBdiIEdvp3BMxS2VT0s 7R9KOtGDXEUihcpgYcmE4ML4MrS9nqUE1uAYwXqcBDRZ5HvV5xYVOiTqIQVa4n0LoHVc KzOv9aE8+EI6AL4gRDh6+28pVzLZLf4oQdS9RbZ9g4xmFNgnCzeD0MP+nE1ISb/CA6Xs R4WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LWAt3YLBnQhNeDnqwPDEzJ9AVuEW7vMRozZX/tRR0/A=; b=b5lPVjI+JWMeaNhfsGFkPp7KpFDL/KbWpoOK6Cxq0uC55T3F/9a50RZDliH7ksOxbV g+miCets16eMMMBDZEO+2hNLzHi/canuKUigAs2eC0Hoi/Wlx4+wKn14UH7NxuDaNqpc y3WUYSftAP4z7FN69unvtuoILFhImms4enWS/MfqkrV14BNHTnfBEp9ID7XQawYEHEew iy3QcH1COebQIG6Og9TtaMOnCzJbcMMGJTNEOy+Dqwhrav5ob5FnY6arcPDEXJnAiLiL Ns/x5ZS45kUK9Mkrvc2215koBsXrWYezxFSWwmyrB5hgllc39aWxg//6sJns6AhX0gFW cN/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=CNYtxV5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg11si997340edb.246.2020.10.28.19.30.03; Wed, 28 Oct 2020 19:30:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=CNYtxV5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728201AbgJ1Vvr (ORCPT + 99 others); Wed, 28 Oct 2020 17:51:47 -0400 Received: from casper.infradead.org ([90.155.50.34]:44160 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725838AbgJ1Vvp (ORCPT ); Wed, 28 Oct 2020 17:51:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=LWAt3YLBnQhNeDnqwPDEzJ9AVuEW7vMRozZX/tRR0/A=; b=CNYtxV5IYy2HVVTwyWjXk+JEr+ Rn+l3TGtVH6jpPuY6f0vFG3VJhWmTWoDQyK921Fqe3FuMsYaxOQUlsf4iwmgY2/deilFNLbE6zxKs TGUk+NLSaDORes3OW61/DBbdXJ6/KaVwx8XIaRfe+eR/YJ5rckSn+n/Ju0N4hfAbY7IvHKaKK5rpP e9Q5AgsBrbq2xR9CX1Yd6VwySTIGUMreoA3Vr+ijCpycBk4ErkWvcpq298W9nu0gcJLQ1JrEVZ1+d hrhCtXnbqzxk6t1jCIdBMS4ZO83Hpqo7DpRJgHJjyM23zaCYNLUsr06fmKyJlIjLBHAGt8fuCZwM6 3plL3rig==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXhB1-0005Kj-S5; Wed, 28 Oct 2020 08:51:28 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 6D1AD300455; Wed, 28 Oct 2020 09:51:27 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 533902C5FEB40; Wed, 28 Oct 2020 09:51:27 +0100 (CET) Date: Wed, 28 Oct 2020 09:51:27 +0100 From: Peter Zijlstra To: Arnd Bergmann Cc: Ingo Molnar , Will Deacon , "Ahmed S. Darwish" , "Paul E. McKenney" , Marco Elver , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] seqlock: avoid -Wshadow warnings Message-ID: <20201028085127.GV2628@hirez.programming.kicks-ass.net> References: <20201026165044.3722931-1-arnd@kernel.org> <20201026165805.GS2594@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 28, 2020 at 12:34:10AM +0100, Arnd Bergmann wrote: > On Mon, Oct 26, 2020 at 5:58 PM Peter Zijlstra wrote: > > > > On Mon, Oct 26, 2020 at 05:50:38PM +0100, Arnd Bergmann wrote: > > > > > - unsigned seq; \ > > > + unsigned __seq; \ > > > > > - unsigned seq = __read_seqcount_begin(s); \ > > > + unsigned _seq = __read_seqcount_begin(s); \ > > > > > - unsigned seq = __seqcount_sequence(s); \ > > > + unsigned __seq = __seqcount_sequence(s); \ > > > > Can we have a consistent number of leading '_' ? > > Not really ;-) Duh.. ok, I'll take it as is.