qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kurz <groug@kaod.org>
To: qemu-devel@nongnu.org
Cc: famz@redhat.com, qemu-ppc@nongnu.org, david@gibson.dropbear.id.au
Subject: Re: [Qemu-devel] [PATCH 0/2] spapr_pci: some more cleanup
Date: Mon, 11 Sep 2017 13:04:08 +0200	[thread overview]
Message-ID: <20170911130408.3225bbbe@bahia.lan> (raw)
In-Reply-To: <150512506547.225.9476838140098482777@6d89bd104fc3>

[-- Attachment #1: Type: text/plain, Size: 2710 bytes --]

On Mon, 11 Sep 2017 03:17:45 -0700 (PDT)
no-reply@patchew.org wrote:

> Hi,
> 
> This series seems to have some coding style problems. See output below for
> more information:
> 
> Subject: [Qemu-devel] [PATCH 0/2] spapr_pci: some more cleanup
> Message-id: 150512483616.8642.15831240906912354238.stgit@bahia.lan
> Type: series
> 
> === TEST SCRIPT BEGIN ===
> #!/bin/bash
> 
> BASE=base
> n=1
> total=$(git log --oneline $BASE.. | wc -l)
> failed=0
> 
> git config --local diff.renamelimit 0
> git config --local diff.renames True
> 
> commits="$(git log --format=%H --reverse $BASE..)"
> for c in $commits; do
>     echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
>     if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
>         failed=1
>         echo
>     fi
>     n=$((n+1))
> done
> 
> exit $failed
> === TEST SCRIPT END ===
> 
> Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
> From https://github.com/patchew-project/qemu
>  * [new tag]               patchew/150512483616.8642.15831240906912354238.stgit@bahia.lan -> patchew/150512483616.8642.15831240906912354238.stgit@bahia.lan
> Switched to a new branch 'test'
> da1ec6583a spapr_pci: don't create 64-bit MMIO window if we don't need to
> f9e9150977 spapr_pci: convert sprintf() to g_strdup_printf()
> 
> === OUTPUT BEGIN ===
> Checking PATCH 1/2: spapr_pci: convert sprintf() to g_strdup_printf()...
> Checking PATCH 2/2: spapr_pci: don't create 64-bit MMIO window if we don't need to...
> ERROR: spaces required around that '-' (ctx:VxV)
> #54: FILE: hw/ppc/spapr_pci.c:1650:
> +    if (sphb->mem64_win_pciaddr != (hwaddr)-1) {
>                                             ^
> 
> ERROR: spaces required around that '-' (ctx:VxV)
> #61: FILE: hw/ppc/spapr_pci.c:1657:
> +        if (sphb->mem64_win_addr != (hwaddr)-1) {
> 

False positive... Fixable with:

--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -213,6 +213,7 @@ our @typeList = (
        qr{${Ident}_handler},
        qr{${Ident}_handler_fn},
        qr{target_(?:u)?long},
+       qr{hwaddr},
 );
 
 # This can be modified by sub possible.  Since it can be empty, be careful

                                             ^


> 
> total: 2 errors, 0 warnings, 26 lines checked
> 
> Your patch has style problems, please review.  If any of these errors
> are false positives report them to the maintainer, see
> CHECKPATCH in MAINTAINERS.
> 
> === OUTPUT END ===
> 
> Test command exited with code: 1
> 
> 
> ---
> Email generated automatically by Patchew [http://patchew.org/].
> Please send your feedback to patchew-devel@freelists.org

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2017-09-11 11:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-11 10:13 [Qemu-devel] [PATCH 0/2] spapr_pci: some more cleanup Greg Kurz
2017-09-11 10:14 ` [Qemu-devel] [PATCH 1/2] spapr_pci: convert sprintf() to g_strdup_printf() Greg Kurz
2017-09-11 10:14 ` [Qemu-devel] [PATCH 2/2] spapr_pci: don't create 64-bit MMIO window if we don't need to Greg Kurz
2017-09-11 10:17 ` [Qemu-devel] [PATCH 0/2] spapr_pci: some more cleanup no-reply
2017-09-11 11:04   ` Greg Kurz [this message]
2017-09-12  6:52 ` David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170911130408.3225bbbe@bahia.lan \
    --to=groug@kaod.org \
    --cc=david@gibson.dropbear.id.au \
    --cc=famz@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).