qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Gautam Agrawal <gautamnagrawal@gmail.com>
Cc: peter.maydell@linaro.org, Gerd Hoffmann <kraxel@redhat.com>,
	qemu-devel@nongnu.org, stefanha@gmail.com
Subject: Re: [PATCH] Warn user if the vga flag is passed but no vga device is created
Date: Wed, 13 Apr 2022 08:36:04 +0200	[thread overview]
Message-ID: <83746e5b-61a4-1c1e-f241-8b53cb67ffd4@redhat.com> (raw)
In-Reply-To: <CAG-ETXuh2-bJBO4298uyc166ptiTauimChBE=TwoYpxYx4npUA@mail.gmail.com>

  Hi,

On 12/04/2022 22.25, Gautam Agrawal wrote:
[...]>> On 08/04/2022 12.45, Gautam Agrawal wrote:
>>> This patch is in regards to this issue:https://gitlab.com/qemu-project/qemu/-/issues/581#.
>>
>> Better write this right in front of your Signed-off-by line:
>>
>> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/581
>>
>> ... then the ticket will be automatically be closed once your patch gets merged.
>>
> I apologize for this mistake

No need to apologize, it was just a hint for a minor improvement - and 
you've got the other patch formatting very right already :-)

>> vga_interface_type is also used in hw/mips/fuloong2e.c and
>> hw/xenpv/xen_machine_pv.c ... do they need a change, too?
> 
> I can definitely make similar changes in them too since they also
> specify the vga_interface_type, shall I proceed with this?
> 
>> This will trigger a warning from the scripts/checkpatch.pl script:
>>
>> ERROR: do not initialise globals to 0 or NULL
>> #238: FILE: softmmu/globals.c:43:
>> +bool vga_interface_created = false;
> 
> Could you kindly suggest a better approach to this than creating a
> global variable.

Global variables are fine, simply drop the "= false" at the end of the line. 
All global variables are always pre-initialized to 0, so global boolean 
variables are set to 0 (i.e. false) by default, too.

>> I'm not a native speaker, and maybe it's just a matter of taste, but I'd
>> rather say it in past tense: "No VGA device has been created"
> 
> I will correct the warning message, as suggested by Peter Maydell.

Great, thank you!

  Thomas



  reply	other threads:[~2022-04-13  6:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-08 10:45 [PATCH] Warn user if the vga flag is passed but no vga device is created Gautam Agrawal
2022-04-12 12:13 ` Thomas Huth
2022-04-12 12:39   ` Peter Maydell
2022-04-12 20:25   ` Gautam Agrawal
2022-04-13  6:36     ` Thomas Huth [this message]
2022-04-25  5:47 ` Markus Armbruster
2022-04-25  9:25   ` Peter Maydell

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=83746e5b-61a4-1c1e-f241-8b53cb67ffd4@redhat.com \
    --to=thuth@redhat.com \
    --cc=gautamnagrawal@gmail.com \
    --cc=kraxel@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /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).