Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1030506pxa; Fri, 28 Aug 2020 01:27:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxi/2/5BXbfFuADFNb4ZXHhMLT+JAbPHKuBJtYrkf2E3O/5J9Sy9A0BASX5pqDIk3opkBe9 X-Received: by 2002:aa7:c3d3:: with SMTP id l19mr729248edr.102.1598603225283; Fri, 28 Aug 2020 01:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598603225; cv=none; d=google.com; s=arc-20160816; b=ws1Gxz4Utg3LKm4H+NWG5kHDbW3tdiWr4EZ1sZV3iXPhZeLw6g+8UR5kB7tuVoDQSR Iceifx7nV6+yLmkBx8omrM1fTnct421tbiaC9+PqydgZaJZupMmR5/u2bEvbA297MlOe 07vpkfbemOxPkeskpzx7uq3bSZsbpLwK5CzZ8GI7yAE5flxI0IR9xglqDVsmxdoYlsqj XBrB7qe2HGM7l/WvK5h9WlgJ1WXg31/wual/efFtVeMwAkAt/AOPULopAuKbwkeIbaG9 FrRjbfYIEES34RdoUD9qIcndWyv0pyGzzzmLTXPadLQBn21mNZ7aHCryJSG+8+8WU1s9 yGgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from :dkim-signature:dkim-signature:date; bh=GEiZumMR91+ugTaWQjQ9DrHw93Cp34f5FFmDZ6hxyG4=; b=w/6N0No/L1qis1pwalzmmVAxFIAT9p4kaeYETTvqUZyxYtPhVNJNaoQ/1hYTOngQjr dtCKih/04OVTXUb94Yrk/k15BzqIKWr1CcvYFk24FSlExxyn61HWt8Bx4X3h7wo6kl51 GDuLQA2y8qw8upaYa08AqSRXfbypdW7tkd5Tw6wFcw8Cq0b4B6RKnPXVjaO7k/MdB/61 0vpai5+zL+63A2dQCePgGSjCEHkfvnL5jxiFNOI94gEvE0Wt81qWSzMKp9OJNj7PdlpS PB/R/RnwigGVgCGaxKkgsKD9Jo78QnjvtkWiDdeiK8nM6GpjtQWfOUqy2uhI9fKeS7JJ C6dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rcSxKRV9; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p18si189213ejf.255.2020.08.28.01.26.42; Fri, 28 Aug 2020 01:27:05 -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=@linutronix.de header.s=2020 header.b=rcSxKRV9; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728455AbgH1IYB (ORCPT + 99 others); Fri, 28 Aug 2020 04:24:01 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:43800 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726643AbgH1IYA (ORCPT ); Fri, 28 Aug 2020 04:24:00 -0400 Date: Fri, 28 Aug 2020 10:24:18 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598603038; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GEiZumMR91+ugTaWQjQ9DrHw93Cp34f5FFmDZ6hxyG4=; b=rcSxKRV9iz2F8Y5zp0USjZ3VF/c7UG2td+HZgDG1akGjyNyD7hFKmdS/77eZnXzUfxiiN5 0fTrTMHUAyBCjvsLFff7Rz1x7uMOlulJoQCdWykXR1VbrifW9eC1GRXRzWm5JsgGOm+HNk /lXufW8PghFth2uCW9UCBgMasazoQsZxkrtp3nkg/Dg87hdQMJHhswOUAdqzJ+3pn0W9sc tyW7LfEPNKm2o37N8N4O/q0cXd5JfXzNnUmJyZA4osAIFbzYTe+1NwT3tHYcjAtLNy4Fzs TuySVs4D9UkfJSjhfoGhbCtS7u8BcU09d20Erq8DhwsU9uO3NOzNRXGAp0M1Tg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598603038; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GEiZumMR91+ugTaWQjQ9DrHw93Cp34f5FFmDZ6hxyG4=; b=Xo5jN+ee8SDiOMwfVBguIWdquTaYib8iyWO4QIDDH2AK0KCMiTXXZJTaqa+kOiK/fzNt8b t/DcLoW98sns0kAw== From: "Ahmed S. Darwish" To: peterz@infradead.org Cc: Ingo Molnar , Will Deacon , Thomas Gleixner , "Sebastian A. Siewior" , "Paul E. McKenney" , Steven Rostedt , LKML Subject: Re: [PATCH v1 1/5] seqlock: seqcount_LOCKTYPE_t: Standardize naming convention Message-ID: <20200828082418.GA7161@lx-t490> References: <20200519214547.352050-1-a.darwish@linutronix.de> <20200828010710.5407-1-a.darwish@linutronix.de> <20200828010710.5407-2-a.darwish@linutronix.de> <20200828081844.GM1362448@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200828081844.GM1362448@hirez.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi :) On Fri, Aug 28, 2020 at 10:18:44AM +0200, peterz@infradead.org wrote: > On Fri, Aug 28, 2020 at 03:07:06AM +0200, Ahmed S. Darwish wrote: > > At seqlock.h, sequence counters with associated locks are either called > > seqcount_LOCKNAME_t, seqcount_LOCKTYPE_t, or seqcount_locktype_t. > > > > Standardize on "seqcount_LOCKTYPE_t" for all instances in comments, > > kernel-doc, and SEQCOUNT_LOCKTYPE() generative macro paramters. > > > +#define SEQCOUNT_LOCKTYPE(locktype, locktype_t, preemptible, lockmember) \ > > +typedef struct seqcount_##locktype { \ > > + __SEQ_LOCK(locktype_t *lock); \ > > +} seqcount_##locktype##_t; \ > > Hurmph, so my thinking was that the above 'locktype' is not actually a > type and therefore a misnomer. > > But I see your point about it being a bit of a mess. > > Would: > > s/LOCKTYPE/LOCKNAME/g > s/seqcount_locktype_t/seqcount_LOCKNAME_t/g > > help? Then we're consistently at: seqcount_LOCKNAME_t, which is a type. > Sounds good, will do. Thanks, -- Ahmed S. Darwish Linutronix GmbH