Re: [PATCH] usb/gadget: fix gadgetfs aio support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

[auto build test WARNING on balbi-usb/next]
[also build test WARNING on v4.7-rc6 next-20160707]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Mathieu-Laurendeau/usb-gadget-fix-gadgetfs-aio-support/20160708-164431
base:   https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next
reproduce:
        # apt-get install sparse
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   include/linux/compiler.h:232:8: sparse: attribute 'no_sanitize_address': unknown attribute
>> drivers/usb/gadget/legacy/inode.c:545:34: sparse: incompatible types for operation (==)
   drivers/usb/gadget/legacy/inode.c:545:34:    left side has type int
   drivers/usb/gadget/legacy/inode.c:545:34:    right side has type void *
   drivers/usb/gadget/legacy/inode.c: In function 'ep_aio':
   drivers/usb/gadget/legacy/inode.c:545:27: warning: comparison between pointer and integer
     if (unlikely(epdata->ep) == NULL)
                              ^~

vim +545 drivers/usb/gadget/legacy/inode.c

   529		ssize_t value;
   530	
   531		iocb->private = priv;
   532		priv->iocb = iocb;
   533	
   534		kiocb_set_cancel_fn(iocb, ep_aio_cancel);
   535		get_ep(epdata);
   536		priv->epdata = epdata;
   537		priv->actual = 0;
   538		priv->mm = current->mm; /* mm teardown waits for iocbs in exit_aio() */
   539	
   540		/* each kiocb is coupled to one usb_request, but we can't
   541		 * allocate or submit those if the host disconnected.
   542		 */
   543		spin_lock_irq(&epdata->dev->lock);
   544		value = -ENODEV;
 > 545		if (unlikely(epdata->ep) == NULL)
   546			goto fail;
   547	
   548		req = usb_ep_alloc_request(epdata->ep, GFP_ATOMIC);
   549		value = -ENOMEM;
   550		if (unlikely(!req))
   551			goto fail;
   552	
   553		priv->req = req;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]