From: Lee Jones Date: Fri, 3 Jul 2020 17:41:36 +0000 (+0100) Subject: usb: host: xhci-debugfs: Use 'gnu_printf' format notation X-Git-Tag: v5.10.7~1952^2~153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=142c8bb6c516a4caed569a68589489d4d91377e6;p=platform%2Fkernel%2Flinux-rpi.git usb: host: xhci-debugfs: Use 'gnu_printf' format notation Fixes the following W=1 kernel build warning(s): drivers/usb/host/xhci-debugfs.c:128:2: warning: function ‘xhci_debugfs_regset’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 128 | vsnprintf(rgs->name, sizeof(rgs->name), fmt, args); | ^~~~~~~~~ Cc: Mathias Nyman Cc: Lu Baolu Signed-off-by: Lee Jones Link: https://lore.kernel.org/r/20200703174148.2749969-19-lee.jones@linaro.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/xhci-debugfs.c b/drivers/usb/host/xhci-debugfs.c index 76c3f29..92e25a6 100644 --- a/drivers/usb/host/xhci-debugfs.c +++ b/drivers/usb/host/xhci-debugfs.c @@ -110,6 +110,7 @@ static void xhci_debugfs_free_regset(struct xhci_regset *regset) kfree(regset); } +__printf(6, 7) static void xhci_debugfs_regset(struct xhci_hcd *xhci, u32 base, const struct debugfs_reg32 *regs, size_t nregs, struct dentry *parent,