Linux kernel staging patches
 help / color / mirror / Atom feed
From: Dan Carpenter <error27@gmail.com>
To: "Omar Yiğitcan Mengü" <menguomary@gmail.com>
Cc: vireshk@kernel.org, johan@kernel.org, elder@kernel.org,
	gregkh@linuxfoundation.org, greybus-dev@lists.linaro.org,
	linux-staging@lists.linux.dev
Subject: Re: [PATCH] staging: greybus: bootrom: fix firmware size endianness in debug log
Date: Fri, 4 Dec 2026 21:09:41 +0300	[thread overview]
Message-ID: <axMB5WkVJi-SboQA@stanley.mountain> (raw)
In-Reply-To: <CAE5crmQxN+bMu3XewnyZ-CpskznBm9Ea_EdAoAjARbnbGHmStw@mail.gmail.com>

On Fri, Dec 04, 2026 at 05:08:08PM +0000, Omar Yiğitcan Mengü wrote:
> In gb_bootrom_firmware_size_request(), size_response->size is a __le32
> field populated with cpu_to_le32(bootrom->fw->size). Printing
> size_response->size directly with %u outputs a byte-swapped value on
> big-endian hosts.
> 
> Print bootrom->fw->size directly with %zu instead so the logged size is
> always in host byte order.
> 
> Signed-off-by: Omar Yiğitcan Mengü <menguomary@gmail.com>
> ---
>  drivers/staging/greybus/bootrom.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/greybus/bootrom.c
> b/drivers/staging/greybus/bootrom.c
> index fb1fbd3f7b9..4e225084851 100644
> --- a/drivers/staging/greybus/bootrom.c
> +++ b/drivers/staging/greybus/bootrom.c
> @@ -222,8 +222,8 @@ static int gb_bootrom_firmware_size_request(struct
> gb_operation *op)

The patch is corrupt.  Read the first paragraph of
Documentation/process/email-clients.rst  Otherwise the patch itself
seems reasonable enough.

regards,
dan carpenter


      reply	other threads:[~2026-12-04 18:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 17:08 [PATCH] staging: greybus: bootrom: fix firmware size endianness in debug log Omar Yiğitcan Mengü
2026-12-04 18:09 ` Dan Carpenter [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=axMB5WkVJi-SboQA@stanley.mountain \
    --to=error27@gmail.com \
    --cc=elder@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=greybus-dev@lists.linaro.org \
    --cc=johan@kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=menguomary@gmail.com \
    --cc=vireshk@kernel.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