[PATCH V2] usb: gadget: udc: renesas_usb3: Fix compiler warning
Greg KH
gregkh at linuxfoundation.org
Mon Feb 3 07:41:03 PST 2025
On Wed, Jan 22, 2025 at 03:12:31AM -0500, guoren at kernel.org wrote:
> From: Guo Ren <guoren at linux.alibaba.com>
>
> drivers/usb/gadget/udc/renesas_usb3.c: In function 'renesas_usb3_probe':
> drivers/usb/gadget/udc/renesas_usb3.c:2638:73: warning: '%d'
> directive output may be truncated writing between 1 and 11 bytes into a
> region of size 6 [-Wformat-truncation=]
> 2638 | snprintf(usb3_ep->ep_name, sizeof(usb3_ep->ep_name), "ep%d", i);
> ^~~~~~~~~~~~~~~~~~~~~~~~ ^~ ^
>
> Fixes: 746bfe63bba3 ("usb: gadget: renesas_usb3: add support for Renesas
> USB3.0 peripheral controller")
Please don't wrap lines here.
> Cc: stable at vger.kernel.org
> Reported-by: kernel test robot <lkp at intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202501201409.BIQPtkeB-lkp@intel.com/
> Signed-off-by: Guo Ren <guoren at linux.alibaba.com>
> Signed-off-by: Guo Ren <guoren at kernel.org>
No need to sign off twice on a commit, I'll just drop the last one as
that doesn't match the From: line here.
thanks,
greg k-h
More information about the linux-riscv
mailing list