Linux-OMAP Archive mirror
 help / color / mirror / Atom feed
From: Roger Quadros <rogerq@kernel.org>
To: Lee Jones <lee@kernel.org>
Cc: linux-kernel@vger.kernel.org, Tony Lindgren <tony@atomide.com>,
	Keshava Munegowda <keshava_mgowda@ti.com>,
	linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/1] mfd: omap-usb-host: Increase size of buffer to include all possible values
Date: Mon, 15 Jan 2024 14:35:43 +0200	[thread overview]
Message-ID: <f236fe3c-c2ea-49c9-8594-aca74891c7f2@kernel.org> (raw)
In-Reply-To: <20240111163949.1976778-1-lee@kernel.org>



On 11/01/2024 18:39, Lee Jones wrote:
> Avoid these nasty W=1 errors:
> 
>   drivers/mfd/omap-usb-host.c: In function ‘usbhs_omap_probe’:
>   drivers/mfd/omap-usb-host.c:706:54: error: ‘_clk’ directive output may be truncated writing 4 bytes into a region of size between 1 and 11 [-Werror=format-truncation=]
>   drivers/mfd/omap-usb-host.c:705:17: note: ‘snprintf’ output between 24 and 34 bytes into a destination of size 30
>   drivers/mfd/omap-usb-host.c:721:56: error: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 8 [-Werror=format-truncation=]
>   drivers/mfd/omap-usb-host.c:721:33: note: directive argument in the range [-2147483640, 2147483647]
>   drivers/mfd/omap-usb-host.c:720:17: note: ‘snprintf’ output between 28 and 38 bytes into a destination of size 30
>   drivers/mfd/omap-usb-host.c:731:55: error: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 9 [-Werror=format-truncation=]
>   drivers/mfd/omap-usb-host.c:731:33: note: directive argument in the range [-2147483640, 2147483647]
>   drivers/mfd/omap-usb-host.c:730:17: note: ‘snprintf’ output between 27 and 37 bytes into a destination of size 30
> 
> Cc: Tony Lindgren <tony@atomide.com>
> Cc: Keshava Munegowda <keshava_mgowda@ti.com>
> Cc: Roger Quadros <rogerq@ti.com>
> Cc: linux-omap@vger.kernel.org
> Signed-off-by: Lee Jones <lee@kernel.org>

Reviewed-by: Roger Quadros <rogerq@kernel.org>


      reply	other threads:[~2024-01-15 12:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-11 16:39 [PATCH 1/1] mfd: omap-usb-host: Increase size of buffer to include all possible values Lee Jones
2024-01-15 12:35 ` Roger Quadros [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=f236fe3c-c2ea-49c9-8594-aca74891c7f2@kernel.org \
    --to=rogerq@kernel.org \
    --cc=keshava_mgowda@ti.com \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.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 read-only IMAP folder(s) and NNTP newsgroup(s).