Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp641602ybt; Wed, 8 Jul 2020 08:15:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1nqvWGLwTocR+0xF1T9Xv4BB2O1iIfZ/w62IH68J8gjnA+CuaR82BQ7FI6owoNSBxYMIt X-Received: by 2002:a50:ec8b:: with SMTP id e11mr55899602edr.344.1594221351016; Wed, 08 Jul 2020 08:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594221351; cv=none; d=google.com; s=arc-20160816; b=A2jFgEGO6kJTqdlHqF4GK/bTGZhPujY39GShoTTaE9OeQcVYcMSRxSyoxI8a5U2isM O6Ahz2HX6lpCc8ohUG5ux6/AVm+GkF/Ajh8zRVgq0X25Wci72AYUwPyHRhNoJY51O0lC mZVGu/qZyZY/NnMk1C5EA2k/n8EFPlYH4A2LgCyKjc65dy8ZhbOSqVmCMZ6WJj5CeGyA p6BSdRteYIDCAV0IdTXWpN/tjZb+KVNbE8RBewCyvB6t1w3FPBBdXT6ODbUFizVu6AId Vd6wMDpvma/GslQXiNvU/GaYUtsF/oXSPn8YprXCJhUZRjt6Eu/V4kBLHLequQkTCq7+ fHrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+wc9AMwrEbeNMpcYWmQkk0DMLNxE+2xQRYkLjlCn58k=; b=ru9R0ggwQL+OtPukobhifgmJ5l+zBGAs4DEPFx0Sa7x3aWgZUWu6J2GY87amtWwPjr 5EwAjeimdmU8r8Ihum8OQnmRAnj+uKOGhT39eRma06em4uSFo6sg2LZQ3HKEgcDczBMa 1JPSFGcbZcQhL7nNZZ7ZfvvpoVlT3KurOUYD3QmyFf34UccvGTt4rHRnYCGjfGLpwuCw qLHygc3NSpsBOsgzPEAdIefZEo7gCDKUm05mg61SlelCjDR8ZqsSmPFMYNz1hfpNtgGy DHwZCvDM9v6MSo+6ypjqo2GokDBxsFXfE0Wr1MsoON33gykeSIyRBGNm3aDZ3YnXsE3o vE0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=chhZELv0; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si105466edr.571.2020.07.08.08.15.27; Wed, 08 Jul 2020 08:15:50 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=chhZELv0; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730078AbgGHPOn (ORCPT + 99 others); Wed, 8 Jul 2020 11:14:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729206AbgGHPOm (ORCPT ); Wed, 8 Jul 2020 11:14:42 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 597DAC061A0B for ; Wed, 8 Jul 2020 08:14:40 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id n26so37032248ejx.0 for ; Wed, 08 Jul 2020 08:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+wc9AMwrEbeNMpcYWmQkk0DMLNxE+2xQRYkLjlCn58k=; b=chhZELv0EVMHzIvL8iY2Ojn8KoNPlOkgGrHSzPggYp9J6IwJyZT704GOCvomH/ZLSl dPKpiE5d4lW1bYKlsa2Xr+Qi71L1d5tpQXOknrf5yowP09mP5/gT4uIxNVnkOegPPHhH nSKMNEoPwDiz/1PkHXC6iAzlBm607d5/Y3f9khJY5XbtkKydSK5NdoIiB9QlsXWTH2QB SyqZt5+5SjFKLuNt+qa0JabcaaoEEpdZ2in1uYFvxwCOg6b49QVLwcR58Je0ntEa5aio LTcpDol25SoPyDuEddaynpnTb1WgO/4+SDpHOSDqJ6HRWEtwU6xOoHz7fmWhmsWZxwDX H8Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+wc9AMwrEbeNMpcYWmQkk0DMLNxE+2xQRYkLjlCn58k=; b=DoArlau+/WVAIvAtQ/XNQtYNhE3PRQuTcAYVBQbQpLSQriMTQTvPMwgFHNI/FQA9IY LtTOxn3ht+q6z7Dd2JDEOtNdGtbfLUgDd5Z8PHyndnGX0LB9fHB5hygjLe8ergI2FSO5 e3PdxegZYLDa6IdeqS1MYuR3l168PegbEthdcWQmKEv8vxS2nMM1tM++fBQ+nwenfI3o CIWOgOuTb6wL3NDj1xhyGiCGBGOPzfKVAPFVee6IL0ICc1KnJOlp+u4UmsBUiyzqD17K GmZ5IGIqcHXzi34GbIgjJ175OK3BbZdb693oijvDo60K0Ob1osNALKiSd+FimuAdkVhx DywA== X-Gm-Message-State: AOAM530qRkrH8ShdblJU2UM6bmnu+QkzAMpTr/x7WyEjVZZrLJ9Q+Jnj WOLyYbwjuf+H/IVkTTVvBh33v7qvZ8vfqVAypGrRMw== X-Received: by 2002:a17:906:1a54:: with SMTP id j20mr51363389ejf.455.1594221279045; Wed, 08 Jul 2020 08:14:39 -0700 (PDT) MIME-Version: 1.0 References: <159419296487.2464622.863943877093636532.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: From: Dan Williams Date: Wed, 8 Jul 2020 08:14:27 -0700 Message-ID: Subject: Re: [PATCH v2] CodingStyle: Inclusive Terminology To: Joe Perches Cc: Jonathan Corbet , Randy Dunlap , Dave Airlie , Kees Cook , SeongJae Park , Olof Johansson , Chris Mason , Greg Kroah-Hartman , Linus Torvalds , tech-board-discuss@lists.linuxfoundation.org, ksummit , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 8, 2020 at 4:05 AM Joe Perches wrote: > > On Wed, 2020-07-08 at 00:23 -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 > > --- > > 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) > > Where did Linus publicly state this was unnecessary? James suggested dropping the document, Linus agreed, I agreed. > > > diff --git 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'. > > Adding a reference to SeongJae Park's introduction of > scripts/deprecated_terms.txt or the like might help > make this list unnecessary if more terms are added. Per his last mail he's going to update his checker to refer to coding-style. > > +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. > > I believe any existing code should not be changed, > not just code that is required to be maintained > for userspace. We have existing practices around coding-style changes that can be applied here. Some subsystems are open to modernizing their code with respect to the latest coding style recommendations and others, especially those with ancient drivers don't want the churn. So, I would hold these cleanups to the same standard.