Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp744749ybm; Thu, 28 May 2020 14:06:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBZ7P3XxgVbnLSBFOMhAjoQjIQYcpvLCwHnDZbRwtj6lFfTNfT/cFO2OSthAQeBEhEyf+a X-Received: by 2002:a17:906:27c2:: with SMTP id k2mr4726000ejc.239.1590700000191; Thu, 28 May 2020 14:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590700000; cv=none; d=google.com; s=arc-20160816; b=GUQPfYmltacDFtgrWgMGq4OtM261ydzNYMTiYqMTYmYD+51BXyTH5RmEe/NBTAfDPN MWvWYYogG2mU1zotZOJWWY/M234ai4x8qGI9sFQID8o/eEjpmqrKE7Op/3Nw/r7z+aej CtThviEhugmmstBmKxiEPOXQMIyEJzOCoUt+tNwhMz5RRJogqPLrJ4NFhF87PRez3LnC HTv3Eyo1XxKRtnDmxyR/+Z8cP6tTEtHT1Qh0XvpbCY9gob7g6sMDUcOkfjY3/PnhyaOV cAsdF8Q2eOEQAkzBrdrgWRIvQkHEjtDNNSVbMAUpXGLtHee27oVkTtH1e/IFBJoo2pm4 e1hQ== 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=a7QktF89F9q017cwVaRGNG/TmmFwDMibMVdkImnZY5Y=; b=Y/Va6f02dhqGoJzvEzdQ3kLaJMkvDgMviiSqBVjiz7jDT5qQSF5lKX46QM8uo2Ypp0 Bc+JTnyxEarujOA0KwhcaJmnVg9rsbEa8djqq76GXudLUUJ6l9fgEnAbq0mWaclw8l/t ITNEPx8VoApTMMG7NXRp46FkGIpCSMZQ5eqG2NuFMGAtL7OCinvDxsI2BsKDW5Fhh23V tDMjDrWp45LIdzlBoyLr6483ZvE/S2T2jdU3cQOirf5/+Vr2Xj4s19oXQwMWsewrW+5V sm/lwQpq8XKBPK5wiQ3jJnnacxwZ9jPsX8ex3lOcjVRhXBRGXcWuxkO/CTHJqzg+lchW AK2g== 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 n22si4437508ejd.119.2020.05.28.14.06.16; Thu, 28 May 2020 14:06:40 -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 S2436480AbgE1VEU (ORCPT + 99 others); Thu, 28 May 2020 17:04:20 -0400 Received: from smtprelay0156.hostedemail.com ([216.40.44.156]:49172 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2407503AbgE1VEO (ORCPT ); Thu, 28 May 2020 17:04:14 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 02A0218224D60; Thu, 28 May 2020 21:03:59 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:968:973:982: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:3353:3622:3653:3865:3867:3868:3870:3871:3872:3874:4321:4605:5007:6119:7903:9110:10004:10226:10400:10848:11026:11232:11658:11914:12297:12555:12663:12740:12760:12895:12986:13069:13311:13357:13439:14181:14659:14721:21080:21324:21627:30003:30054:30060:30070: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: whip61_331100626d5d X-Filterd-Recvd-Size: 3056 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf06.hostedemail.com (Postfix) with ESMTPA; Thu, 28 May 2020 21:03:58 +0000 (UTC) Message-ID: <7934ff03b72eac71a8cff3e8bd0f4d8cac0e136e.camel@perches.com> Subject: Re: clean up kernel_{read,write} & friends v2 From: Joe Perches To: Linus Torvalds , Christoph Hellwig Cc: Al Viro , Ian Kent , David Howells , Linux Kernel Mailing List , linux-fsdevel , LSM List , NetFilter Date: Thu, 28 May 2020 14:03:57 -0700 In-Reply-To: References: <20200528054043.621510-1-hch@lst.de> 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:22 -0700, Joe Perches wrote: > On Thu, 2020-05-28 at 11:51 -0700, Linus Torvalds wrote: > > On Wed, May 27, 2020 at 10:40 PM Christoph Hellwig wrote: > > > this series fixes a few issues and cleans up the helpers that read from > > > or write to kernel space buffers, and ensures that we don't change the > > > address limit if we are using the ->read_iter and ->write_iter methods > > > that don't need the changed address limit. > > > > Apart from the "please don't mix irrelevant whitespace changes with > > other changes" comment, this looks fine to me. > > > > And a rant related to that change: I'm really inclined to remove the > > checkpatch check for 80 columns entirely, but it shouldn't have been > > triggering for old lines even now. > > > > Or maybe make it check for something more reasonable, like 100 characters. > > > > I find it ironic and annoying how "checkpatch" warns about that silly > > legacy limit, when checkpatch itself then on the very next few lines > > has a line that is 124 columns wide Another option is to only warn by default when a line in a patch but not a file exceeds the line length maximum. --- scripts/checkpatch.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index dd750241958b..78f5b7f97e42 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3282,8 +3282,10 @@ sub process { if ($msg_type ne "" && (show_type("LONG_LINE") || show_type($msg_type))) { - WARN($msg_type, - "line over $max_line_length characters\n" . $herecurr); + my $msg_level = \&WARN; + $msg_level = \&CHK if ($file); + &{$msg_level}($msg_type, + "line over $max_line_length characters\n" . $herecurr); } }