Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1289010
| Path | csiph.com!goblin2!goblin1!goblin.stu.neva.ru!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | sasa bogicevic <brutallesale@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] drivers:pci:hotplug Fix all space prohibited before that , |
| Date | Fri, 11 Dec 2015 00:30:02 +0100 |
| Message-ID | <qEiOS-4uD-5@gated-at.bofh.it> (permalink) |
| References | <qE6Xn-52l-17@gated-at.bofh.it> <qEica-3Yp-17@gated-at.bofh.it> <qEivw-4mq-11@gated-at.bofh.it> <qEiOS-4uD-7@gated-at.bofh.it> |
| X-Original-To | Bjorn Helgaas <helgaas@kernel.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=HXe3TZKOwcIFJD/JlmfvnWJOvAo7MfXr+m4PcgjnTNI=; b=bzPCIj7Kv9ONMpGN3eY8eyvcomz11rTuAd+TzyA6yAuIgyK7femRmJ7G9vMbccbIuE F4A6zyylZHo9g8DOFqkuk4r6Frw18rsHRDibPz1O0QMoBvy+3rKHMlJxgNF/+5HuNjHL iy3Fwbf1y+vH754iv8PDtllo+pJGzgJkEAfDwfUzvG7p3isVyNH4SWc+cuL1hnGkOAdQ apm97GcgYG/CF1w27aQ0GlyfnWgHyR2OPxpH1cnuQi6qxi4h4ArhpR3TgzYsiSmPXG/V rTF3b1vzYdE3qfQBqE5nDBZrNpSb9gdo9iIx8jM+XUtLtVXIud7jlU6WG6jCv7cPaKxY OpUQ== |
| X-Received | by 10.194.2.168 with SMTP id 8mr18148096wjv.66.1449790113622; Thu, 10 Dec 2015 15:28:33 -0800 (PST) |
| Content-Type | text/plain; charset=utf-8 |
| MIME-Version | 1.0 (Mac OS X Mail 9.2 \(3112\)) |
| Content-Transfer-Encoding | 8BIT |
| X-Mailer | Apple Mail (2.3112) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 51 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | rjw@rjwysocki.net, lenb@kernel.org, bhelgaas@google.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org |
| X-Original-Date | Fri, 11 Dec 2015 00:28:32 +0100 |
| X-Original-Message-ID | <AA8FDE92-4E81-49D6-8BE8-E38DDC6B8303@gmail.com> |
| X-Original-References | <1449744040-76428-1-git-send-email-brutallesale@gmail.com> <20151210224700.GD367@localhost> <6CF18E87-8037-4BD5-82EE-5CCA2BCE8A75@gmail.com> <20151210232446.GA17458@localhost> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1289010 |
Show key headers only | View raw
Cool Ill group all whitespace issues in one patch, compile everything and use objdiff to make sure I didnt brake anything and resend.
Thanks, Sasa
{
name: Bogicevic Sasa
phone: +381606006200
}
> On Dec 11, 2015, at 00:24, Bjorn Helgaas <helgaas@kernel.org> wrote:
>
> On Fri, Dec 11, 2015 at 12:07:03AM +0100, sasa bogicevic wrote:
>> I wanted to start with approach one error one folder so I did “space prohibited before ,” in just hotplug folder. I used checkpatch script to see if I nailed it and the output was fine.
>> When I do grep -rl I also get the same result eventhou when I look at the, for example, drivers/pci/hotplug/shpchp_ctrl.c there is no space before comma anywhere. I double checked it. I didn’t do header files unfortunately so that errors are expected I guess.
>>
>> ./scripts/checkpatch.pl --file --terse drivers/pci/hotplug/shpchp_ctrl.c
>> drivers/pci/hotplug/shpchp_ctrl.c:190: WARNING: Block comments use * on subsequent lines
>> drivers/pci/hotplug/shpchp_ctrl.c:264: WARNING: line over 80 characters
>> drivers/pci/hotplug/shpchp_ctrl.c:265: WARNING: line over 80 characters
>> drivers/pci/hotplug/shpchp_ctrl.c:344: ERROR: return is not a function, parentheses are not required
>> drivers/pci/hotplug/shpchp_ctrl.c:359: ERROR: return is not a function, parentheses are not required
>> drivers/pci/hotplug/shpchp_ctrl.c:439: WARNING: Possible unnecessary 'out of memory' message
>> drivers/pci/hotplug/shpchp_ctrl.c:463: WARNING: space prohibited between function name and open parenthesis '('
>> drivers/pci/hotplug/shpchp_ctrl.c:478: WARNING: space prohibited between function name and open parenthesis '('
>> drivers/pci/hotplug/shpchp_ctrl.c:569: WARNING: space prohibited between function name and open parenthesis '('
>> drivers/pci/hotplug/shpchp_ctrl.c:626: WARNING: space prohibited between function name and open parenthesis ‘('
>> total: 2 errors, 8 warnings, 730 lines checked
>>
>> I used objdiff to record and see if I didn’t change anything and I got no output so I guess all is good, don’t know why grep finds “ ,” it is a mystery to me since I am on my working branch, looking at a file and it is not there. Can you also take a look on your side ?
>>
>> I wanted to do one small thing and when I see that it is good and accepted from you then do all warnings and errors one by one.
>
> OK, makes sense. I think you're on the right track, and if you extend
> this patch to all of drivers/pci, I'll apply it.
>
> I see you found the lines that checkpatch didn't complain about.
> Maybe checkpatch doesn't look at things inside quoted strings? That's
> just a guess; I don't use checkpatch regularly.
>
> If you plan to do other things, e.g., removing spaces between the
> function name and open parenthesis, I'd like to have all the "white
> space-only" changes in a single patch.
>
> Bjorn
--
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/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] drivers:pci:hotplug Fix all space prohibited before that , Bogicevic Sasa <brutallesale@gmail.com> - 2015-12-10 11:50 +0100
Re: [PATCH] drivers:pci:hotplug Fix all space prohibited before that , Bjorn Helgaas <helgaas@kernel.org> - 2015-12-10 23:50 +0100
Re: [PATCH] drivers:pci:hotplug Fix all space prohibited before that , sasa bogicevic <brutallesale@gmail.com> - 2015-12-11 00:10 +0100
Re: [PATCH] drivers:pci:hotplug Fix all space prohibited before that , sasa bogicevic <brutallesale@gmail.com> - 2015-12-11 00:30 +0100
Re: [PATCH] drivers:pci:hotplug Fix all space prohibited before that , Bjorn Helgaas <helgaas@kernel.org> - 2015-12-11 00:30 +0100
Re: [PATCH] drivers:pci:hotplug Fix all space prohibited before that , sasa bogicevic <brutallesale@gmail.com> - 2015-12-11 00:20 +0100
csiph-web