All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Laurent Vivier <laurent@vivier.eu>
Cc: qemu-devel@nongnu.org,  qemu-trivial@nongnu.org
Subject: Re: [PATCH 3/3] Drop more useless casts from void * to pointer
Date: Wed, 23 Nov 2022 14:24:49 +0100	[thread overview]
Message-ID: <87mt8h6bxa.fsf@pond.sub.org> (raw)
In-Reply-To: <6a978ba7-45cb-323d-0c1c-ed40dd68972f@vivier.eu> (Laurent Vivier's message of "Sat, 22 Oct 2022 23:07:13 +0200")

Laurent Vivier <laurent@vivier.eu> writes:

> Le 23/09/2022 à 14:00, Markus Armbruster a écrit :
>> Signed-off-by: Markus Armbruster <armbru@redhat.com>
>> ---
>>   bsd-user/elfload.c                      | 2 +-
>>   contrib/plugins/cache.c                 | 8 ++++----
>>   contrib/vhost-user-blk/vhost-user-blk.c | 2 +-
>>   hw/core/qdev-clock.c                    | 2 +-
>>   hw/hyperv/vmbus.c                       | 2 +-
>>   hw/net/cadence_gem.c                    | 2 +-
>>   hw/net/virtio-net.c                     | 2 +-
>>   hw/nvme/ctrl.c                          | 4 ++--
>>   hw/rdma/vmw/pvrdma_cmd.c                | 9 +++------
>>   hw/rdma/vmw/pvrdma_qp_ops.c             | 6 +++---
>>   hw/virtio/virtio-iommu.c                | 3 +--
>>   linux-user/syscall.c                    | 2 +-
>>   target/i386/hax/hax-all.c               | 2 +-
>>   tests/tcg/aarch64/system/semiheap.c     | 4 ++--
>>   util/coroutine-ucontext.c               | 2 +-
>>   util/vfio-helpers.c                     | 2 +-
>>   16 files changed, 25 insertions(+), 29 deletions(-)
>> 
> ...
>> diff --git a/util/coroutine-ucontext.c b/util/coroutine-ucontext.c
>> index ddc98fb4f8..31f586d366 100644
>> --- a/util/coroutine-ucontext.c
>> +++ b/util/coroutine-ucontext.c
>> @@ -105,7 +105,7 @@ void finish_switch_fiber(void *fake_stack_save)
>>       __sanitizer_finish_switch_fiber(fake_stack_save, &bottom_old, &size_old);
>>         if (!leaderp->stack) {
>> -        leaderp->stack = (void *)bottom_old;
>> +        leaderp->stack = bottom_old;
>
> bottom_old is "const void *" and stack is "void *", I think compiler will complain we discard the "const" qualifier.

You're right.

> Otherwise:
>
> Reviewed-by: Laurent Vivier <laurent@vivier.eu>

Thanks!



  reply	other threads:[~2022-11-23 13:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23 12:00 [PATCH 0/3] Drop useless casts from void * to pointer Markus Armbruster
2022-09-23 12:00 ` [PATCH 1/3] hw/core: Tidy up unnecessary casting away of const Markus Armbruster
2022-09-23 12:53   ` Philippe Mathieu-Daudé
2022-09-23 12:53     ` Philippe Mathieu-Daudé via
2022-10-22 20:50   ` Laurent Vivier
2022-09-23 12:00 ` [PATCH 2/3] Drop useless casts from g_malloc() & friends to pointer Markus Armbruster
2022-10-22 20:52   ` Laurent Vivier
2022-09-23 12:00 ` [PATCH 3/3] Drop more useless casts from void * " Markus Armbruster
2022-10-22 21:07   ` Laurent Vivier
2022-11-23 13:24     ` Markus Armbruster [this message]
2022-10-20 12:12 ` [PATCH 0/3] Drop " Markus Armbruster
2022-10-22 21:07   ` Laurent Vivier

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=87mt8h6bxa.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@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.