mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Arnd Bergmann" <arnd@arndb.de>
To: "Ben Dooks" <ben.dooks@codethink.co.uk>,
	"Amit Shah" <amit@kernel.org>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	virtualization@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] virtio_console: fix endian conversion in handle_control_message()
Date: Tue, 23 Jun 2026 11:28:21 +0200	[thread overview]
Message-ID: <e7255f9b-2393-4754-9695-b0f8400f78c4@app.fastmail.com> (raw)
In-Reply-To: <20260623092141.631355-1-ben.dooks@codethink.co.uk>

On Tue, Jun 23, 2026, at 11:21, Ben Dooks wrote:
> There are a couple of prints in handle_control_message() which should
> have converted cpkt->id through virtio32_to_cpu() before passing to
> a print.
>
> This fixes the following (prototype) sparse warnings:
> drivers/char/virtio_console.c:1538:17: warning: incorrect type in 
> argument 4 (different base types)
> drivers/char/virtio_console.c:1538:17:    expected unsigned int
> drivers/char/virtio_console.c:1538:17:    got restricted __virtio32 
> [usertype] id
> drivers/char/virtio_console.c:1553:25: warning: incorrect type in 
> argument 3 (different base types)
> drivers/char/virtio_console.c:1553:25:    expected unsigned int
> drivers/char/virtio_console.c:1553:25:    got restricted __virtio32 
> [usertype] id
>
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>

Acked-by: Arnd Bergmann <arnd@arndb.de>

  reply	other threads:[~2026-06-23  9:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-23  9:21 Ben Dooks
2026-06-23  9:28 ` Arnd Bergmann [this message]
2026-06-23 12:23 ` Amit Shah

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=e7255f9b-2393-4754-9695-b0f8400f78c4@app.fastmail.com \
    --to=arnd@arndb.de \
    --cc=amit@kernel.org \
    --cc=ben.dooks@codethink.co.uk \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=virtualization@lists.linux.dev \
    /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

all inboxes | Powered by JetHome®