Skip to content

Commit 335a1fc

Browse files
guoren83gregkh
authored andcommitted
usb: gadget: udc: renesas_usb3: Fix compiler warning
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: 746bfe6 ("usb: gadget: renesas_usb3: add support for Renesas USB3.0 peripheral controller") Cc: [email protected] Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Guo Ren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1ed3af5 commit 335a1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/gadget/udc/renesas_usb3.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ struct renesas_usb3_request {
310310
struct list_head queue;
311311
};
312312

313-
#define USB3_EP_NAME_SIZE 8
313+
#define USB3_EP_NAME_SIZE 16
314314
struct renesas_usb3_ep {
315315
struct usb_ep ep;
316316
struct renesas_usb3 *usb3;

0 commit comments

Comments
 (0)