Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754183AbbL0RVl (ORCPT ); Sun, 27 Dec 2015 12:21:41 -0500 Received: from smtprelay0108.hostedemail.com ([216.40.44.108]:39326 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752871AbbL0RVj (ORCPT ); Sun, 27 Dec 2015 12:21:39 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:2901:2915:3138:3139:3140:3141:3142:3353:3622:3865:3867:3868:3870:3871:3873:3874:4321:5007:6261:8603:10004:10400:10450:10455:10848:11026:11232:11473:11658:11914:12043:12296:12438:12517:12519:12740:13069:13161:13229:13311:13357:13618:13894:14659:19904:19999:21080:30012:30054:30069:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: face91_826744e7d3008 X-Filterd-Recvd-Size: 2313 Message-ID: <1451236894.1098.5.camel@perches.com> Subject: Re: [PATCH] drivers:pci Fix all whitespace issues From: Joe Perches To: Bogicevic Sasa , bhelgaas@google.com Cc: Richard.Zhu@freescale.com, l.stach@pengutronix.de, rjw@rjwysocki.net, lenb@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Date: Sun, 27 Dec 2015 09:21:34 -0800 In-Reply-To: <1451234408-42250-1-git-send-email-brutallesale@gmail.com> References: <1451234408-42250-1-git-send-email-brutallesale@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.3-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1578 Lines: 42 On Sun, 2015-12-27 at 08:40 -0800, Bogicevic Sasa wrote: > This patch fixes all whitespace issues( missing or needed whitespace) in > all files in drivers/pci folder. Code is compiled with allyesconfig > before and after code changes and objects are recorded and checked with > objdiff and they are not changed after this commit. [] > diff --git a/drivers/pci/access.c b/drivers/pci/access.c [] > @@ -25,9 +25,9 @@ DEFINE_RAW_SPINLOCK(pci_lock); > ?#define PCI_word_BAD (pos & 1) > ?#define PCI_dword_BAD (pos & 3) > ? > -#define PCI_OP_READ(size,type,len) \ > +#define PCI_OP_READ(size, type, len) \ > ?int pci_bus_read_config_##size \ > - (struct pci_bus *bus, unsigned int devfn, int pos, type *value) \ > + (struct pci_bus *bus, unsigned int devfn, int pos, type * value) \ > ?{ \ > ? int res; \ > ? unsigned long flags; \ > @@ -40,7 +40,7 @@ int pci_bus_read_config_##size \ > ? return res; \ > ?} When the first entry I look at is improper, I wonder about the rest. Was this done with checkpatch --types=spacing --fix ? If so, because checkpatch is brainless, you need to visually verify each change. This "type" use is a macro argument indicating what actual c90 type is being used in a function. The original code is nominally correct, but checkpatch doesn't know that "type" is not a variable. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/