Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp719641ybm; Thu, 28 May 2020 13:23:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmQBHKDPN+CCZMLT/Kvme7zT4R2FoZvpMc2SPvRStmskFv6PLqr15VZoM/mey3KcGgo1s2 X-Received: by 2002:a50:d7d1:: with SMTP id m17mr5269150edj.126.1590697391599; Thu, 28 May 2020 13:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590697391; cv=none; d=google.com; s=arc-20160816; b=ML1Y0E+Xe0tWnuipnsdI9ySou6KXH8ANKVPIU9WVz/mUujhhifGDN7F2QnUSed6WBn OhtsuCn/26xvGzpYsGU7q+xkcRueoW8gqAhcjevkmYQmzMy4DO+glmhVUEbaNknOa+Wi AGruFy2qDq6yPsqIt8qpe0u9RjL1rV5jEt8qY1yV0tTEcFRwDn4PwElLRGws5kxCK9Ju fo8xAxuW2+IccuUttrkJryKOOWXsrRNKiw+1n7VzRk8fHIYRvc1m6xJB3ALMFWxuP3oh +MmRFDXdqYb0Huq2zrwt9+sta22ljfVQ7k4XDnV4L+qhak6BDBSIhwxiBpGEEjw3JUXN HUaA== 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=aa2LUzhxXWp6hMoAp+E7x/vnPpKoch8L00eceGE8W+w=; b=0cuPH6dQ/mMnB39uytVuDLaA1YEP3MroflFqvKWwuWIf3UyftHSs5DflR9+VzBEiad 77yB24PXbqQwxmAUADCuJrccVzvfUN5yE9+j3/8SPfUGtv50ZsySedmb3nKvexZT9iPK ieT7GnIvXimAAIEgpIVx0kTx/XtbvUoxkedpTPE06NnVIpto6mG2HugL5NlL1qwyF1r8 plCqoT8mB35CeeMUYfBWjJlYvaOIaLGPYncIrlRdxCdXqiqHNR9Isl7n/fArGyrjq9qP CuhYBybR0koCRku2RwyI7o+NWPtFWu9p7QZc3kVXk+ZOJMsfXJXVDfMWaBRTgbOVNMpE 3H2g== 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 j26si4631577ejk.3.2020.05.28.13.22.48; Thu, 28 May 2020 13:23:11 -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 S2407103AbgE1USg (ORCPT + 99 others); Thu, 28 May 2020 16:18:36 -0400 Received: from smtprelay0203.hostedemail.com ([216.40.44.203]:35514 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2406935AbgE1USf (ORCPT ); Thu, 28 May 2020 16:18:35 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id DC94B18000C0E; Thu, 28 May 2020 20:18:32 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3871:3872:4321:5007:10004:10400:10848:11026:11232:11658:11914:12043:12050:12296:12297:12438:12740:12760:12895:13069:13311:13357:13439:14096:14097:14659:14721:21063:21080:21627:21740:30012:30039:30054:30060:30090: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:1,LUA_SUMMARY:none X-HE-Tag: burn98_22177ce26d5d X-Filterd-Recvd-Size: 2530 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Thu, 28 May 2020 20:18:30 +0000 (UTC) Message-ID: <499cba4e00172867850b13df26670ed80d41d7a6.camel@perches.com> Subject: Re: clean up kernel_{read,write} & friends v2 From: Joe Perches To: Matthew Wilcox , Al Viro Cc: Linus Torvalds , Christoph Hellwig , Ian Kent , David Howells , Linux Kernel Mailing List , linux-fsdevel , LSM List , NetFilter , Alex Deucher , David Airlie Date: Thu, 28 May 2020 13:18:29 -0700 In-Reply-To: <20200528194441.GQ17206@bombadil.infradead.org> References: <20200528054043.621510-1-hch@lst.de> <20200528193340.GR23230@ZenIV.linux.org.uk> <20200528194441.GQ17206@bombadil.infradead.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.2-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 Thu, 2020-05-28 at 12:44 -0700, Matthew Wilcox wrote: > On Thu, May 28, 2020 at 08:33:40PM +0100, Al Viro wrote: > > On Thu, May 28, 2020 at 12:22:08PM -0700, Joe Perches wrote: > > > > > Hard limits at 80 really don't work well, especially with > > > some of the 25+ character length identifiers used today. > > > > IMO any such identifier is a good reason for a warning. > > > > The litmus test is actually very simple: how unpleasant would it be > > to mention the identifiers while discussing the code over the phone? > > Here's a good example of a function which should be taken out and shot: > > int amdgpu_atombios_get_leakage_vddc_based_on_leakage_params(struct amdgpu_devic > e *adev, Ick. Seems simple enough as it doesn't appear to be used... $ git grep amdgpu_atombios_get_leakage_vddc_based_on_leakage_params drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:int amdgpu_atombios_get_leakage_vddc_based_on_leakage_params(struct amdgpu_device *adev, drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h:int amdgpu_atombios_get_leakage_vddc_based_on_leakage_params(struct amdgpu_device *adev,