Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp4280985ybt; Mon, 6 Jul 2020 00:10:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk897i9FeqAf2jJgFgmrsK3T4+SCcL7LuBeJIlaFln6umZxuvr5xBKiU5rshydis+wCJxi X-Received: by 2002:a17:906:7746:: with SMTP id o6mr43282751ejn.75.1594019426356; Mon, 06 Jul 2020 00:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594019426; cv=none; d=google.com; s=arc-20160816; b=tCUNq6A6YnX33aXs4bo6yzRS3A28Ce9tXOf36Y5jUMToVx4SbeLAJ05YzK6BrQxhZ8 CEGq9uI31TMrIVQ5g4F3Fg25g7ndIBaW7PqIJdUWvTaDhlHOur9H5rh+rK9HZYldiTir yr1W5pIP1RFzwA05Un7K/38fXa9vhcElOhPH7tj9aLC0kbRFqonvzLPTahtn12HjpLdJ ZtTSZ4va3rPIzy0GMTbKGhTLYJDONR2Dioi9Bx321amdfF3fV3K1WlP/rZ9JEkyYYGRJ sXjX641gGFidSnfulUA8vUIDtYH8VrDhkVT9oI4O3KsEEsSjrFzIdGPVkyI+KSsW92mD W4cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from; bh=kO2guhrd8bGxLWl6iygHQAi1c72x1JcfvXs6jZxAUUk=; b=N3ExPWFe0+3SuwMF7CpTbi9zBwp52yTVpZAZVopu0VvE1lYArDXg2auawb3U0gd0G9 dWE1PBYrVobWHwENuFmO6EqQdrKaZBWBzjBkRCnANfPv8HYPAyLYtK7af0XHvbDmJoKO wEnk91K8O1eCKa4T51cmp+e29HVDWDru8aC11QRmsXqx4U/u/njx+Lr02ke71O4r+sPR WpV+tGuWFlkjv0lHZBMd+QxzfkaZojm21LQvBIyNbZ6WIyukVLu2/xjiPQGPnd3n91mp SmQeIJrXrGUYJD0y7yOVA4FE20Fh4NHyN2Ye96kpXNELcKDT7/8jwoI4hxffzL32ROt0 uv6g== 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 y19si13029877ejb.186.2020.07.06.00.10.02; Mon, 06 Jul 2020 00:10:26 -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 S1728306AbgGFHG4 (ORCPT + 99 others); Mon, 6 Jul 2020 03:06:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:57334 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728015AbgGFHG4 (ORCPT ); Mon, 6 Jul 2020 03:06:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id AEFE1AC9F; Mon, 6 Jul 2020 07:06:54 +0000 (UTC) From: NeilBrown To: Matthew Wilcox , Dan Williams Date: Mon, 06 Jul 2020 17:06:45 +1000 Cc: ksummit , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, tech-board-discuss@lists.linuxfoundation.org, Chris Mason Subject: Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology In-Reply-To: References: <159389297140.2210796.13590142254668787525.stgit@dwillia2-desk3.amr.corp.intel.com> Message-ID: <87imf115ru.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain On Sat, Jul 04 2020, Matthew Wilcox wrote: > Another suggestion for "slave" replacement should be "device". This is in > the context of the w1 bus which is by far the largest user of the > master/slave terminology in the kernel. Ugh. Please, no. "device" doesn't mean anything, in that you can use it to refer to any thing. (i.e. it is almost semantically equivalent to "thing"). Look in /sys/devices. Everything in there is a device, and (nearly) every thing is in there. NeilBrown > > On Sat., Jul. 4, 2020, 16:19 Dan Williams, wrote: > >> Recent events have prompted a Linux position statement on inclusive >> terminology. Given that Linux maintains a coding-style and its own >> idiomatic set of terminology here is a proposal to answer the call to >> replace non-inclusive terminology. >> >> Cc: Jonathan Corbet >> Cc: Kees Cook >> Signed-off-by: Chris Mason >> Signed-off-by: Greg Kroah-Hartman >> Signed-off-by: Dan Williams >> --- >> Documentation/process/coding-style.rst | 12 ++++ >> Documentation/process/inclusive-terminology.rst | 64 >> +++++++++++++++++++++++ >> Documentation/process/index.rst | 1 >> 3 files changed, 77 insertions(+) >> create mode 100644 Documentation/process/inclusive-terminology.rst >> >> diff --git a/Documentation/process/coding-style.rst >> b/Documentation/process/coding-style.rst >> index 2657a55c6f12..4b15ab671089 100644 >> --- a/Documentation/process/coding-style.rst >> +++ b/Documentation/process/coding-style.rst >> @@ -319,6 +319,18 @@ 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 the words 'slave' and >> +'blacklist'. Recommended replacements for 'slave' are: 'secondary', >> +'subordinate', 'replica', 'responder', 'follower', 'proxy', or >> +'performer'. Recommended replacements for blacklist are: 'blocklist' or >> +'denylist'. >> + >> +Exceptions for introducing new usage is to maintain a userspace ABI, or >> +when updating code for an existing (as of 2020) hardware or protocol >> +specification that mandates those terms. For new specifications consider >> +translating specification usage of the terminology to the kernel coding >> +standard where possible. See :ref:`process/inclusive-terminology.rst >> +` for details. >> >> 5) Typedefs >> ----------- >> diff --git a/Documentation/process/inclusive-terminology.rst >> b/Documentation/process/inclusive-terminology.rst >> new file mode 100644 >> index 000000000000..a8eb26690eb4 >> --- /dev/null >> +++ b/Documentation/process/inclusive-terminology.rst >> @@ -0,0 +1,64 @@ >> +.. _inclusiveterminology: >> + >> +Linux kernel inclusive terminology >> +================================== >> + >> +The Linux kernel is a global software project, and in 2020 there was a >> +global reckoning on race relations that caused many organizations to >> +re-evaluate their policies and practices relative to the inclusion of >> +people of African descent. This document describes why the 'Naming' >> +section in :ref:`process/coding-style.rst ` recommends >> +avoiding usage of 'slave' and 'blacklist' in new additions to the Linux >> +kernel. >> + >> +On the triviality of replacing words >> +==================================== >> + >> +The African slave trade was a brutal system of human misery deployed at >> +global scale. Some word choice decisions in a modern software project >> +does next to nothing to compensate for that legacy. So why put any >> +effort into something so trivial in comparison? Because the goal is not >> +to repair, or erase the past. The goal is to maximize availability and >> +efficiency of the global developer community to participate in the Linux >> +kernel development process. >> + >> +Word choice and developer efficiency >> +==================================== >> + >> +Why does any software project go through the trouble of developing a >> +document like :ref:`process/coding-style.rst `? It does so >> +because a common coding style maximizes the efficiency of both >> +maintainers and developers. Developers learn common design patterns and >> +idiomatic expressions while maintainers can spot deviations from those >> +norms. Even non-compliant whitespace is considered a leading indicator >> +to deeper problems in a patchset. Coding style violations are known to >> +take a maintainer "out of the zone" of reviewing code. Maintainers are >> +also sensitive to word choice across specifications and often choose to >> +deploy Linux terminology to replace non-idiomatic word-choice in a >> +specification. >> + >> +Non-inclusive terminology has that same distracting effect which is why >> +it is a style issue for Linux, it injures developer efficiency. >> + >> +Of course it is around this point someone jumps in with an etymological >> +argument about why people should not be offended. Etymological arguments >> +do not scale. The scope and pace of Linux to reach new developers >> +exceeds the ability of historical terminology defenders to describe "no, >> +not that connotation". The revelation of 2020 was that black voices were >> +heard on a global scale and the Linux kernel project has done its small >> +part to answer that call as it wants black voices, among all voices, in >> +its developer community. >> + >> +Really, 'blacklist' too? >> +======================== >> + >> +While 'slave' has a direct connection to human suffering the etymology >> +of 'blacklist' is devoid of a historical racial connection. However, one >> +thought exercise is to consider replacing 'blacklist/whitelist' with >> +'redlist/greenlist'. Realize that the replacement only makes sense if >> +you have been socialized with the concepts that 'red/green' implies >> +'stop/go'. Colors to represent a policy requires an indirection. The >> +socialization of 'black/white' to have the connotation of >> +'impermissible/permissible' does not support inclusion. >> + >> +Inclusion == global developer community efficiency. >> diff --git a/Documentation/process/index.rst >> b/Documentation/process/index.rst >> index f07c9250c3ac..ed861f6f8d25 100644 >> --- a/Documentation/process/index.rst >> +++ b/Documentation/process/index.rst >> @@ -27,6 +27,7 @@ Below are the essential guides that every developer >> should read. >> submitting-patches >> programming-language >> coding-style >> + inclusive-terminology >> maintainer-pgp-guide >> email-clients >> kernel-enforcement-statement >> >> _______________________________________________ >> Ksummit-discuss mailing list >> Ksummit-discuss@lists.linuxfoundation.org >> https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss >> > _______________________________________________ > Ksummit-discuss mailing list > Ksummit-discuss@lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAl8CzYUACgkQOeye3VZi gbmscRAAoq9BjgfvwE8+ki/65ILY8dCDmw3GEwtn9KTodi7as+MAhT/i/O7lXG3Z FA0UpWB2JoaBijEp0U9Dy8uKfZN8RmYLTf80s0RxVHRN+2pIpKXc97uNUeHuD6SS zEfOicQ9OavlZuFVxm4RCFc3gOnuYJ/csVY7eMZm3L+4njSZizfqIRe5B25e9CLX AykL6DmEPR5QC9JG22F2BX0FtjelksCIDVjgPxseJqg3c3+iEHp4tqi3nIYnyTy9 BNAXc/uqtJRtlzI1yfihtnXugEPEvbA1GArCHVgGbcEuziep2OoFljYun6Eeeo8e FsFsjtLJ5XSupuB1rGD8IdRrrsGf+wZWm0o9Bntmo3YZWJnVq+3ImbtW0ImSx7mg EWbVhA3p3cHA1fQVuQYGe8+00Kcm9JUpRWbl0kHJ3qcMr0LBsLNt+MRD+8eY2oZ9 OVslkKVlUFHZqPtJmDlkWydeW9mxXh7ktd3KqksRGIM9npGKwfudx/gZzAmS7Gai 8LovOrVtJSGYGzEPq7W0B3MwXjfA2ck8MEhEEVRbMntDuPRiWN5h+Tuf7yP7Ofee h2N0rWHGiOaAG16YzInS4jk6BxDOrT8+02fYvyQQ2FPYiaVqBoNj25YwnCzosCT1 eJxPvI/gB7JfpWELhV3sXhAyvMEzVHbqV5+owIsgSylRrduK4Mg= =eOmT -----END PGP SIGNATURE----- --=-=-=--