From: Stefan Weil <sw@weilnetz.de>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 1/4] console: a few cleanups
Date: Wed, 18 Jan 2012 06:50:28 +0100 [thread overview]
Message-ID: <4F165DA4.2010001@weilnetz.de> (raw)
In-Reply-To: <CA+aC4kvB8bbu80rBekw5+iE8Sz0uJKL5xfQiCopcVJMhZbANVQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1835 bytes --]
Am 18.01.2012 01:49, schrieb Anthony Liguori:
>
> On Jan 17, 2012 12:16 AM, "Stefan Weil" <sw@weilnetz.de
> <mailto:sw@weilnetz.de>> wrote:
> >
> > Am 16.01.2012 23:36, schrieb Anthony Liguori:
> >
> >> We don't do anything with the list of registered DisplayState so
> get rid of it.
> >> That's one less list to deal with down the road.
> >>
> >> Also pass DisplayState to the callbacks in DisplayState so users
> can avoid
> >> global state references.
> >>
> >> Signed-off-by: Anthony Liguori<aliguori@us.ibm.com
> <mailto:aliguori@us.ibm.com>>
> >> ---
> >> console.c | 9 +++------
> >> console.h | 6 ++----
> >> hw/vmware_vga.c | 4 ++--
> >> ui/sdl.c | 4 ++--
> >> ui/spice-display.c | 4 ++--
> >> ui/vnc.c | 4 ++--
> >> 6 files changed, 13 insertions(+), 18 deletions(-)
> >>
> >
> > Is checkpatch.pl <http://checkpatch.pl> buggy, or did you forget to
> run it?
> >
> > There are coding style issues at least in patch 1/4 and 2/4.
> Please elaborate.
> Regards,
> Anthony Liguori
> >
> > Regards,
> >
> > Stefan Weil
> >
> >
There are missing braces in several modified blocks, for example:
if (s->vga.ds->cursor_define)
- s->vga.ds->cursor_define(qc);
+ s->vga.ds->cursor_define(s->vga.ds, qc);
cursor_put(qc);
checkpatch.pl does not detect this because the change was in the one
line block,
not in the conditional statement:
$ scripts/checkpatch.pl
/home/stefan/Downloads/1-4-console-a-few-cleanups.patch
WARNING: line over 80 characters
#85: FILE: hw/vmware_vga.c:908:
+ s->vga.ds->mouse_set(s->vga.ds, s->cursor.x, s->cursor.y,
s->cursor.on);
total: 0 errors, 1 warnings, 89 lines checked
It's quite common in other patches to fix the braces when blocks without
braces
are changed.
Regards,
Stefan Weil
[-- Attachment #2: Type: text/html, Size: 3560 bytes --]
prev parent reply other threads:[~2012-01-18 5:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-16 22:36 [Qemu-devel] [PATCH 1/4] console: a few cleanups Anthony Liguori
2012-01-16 22:36 ` [Qemu-devel] [PATCH 2/4] sdl: move globals to a state file, update everything accordingly Anthony Liguori
2012-01-16 22:36 ` [Qemu-devel] [PATCH 3/4] console: pass DisplayAllocator as first argument to methods Anthony Liguori
2012-01-17 6:16 ` [Qemu-devel] [PATCH 1/4] console: a few cleanups Stefan Weil
2012-01-18 0:49 ` Anthony Liguori
2012-01-18 5:50 ` Stefan Weil [this message]
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=4F165DA4.2010001@weilnetz.de \
--to=sw@weilnetz.de \
--cc=anthony@codemonkey.ws \
--cc=qemu-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.