qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [PATCH] remove unnecessary casts from uintptr_t
Date: Thu, 18 Jan 2024 07:33:35 +1100	[thread overview]
Message-ID: <189c08d6-77e1-4e53-a89e-7d47f03a226d@linaro.org> (raw)
In-Reply-To: <20240117160500.176509-1-pbonzini@redhat.com>

On 1/18/24 03:05, Paolo Bonzini wrote:
> uintptr_t, or unsigned long which is equivalent on Linux I32LP64 systems,
> is an unsigned type and there is no need to further cast to __u64 which is
> another unsigned integer type; widening casts from unsigned integers
> zero-extend the value.
> 
> Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
> ---
>   block/io_uring.c      | 2 +-
>   hw/vfio/common.c      | 4 ++--
>   target/i386/sev.c     | 8 ++++----
>   util/fdmon-io_uring.c | 2 +-
>   4 files changed, 8 insertions(+), 8 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~


      reply	other threads:[~2024-01-17 20:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-17 16:05 [PATCH] remove unnecessary casts from uintptr_t Paolo Bonzini
2024-01-17 20:33 ` Richard Henderson [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=189c08d6-77e1-4e53-a89e-7d47f03a226d@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=pbonzini@redhat.com \
    --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 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).