linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Henry Lin <henryl@nvidia.com>,
	kbuild-all@01.org, linux-usb@vger.kernel.org,
	Mathias Nyman <mathias.nyman@linux.intel.com>
Cc: kbuild test robot <lkp@intel.com>
Subject: Re: [usb:usb-linus 12/16] drivers/usb/host/xhci-ring.c:676:19: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}'
Date: Wed, 22 May 2019 15:08:13 +0200	[thread overview]
Message-ID: <20190522130812.GA28524@kroah.com> (raw)
In-Reply-To: <201905222054.UDLJMD50%lkp@intel.com>

On Wed, May 22, 2019 at 08:54:56PM +0800, kbuild test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-linus
> head:   f7fac17ca925faa03fc5eb854c081a24075f8bad
> commit: 597c56e372dab2c7f79b8d700aad3a5deebf9d1b [12/16] xhci: update bounce buffer with correct sg num
> config: i386-randconfig-x018-201920 (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
> reproduce:
>         git checkout 597c56e372dab2c7f79b8d700aad3a5deebf9d1b
>         # save the attached .config to linux build tree
>         make ARCH=i386 
> 
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
> 
> All warnings (new ones prefixed by >>):
> 
>    In file included from include/linux/dma-mapping.h:7:0,
>                     from drivers/usb/host/xhci-ring.c:57:
>    drivers/usb/host/xhci-ring.c: In function 'xhci_unmap_td_bounce_buffer':
> >> drivers/usb/host/xhci-ring.c:676:19: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat=]
>       xhci_warn(xhci, "WARN Wrong bounce buffer read length: %ld != %d\n",
>                       ^
>    include/linux/device.h:1400:22: note: in definition of macro 'dev_fmt'
>     #define dev_fmt(fmt) fmt
>                          ^~~
> >> drivers/usb/host/xhci.h:1920:2: note: in expansion of macro 'dev_warn'
>      dev_warn(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
>      ^~~~~~~~
> >> drivers/usb/host/xhci-ring.c:676:3: note: in expansion of macro 'xhci_warn'
>       xhci_warn(xhci, "WARN Wrong bounce buffer read length: %ld != %d\n",
>       ^~~~~~~~~
>    drivers/usb/host/xhci-ring.c: In function 'xhci_align_td':
>    drivers/usb/host/xhci-ring.c:3169:5: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat=]
>         "WARN Wrong bounce buffer write length: %ld != %d\n",
>         ^
>    include/linux/device.h:1400:22: note: in definition of macro 'dev_fmt'
>     #define dev_fmt(fmt) fmt
>                          ^~~
> >> drivers/usb/host/xhci.h:1920:2: note: in expansion of macro 'dev_warn'
>      dev_warn(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
>      ^~~~~~~~
>    drivers/usb/host/xhci-ring.c:3168:4: note: in expansion of macro 'xhci_warn'
>        xhci_warn(xhci,
>        ^~~~~~~~~

Can someone send me a follow-on patch to fix this up please?

thanks,

greg k-h

      reply	other threads:[~2019-05-22 13:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-22 12:54 [usb:usb-linus 12/16] drivers/usb/host/xhci-ring.c:676:19: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' kbuild test robot
2019-05-22 13:08 ` Greg Kroah-Hartman [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=20190522130812.GA28524@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=henryl@nvidia.com \
    --cc=kbuild-all@01.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mathias.nyman@linux.intel.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 NNTP newsgroup(s).