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
config: i386-randconfig-r0-07081252 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   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

Attachment: .config.gz
Description: Binary data

Reply via email to