[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f236fe3c-c2ea-49c9-8594-aca74891c7f2@kernel.org>
Date: Mon, 15 Jan 2024 14:35:43 +0200
From: Roger Quadros <rogerq@...nel.org>
To: Lee Jones <lee@...nel.org>
Cc: linux-kernel@...r.kernel.org, Tony Lindgren <tony@...mide.com>,
Keshava Munegowda <keshava_mgowda@...com>, linux-omap@...r.kernel.org
Subject: Re: [PATCH 1/1] mfd: omap-usb-host: Increase size of buffer to
include all possible values
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@...mide.com>
> Cc: Keshava Munegowda <keshava_mgowda@...com>
> Cc: Roger Quadros <rogerq@...com>
> Cc: linux-omap@...r.kernel.org
> Signed-off-by: Lee Jones <lee@...nel.org>
Reviewed-by: Roger Quadros <rogerq@...nel.org>
Powered by blists - more mailing lists