Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1506049pxb; Wed, 4 Nov 2020 10:43:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwU4wRGhYNlJct32ZmXrTS0XXL92A26QrD6TVecjn957YvlAkPetx0Yr5Rsee4jDlTsDnz8 X-Received: by 2002:a17:906:5a96:: with SMTP id l22mr26029871ejq.303.1604515422550; Wed, 04 Nov 2020 10:43:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604515422; cv=none; d=google.com; s=arc-20160816; b=l0yppc0NAPGHrLexdb9ynA/yTARR71NzwKBCfrnpJeG0ZCvN5ZPHZiN1lxQbc11zI1 WmcId/80Ye8hXSNIplv2D6FQtN1mfFfMHrZpdtZiMljAZj6U4xkEmp+VK7Vuq+0VqP9B bxj4a7wmqtXhL+EhPGqReZ73eJANHD24T6X5nEw7TrjNExASVksnn7GoGrmCTJaEvv94 eytXuAKD2XMmb0nf2vaWB7SAdzDBRDefaCh9iVdRbLb6ux2SLIn4nj3wGm8p2pE3eb2S OAykHgadNiPrTIfZSWgmel8mA5sykPd637nOCSuZ3b7WuygfXTkshDnqs/5ENKo+kzKx mqCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=QEgtaOk4Lm7njaeuUYPIlzlOOaGGZwPV3+RIUaq3hFo=; b=SAlNl2CjFErNXeqJZZ7mw2pPo1GKMJYwPPl4+zUyxcsjMrVkTW1qUI/qOAYfihKoKD G2hrApzJYOdGqMkfYTstW69hWAviirwxwKypx9hiwV9IszW7H9O1U8oP7wfC2/elhjZL Q2IxOMIqpaJDOpc+YXYl7STHqBskwtByxjBlwCBPp96PFBdrPPpKcu+NCtPNoIZaJlPz /ySQmnryXHpxUGYUnuvIeTLCYfIEfemlvBKK+i2G+rQ36P9GwIh7TGuQltvfXLOJK276 yFJHgMeyR1XOWm0kdAXjS2AllFDulXSweAcKik/yKprMkN9o3Cgx6FJ/V/8eXnF8k1N4 4Syg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt15si1929896ejb.248.2020.11.04.10.43.18; Wed, 04 Nov 2020 10:43:42 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731441AbgKDRUT (ORCPT + 99 others); Wed, 4 Nov 2020 12:20:19 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:42020 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726604AbgKDRUS (ORCPT ); Wed, 4 Nov 2020 12:20:18 -0500 Received: by mail-oi1-f196.google.com with SMTP id w145so17265961oie.9; Wed, 04 Nov 2020 09:20:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QEgtaOk4Lm7njaeuUYPIlzlOOaGGZwPV3+RIUaq3hFo=; b=FCkitBjH/UkpIhTM50sTNUJ6lsz1WVY0WFHYAVezGgicX87EBT8o2Kqn96p90O2Ftf G0l+THTSV1F7gOVhBBxo6oFGENtRysB6wqlt0TEneUZGA8AACPVeBmrNZMGDMqpxxeBV hbqsDqerTZhNKCju0Ry1aYBBoC9mfi4a/F+zxvDzhMdGHcct1p8m2vl1h8hLRWwxk40C YA0d7wfCCjCPhm9+0HRMc/mq6N8SIwent6GkZ1+U62IKHUXxMw6jSalIJWKtORERC88I cEtUO0XgU1socBpgYV3wUhkQ/QZ0p662yk+fw6S5zYXcH+kNVuXJLC3I+4i4ekNkpsSO rrUg== X-Gm-Message-State: AOAM5302IVqXxHoaaO6CXRO0rbZyHM6jIEJqL22J+F317x7XWPtaZVAR 8rH42SS4u7+k2Yrm0wGvbpuFbHXUvCSbco+gOBk= X-Received: by 2002:aca:30d7:: with SMTP id w206mr3205561oiw.69.1604510417420; Wed, 04 Nov 2020 09:20:17 -0800 (PST) MIME-Version: 1.0 References: <20201103211259.GA265488@bjorn-Precision-5520> <6e392d099bd8aaba14223aa770361dbdeeab271b.camel@perches.com> <6d888eb0-bfc5-28ff-c62f-9e769f77bc1f@gmail.com> <57b77f3a36f56e2ae7ab8fe367865b5412d4e11f.camel@perches.com> In-Reply-To: <57b77f3a36f56e2ae7ab8fe367865b5412d4e11f.camel@perches.com> From: "Rafael J. Wysocki" Date: Wed, 4 Nov 2020 18:20:06 +0100 Message-ID: Subject: Re: [PATCH] ACPI: Remove trailing whitespace To: Joe Perches Cc: Maximilian Luz , Bjorn Helgaas , ACPI Devel Maling List , "Rafael J. Wysocki" , Len Brown , Bjorn Helgaas , Linux PCI , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 4, 2020 at 6:13 PM Joe Perches wrote: > > 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. If anyone has a problem with them. > 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/. The latter.