Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp454181ybt; Wed, 8 Jul 2020 04:06:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmFJIz7pS763b3/o3eO/epS1fKJBvuhjnI52SdTwezZNvigtvtx+YT2WKaXXSk/+DeCUsI X-Received: by 2002:a05:6402:1250:: with SMTP id l16mr67528590edw.362.1594206388339; Wed, 08 Jul 2020 04:06:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594206388; cv=none; d=google.com; s=arc-20160816; b=lqMg6bRx3CacqxFTVA3ZewSvuHlPr5owLtjL7nB1U1UnWZAVcGoC2ppAyF/ejSPAYH TvWB+I+0lPetVKPV7OsEQQQUi6SMzRfXuArl0MZ8iOcxTl5uozq2SA9dCv85rwbRj8sZ NtemUvf8e3GM/FUCueI0NWTeFDieKHGrY3UTFRDBsXgbG5KD54AR+86wkKPxhmnjjO+L GuEs+JyTftfC5GDhgDaBvth2yXhEycALFAwQhcWoiX+ZTsQ7lHwkzm+6phEePw9gpm43 /wpErZpcAeocifz8O3GHhqODltENey7p+v4hGUuyPuw7AOolYTmU69JOwFqPbzBnJbJi 4vog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=5NaryORJuElCfThEdm6Kv+ZT+IDJlUMj5DqIbROk+Uo=; b=RSITN7pO3jI0I++rAzOGWBe73yVtWj+4/VnJRMoDhqlSGMrsGIf6BINA5B2+bAHMpk 8Xgbx3PzH6O4Y4lrwhdVMQ2P5GAQFilb2niOrMZaYYJrc2oPTzIQf8pQqiUbkHhbV3E6 JUYd3VvGMfC4zBIevEEkhZw4TqRk3G15fLYktq8CvMFpfY5JNK/QKhyjeLxjbUQb1DBV ZcPGCBfL3hqf3sYtlQOU/UMzZ3sV8dlvXe/zRKAbhKyCyHtHnPK/eLLMKNg9PYX8Imei wYuiPOLvKrsIMOfKpWA3OXDN5eia0vAjvbLokgwIqlYFE5uXZZm7fRrfQiMIfRPs2CgR U0/A== 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 dd25si2646694edb.290.2020.07.08.04.06.05; Wed, 08 Jul 2020 04:06:28 -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 S1728750AbgGHLE4 (ORCPT + 99 others); Wed, 8 Jul 2020 07:04:56 -0400 Received: from smtprelay0058.hostedemail.com ([216.40.44.58]:52554 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728385AbgGHLEy (ORCPT ); Wed, 8 Jul 2020 07:04:54 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 69D20100E7B42; Wed, 8 Jul 2020 11:04:53 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:334:355:368:369:379:599:800:960:967:973:982:988:989:1028:1260:1263:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:1969:1975:2195:2199:2393:2525:2560:2563:2682:2685:2691:2828:2859:2895:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6119:6742:7875:8599:8957:9010:9025:10004:10400:10848:10913:11232:11473:11658:11914:12043:12297:12438:12555:12740:12760:12783:12895:12986:13019:13141:13149:13230:13439:14096:14097:14181:14659:14721:14849:21080:21433:21451:21627:21939:30012:30030:30045:30054:30062:30064:30070:30089:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: water41_2400efa26ebc X-Filterd-Recvd-Size: 3704 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf04.hostedemail.com (Postfix) with ESMTPA; Wed, 8 Jul 2020 11:04:51 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2] CodingStyle: Inclusive Terminology From: Joe Perches To: Dan Williams , Jonathan Corbet Cc: Randy Dunlap , Dave Airlie , Kees Cook , SeongJae Park , Olof Johansson , Chris Mason , Greg Kroah-Hartman , torvalds@linux-foundation.org, tech-board-discuss@lists.linuxfoundation.org, ksummit-discuss@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Date: Wed, 08 Jul 2020 04:04:50 -0700 In-Reply-To: <159419296487.2464622.863943877093636532.stgit@dwillia2-desk3.amr.corp.intel.com> References: <159419296487.2464622.863943877093636532.stgit@dwillia2-desk3.amr.corp.intel.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.3-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > 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. > +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.