From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Li Qiang <liq3ea@gmail.com>
Cc: Thomas Huth <thuth@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
qemu-trivial@nongnu.org, Michael Tokarev <mjt@tls.msk.ru>,
Laurent Vivier <laurent@vivier.eu>,
Qemu Developers <qemu-devel@nongnu.org>,
Dov Murik <dovmurik@linux.vnet.ibm.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH v2 1/2] hw/timer/hpet: Remove dead code
Date: Thu, 10 Sep 2020 16:50:22 +0200 [thread overview]
Message-ID: <ad2e06b8-fe5e-628a-7145-e724c85ccf6f@redhat.com> (raw)
In-Reply-To: <CAKXe6SLhDWvWU_D-87sb0sHfNOO9dkPPS4EiVjuXuHLiCbGKgw@mail.gmail.com>
On 9/10/20 4:46 PM, Li Qiang wrote:
> Philippe Mathieu-Daudé <philmd@redhat.com> 于2020年9月10日周四 下午10:01写道:
>>
>> This code was never compiled/used, remove it.
>>
>> Reviewed-by: Thomas Huth <thuth@redhat.com>
>> Signed-off-by: Dov Murik <dovmurik@linux.vnet.ibm.com>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>> ---
>> hw/timer/hpet.c | 14 --------------
>> 1 file changed, 14 deletions(-)
>>
>> diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c
>> index 380acfa7c8a..b683f64f1d3 100644
>> --- a/hw/timer/hpet.c
>> +++ b/hw/timer/hpet.c
>
> Maybe we also remove the
> "//#define HPET_DEBUG"
> in the head of this file?
We need to convert the debug calls to trace events first.
>
> Thanks,
> Li Qiang
>
>> @@ -416,20 +416,6 @@ static void hpet_del_timer(HPETTimer *t)
>> update_irq(t, 0);
>> }
>>
>> -#ifdef HPET_DEBUG
>> -static uint32_t hpet_ram_readb(void *opaque, hwaddr addr)
>> -{
>> - printf("qemu: hpet_read b at %" PRIx64 "\n", addr);
>> - return 0;
>> -}
>> -
>> -static uint32_t hpet_ram_readw(void *opaque, hwaddr addr)
>> -{
>> - printf("qemu: hpet_read w at %" PRIx64 "\n", addr);
>> - return 0;
>> -}
>> -#endif
>> -
>> static uint64_t hpet_ram_read(void *opaque, hwaddr addr,
>> unsigned size)
>> {
>> --
>> 2.26.2
>>
>>
>
next prev parent reply other threads:[~2020-09-10 14:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-10 13:58 [PATCH v2 0/2] hw/timer/hpet: Trivial format string fix Philippe Mathieu-Daudé
2020-09-10 13:58 ` [PATCH v2 1/2] hw/timer/hpet: Remove dead code Philippe Mathieu-Daudé
2020-09-10 14:46 ` Li Qiang
2020-09-10 14:50 ` Philippe Mathieu-Daudé [this message]
2020-09-10 13:58 ` [PATCH v2 2/2] hw/timer/hpet: Fix DPRINTF format string Philippe Mathieu-Daudé
2020-09-12 17:40 ` Dov Murik
2020-09-13 11:40 ` Philippe Mathieu-Daudé
2020-09-14 6:40 ` Dov Murik
2020-09-10 14:08 ` [PATCH v2 0/2] hw/timer/hpet: Trivial format string fix Philippe Mathieu-Daudé
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=ad2e06b8-fe5e-628a-7145-e724c85ccf6f@redhat.com \
--to=philmd@redhat.com \
--cc=dovmurik@linux.vnet.ibm.com \
--cc=laurent@vivier.eu \
--cc=liq3ea@gmail.com \
--cc=mjt@tls.msk.ru \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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 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).