qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] checkpatch issue
@ 2012-05-10 10:10 Gerd Hoffmann
  2012-05-10 10:28 ` Max Filippov
  2012-05-10 16:30 ` Jim Meyering
  0 siblings, 2 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2012-05-10 10:10 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

  Hi,

anyone can explain what checkpatch tries to tell me here?

ERROR: need consistent spacing around '*' (ctx:WxV)
#11: FILE: hw/usb/hcd-ehci.c:1398:
+static int ehci_execute(EHCIPacket *p)

thanks,
  Gerd

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] checkpatch issue
  2012-05-10 10:10 [Qemu-devel] checkpatch issue Gerd Hoffmann
@ 2012-05-10 10:28 ` Max Filippov
  2012-05-10 16:30 ` Jim Meyering
  1 sibling, 0 replies; 3+ messages in thread
From: Max Filippov @ 2012-05-10 10:28 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel@nongnu.org

On Thu, May 10, 2012 at 2:10 PM, Gerd Hoffmann <kraxel@redhat.com> wrote:
>  Hi,
>
> anyone can explain what checkpatch tries to tell me here?
>
> ERROR: need consistent spacing around '*' (ctx:WxV)
> #11: FILE: hw/usb/hcd-ehci.c:1398:
> +static int ehci_execute(EHCIPacket *p)

I guess that it takes asterisk for multiplication sign and suggests
to surround it by spaces from both sides.

-- 
Thanks.
-- Max

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] checkpatch issue
  2012-05-10 10:10 [Qemu-devel] checkpatch issue Gerd Hoffmann
  2012-05-10 10:28 ` Max Filippov
@ 2012-05-10 16:30 ` Jim Meyering
  1 sibling, 0 replies; 3+ messages in thread
From: Jim Meyering @ 2012-05-10 16:30 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel@nongnu.org

Gerd Hoffmann wrote:
> anyone can explain what checkpatch tries to tell me here?
>
> ERROR: need consistent spacing around '*' (ctx:WxV)
> #11: FILE: hw/usb/hcd-ehci.c:1398:
> +static int ehci_execute(EHCIPacket *p)

Hi Gerd,
When I add that line to that file, creating the patch below,
checkpatch does not complain (Fedora 17's perl):

    $ git fp --stdout -1 > k
    $ scripts/checkpatch.pl k
    total: 0 errors, 0 warnings, 11 lines checked

    k has no obvious style problems and is ready for submission.

Regardless, maybe you can placate it by adding a "struct" before
the typedef's EHCIPacket.


>From 49f786191ab2a8176eb44a78e3d5ba44da6e10b6 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Thu, 10 May 2012 18:25:51 +0200
Subject: [PATCH] .


Signed-off-by: Jim Meyering <meyering@redhat.com>
---
 hw/usb/hcd-ehci.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index 4ff4d40..c9ccce9 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -2315,6 +2315,11 @@ static void ehci_register_types(void)
     type_register_static(&ich9_ehci_info);
 }

+static int ehci_execute(EHCIPacket *p)
+{
+}
+
+
 type_init(ehci_register_types)

 /*
--
1.7.10.1.487.ga3935e6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-10 16:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10 10:10 [Qemu-devel] checkpatch issue Gerd Hoffmann
2012-05-10 10:28 ` Max Filippov
2012-05-10 16:30 ` Jim Meyering

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).