From: Markus Armbruster <armbru@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>, Cornelia Huck <cohuck@redhat.com>,
qemu-devel@nongnu.org, Halil Pasic <pasic@linux.ibm.com>,
Christian Borntraeger <borntraeger@de.ibm.com>,
qemu-s390x@nongnu.org
Subject: Re: [PATCH] hw/watchdog/wdt_diag288: Remove unnecessary includes
Date: Wed, 18 Nov 2020 15:22:19 +0100 [thread overview]
Message-ID: <873616kan8.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <800135fc-4552-b872-0117-4d9194393094@redhat.com> ("Philippe Mathieu-Daudé"'s message of "Wed, 18 Nov 2020 12:06:35 +0100")
Philippe Mathieu-Daudé <philmd@redhat.com> writes:
> On 11/18/20 10:03 AM, Thomas Huth wrote:
>> Both headers, sysbus.h and module.h, are not required to compile this file.
module.h is: it defines type_init().
>>
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>> ---
>> hw/watchdog/wdt_diag288.c | 2 --
>> 1 file changed, 2 deletions(-)
>>
>> diff --git a/hw/watchdog/wdt_diag288.c b/hw/watchdog/wdt_diag288.c
>> index 71a945f0bd..4c4b6a6ab7 100644
>> --- a/hw/watchdog/wdt_diag288.c
>> +++ b/hw/watchdog/wdt_diag288.c
>> @@ -14,12 +14,10 @@
>> #include "qemu/osdep.h"
>> #include "sysemu/reset.h"
>> #include "sysemu/watchdog.h"
>> -#include "hw/sysbus.h"
>
> OK
>
>> #include "qemu/timer.h"
>> #include "hw/watchdog/wdt_diag288.h"
>> #include "migration/vmstate.h"
>> #include "qemu/log.h"
>> -#include "qemu/module.h"
>
> Cc'ing Markus because of:
>
> commit 0b8fa32f551e863bb548a11394239239270dd3dc
> Author: Markus Armbruster <armbru@redhat.com>
> Date: Thu May 23 16:35:07 2019 +0200
>
> Include qemu/module.h where needed, drop it from qemu-common.h
If it still compiles and links, it must get it via some other header.
>>
>> static WatchdogTimerModel model = {
>> .wdt_name = TYPE_WDT_DIAG288,
>>
next prev parent reply other threads:[~2020-11-18 14:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-18 9:03 [PATCH] hw/watchdog/wdt_diag288: Remove unnecessary includes Thomas Huth
2020-11-18 9:06 ` Christian Borntraeger
2020-11-18 11:06 ` Philippe Mathieu-Daudé
2020-11-18 14:22 ` Markus Armbruster [this message]
2020-11-18 14:30 ` Peter Maydell
2020-11-23 8:16 ` Thomas Huth
2020-11-23 10:47 ` Markus Armbruster
2020-11-23 15:59 ` Cornelia Huck
2020-11-23 18:41 ` Thomas Huth
2020-11-24 11:02 ` Cornelia Huck
2020-11-24 11:03 ` Cornelia Huck
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=873616kan8.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=pasic@linux.ibm.com \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=thuth@redhat.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 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.