Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp112309pxb; Wed, 4 Nov 2020 16:21:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7Dur1X7KqEJ6CziRdNEw4qK8crCE+hfOlfeAggSEwq6N54VIsVrK9nr565oO+C1CZ71/8 X-Received: by 2002:aa7:cad6:: with SMTP id l22mr377988edt.229.1604535691924; Wed, 04 Nov 2020 16:21:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604535691; cv=none; d=google.com; s=arc-20160816; b=zMqNPt9n6mEuM2/WbrnVTTSIpq4lwNaEZI9OrrYUdjt+m7MijGvPmSh5XB9XrJt+UZ H8ZDNs0UZa+XHxvXuocS5I82eyFhNYNNC0kcNFPP/Gxg5eroBT8dt/tGb9IPNmObrKLK iJI8zshEFKyuktJ3kRbLrTSFfLLJgOISFYjRwlNg/lmMw/aJsv4PTCmEh7DXpLiKKxDR uqhgXVU27/AdGXD5a2uo4Nz4h/6w+ri3glwzazFl7G+yx2Ka5jcz4j3FArAhvb6/AEpA 1fwum1okQ6PZqQ6DJAMsQCMNV8kGQsd5ijDx/8IzhQmdFWt543YmQvvJYUs2+zTXTeHJ vr3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=MG4VUm7ezfj9IXHBw0TBOcU2q+USlLYKiSHMBUAfHqY=; b=sSPGxVOB8TKB20KcAkek/zDsDu89wSv0NRGg7zJZkZTMp/utqLqu2F/DmqUqNvsf5J 9GdYx0ECihhe+gY45Mt74dY+K8ViTnHSqFeh1RMKRoiUfv8l3Zqn4MiurlHkiRNd2X2C HiEsJNUoGN5kif6k/oLylORAKw5tayLyii5xKpI8dneRVVvCVQ8w96q8R7TVy7YQE0ja 5ukUnQ1O9x4H44jxTh/vHyrCftDxlNhvZ11FvwXCsuR/OjegM0+Kc8v/TkQZL1DYSW8S zqF2VhLrUtHAb1PduKZepyOeH3bQtKRZ9HormnUVeK5G7ezmLnYIf6hSZQ+RQDmiPqDA WXqg== 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 4si2427975ejy.644.2020.11.04.16.21.08; Wed, 04 Nov 2020 16:21:31 -0800 (PST) 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 S1729179AbgKDRM6 (ORCPT + 99 others); Wed, 4 Nov 2020 12:12:58 -0500 Received: from smtprelay0137.hostedemail.com ([216.40.44.137]:53192 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726746AbgKDRM6 (ORCPT ); Wed, 4 Nov 2020 12:12:58 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 59C52100E7B4A; Wed, 4 Nov 2020 17:12:57 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 10,1,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:69:355:379:421:599:967:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:1801:2110:2198:2199:2393:2525:2560:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3354:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4470:4605:4823:5007:7903:7974:8829:8985:9025:10007:10400:10848:11026:11232:11233:11658:11783:11914:12043:12296:12297:12438:12663:12683:12740:12895:13439:13894:14096:14097:14181:14659:14721:21067:21080:21324:21433:21451:21627:21939:30054:30070: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:1:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: corn41_551230a272c2 X-Filterd-Recvd-Size: 3173 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf16.hostedemail.com (Postfix) with ESMTPA; Wed, 4 Nov 2020 17:12:55 +0000 (UTC) Message-ID: <57b77f3a36f56e2ae7ab8fe367865b5412d4e11f.camel@perches.com> Subject: Re: [PATCH] ACPI: Remove trailing whitespace From: Joe Perches To: Maximilian Luz , Bjorn Helgaas Cc: linux-acpi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 04 Nov 2020 09:12:54 -0800 In-Reply-To: <6d888eb0-bfc5-28ff-c62f-9e769f77bc1f@gmail.com> References: <20201103211259.GA265488@bjorn-Precision-5520> <6e392d099bd8aaba14223aa770361dbdeeab271b.camel@perches.com> <6d888eb0-bfc5-28ff-c62f-9e769f77bc1f@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-11-04 at 16:48 +0100, Maximilian Luz wrote: > On 11/4/20 6:13 AM, Joe Perches wrote: > > [...] > > > > Yes. I scanned drivers/acpi for trailing whitespaces after I noticed a > > > couple of them. I did not explicitly scan for other stuff like spaces > > > where there should be tabs, mostly because I haven't found a quick and > > > reliable solution for that. I only noticed an inconsistent indentation > > > when committing, so I fixed that too. > > > > You could try: > > > > $ git ls-files -- 'drivers/acpi/*.[ch]' | \ > > ???xargs ./scripts/checkpatch.pl -f --fix-inplace --types=CODE_INDENT > > Thanks, that indeed looks like a decent solution. > > > Right now that produces: > > --- > > [...] > > > diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c [] > > @@ -89,7 +89,7 @@ struct acpi_ac { > > ??#define to_acpi_ac(x) power_supply_get_drvdata(x) > > ?? > > > > ??/* -------------------------------------------------------------------------- > > - AC Adapter Management > > + AC Adapter Management > > ?????-------------------------------------------------------------------------- */ > > I'm not too sure about the comments, but I can find the time to look > over the output and adjust that if that's something you'd want me to do. Up to you. I hardly looked at the output. I'd generally prefer to use a single line comment like /* AC Adapter Management */ but I don't know how often that dashed block is used in ACPI. grep seems to show the texts are not correctly centered so it seems like it was done by hand and not that some automation tool was used to create those blocks. Maybe a separate patch could be done to change those if desired. But not by me. As far as I know, acpi was once autogenerated from a common source tree and whitespace changes were once frowned on, but maybe that's changed or or perhaps that's only for files in drivers/acpi/acpica/. I don't know. https://acpica.org/downloads/linux cheers, Joe