Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp698054ybt; Wed, 8 Jul 2020 09:28:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxD8EvZKKXzFqX9oya5KsyVtxcYSeTMbD3PW6RSG8Qu9+oKej1aXZ6xlHRE5HCER4wR7IET X-Received: by 2002:a05:6402:128c:: with SMTP id w12mr58499052edv.65.1594225695910; Wed, 08 Jul 2020 09:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594225695; cv=none; d=google.com; s=arc-20160816; b=l6RbGOLkCAHo+6VBijFlslE0XBGkXgQXZTZg7CvWbN79Y3VnbajXnRqObyHpCiGViB 2UkMjCrIwf0EmbgosYly5MclB3RduhcViqVGv92Uj4cQFcLVcO1i4Fq4lvgCBkifm+rS W4inGJcfDco4nG23sIMwvMorzo3KpPBInUr9l9fxmgKi1dhO/RhcsdhRMKBKQVei8EBj HzVLZH6TUEzQcuCRq1RGidG/LmqamijkDo+uht5ler0f52KpkLK/+miR7TsTqAySt/4T imXqqyeG64DXREUULlfSIc2UOVrqK6sWOOnvIVggf/JL8mf6XKI7Na8Qq6jh1pSEwfY6 e6Cw== 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:date; bh=r+qiuX/+0mpdZJuSWuYsE+ImEeR5T2ik4/851uhyn50=; b=qfuYd96hv3a7J1nH1QgakP2WmLlxsJDzZGtnV7AGXj4GuR4bPMShdKcPO9EqfI8Bgn OXSplzvmxy14sTq1Vdto0+nbQCZDt1U+UyRskwKLgvvyioxYbYItIzPyTDkW2yRMO+d6 /Pb7K1mNBQBrUNBK2yTOlR89XuIZatzX/faFBw73jc7p6INCS/kwYkaJsJQXJtiFZ5t7 YZ4aV1SR2EMIz1gncvh/H3+WK0Lr1heuzs85824XuApErspJsd7g3+WMPakeNfBjNirn I2HAnQmcs5gtuZ+Gx9nIqk88lE82g527lnBg7LN8OBTppEaVorWBlDXFkMzeNFK/EHrs yAgQ== ARC-Authentication-Results: i=1; mx.google.com; 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 dt16si236471ejc.525.2020.07.08.09.27.52; Wed, 08 Jul 2020 09:28:15 -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; 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 S1730453AbgGHQYD (ORCPT + 99 others); Wed, 8 Jul 2020 12:24:03 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:59193 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730116AbgGHQYD (ORCPT ); Wed, 8 Jul 2020 12:24:03 -0400 Received: from ip5f5af08c.dynamic.kabel-deutschland.de ([95.90.240.140] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jtCrU-0003RS-Or; Wed, 08 Jul 2020 16:23:56 +0000 Date: Wed, 8 Jul 2020 18:23:56 +0200 From: Christian Brauner To: Dan Williams Cc: corbet@lwn.net, ksummit-discuss@lists.linuxfoundation.org, Greg Kroah-Hartman , SeongJae Park , linux-kernel@vger.kernel.org, tech-board-discuss@lists.linuxfoundation.org, Chris Mason , Dave Airlie Subject: Re: [Ksummit-discuss] [PATCH v2] CodingStyle: Inclusive Terminology Message-ID: <20200708162356.nrdv7n3dkasjiyfu@wittgenstein> References: <159419296487.2464622.863943877093636532.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <159419296487.2464622.863943877093636532.stgit@dwillia2-desk3.amr.corp.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 08, 2020 at 12:23:59AM -0700, Dan Williams wrote: > Linux maintains a coding-style and its own idiomatic set of terminology. > Update the style guidelines to recommend replacements for the terms > master/slave and blacklist/whitelist. > > Link: http://lore.kernel.org/r/159389297140.2210796.13590142254668787525.stgit@dwillia2-desk3.amr.corp.intel.com > Cc: Jonathan Corbet > Acked-by: Randy Dunlap > Acked-by: Dave Airlie > Acked-by: Kees Cook > Acked-by: SeongJae Park > Signed-off-by: Olof Johansson > Signed-off-by: Chris Mason > Signed-off-by: Greg Kroah-Hartman > Signed-off-by: Dan Williams > --- Probably got lost somewhere: Acked-by: Christian Brauner > Changes since v1 [1] > - Drop inclusive-terminology.rst, it is in the lore archives if the > arguments are needed for future debates, but otherwise no pressing > need to carry it in the tree (Linus, James) > > - Update the recommended terms to include replacement for 'master' and > 'whitelist' (Kees, Andy) > > - Add 'target' as a replacement (Andy) > > - Add 'device' as a replacement (Mark) > > - Collect acks and signed-off-bys. Yes, the sign-offs are not reflective > of a submission chain, but I kept "Signed-off-by" if people offered > it. > > - Non-change: I did not add explicit language as to what to do with > existing usages. My personal inclination is to prioritize this > coding-style cleanup higher than others, but the coding-style document > has typically not indicated policy on how cleanups are handled by > subsystems. It will be a case by case effort and consideration. > > [1]: http://lore.kernel.org/r/159389297140.2210796.13590142254668787525.stgit@dwillia2-desk3.amr.corp.intel.com > > Documentation/process/coding-style.rst | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/Documentation/process/coding-style.rst b/Documentation/process/coding-style.rst > index 2657a55c6f12..a5b61e9005ac 100644 > --- a/Documentation/process/coding-style.rst > +++ b/Documentation/process/coding-style.rst > @@ -319,6 +319,19 @@ If you are afraid to mix up your local variable names, you have another > problem, which is called the function-growth-hormone-imbalance syndrome. > See chapter 6 (Functions). > > +For symbol names, avoid introducing new usage of 'master/slave' (or > +'slave' independent of 'master') and 'blacklist/whitelist'. Recommended > +replacements for 'master/slave' are: 'main/{secondary,subordinate}', > +'primary/replica', '{initiator,requester}/{target,responder}', > +'host/{device,proxy}', or 'leader/{performer,follower}'. Recommended > +replacements for 'blacklist/whitelist' are: 'denylist/allowlist' or > +'blocklist/passlist'. > + > +Exceptions for introducing new usage is to maintain a userspace ABI/API, > +or when updating code for an existing (as of 2020) hardware or protocol > +specification that mandates those terms. For new specifications > +translate specification usage of the terminology to the kernel coding > +standard where possible. > > 5) Typedefs > ----------- > > _______________________________________________ > Ksummit-discuss mailing list > Ksummit-discuss@lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss