[wsa:strings/usb-no-enomem 117/125] drivers/usb/renesas_usbhs/mod_host.c:170:17: warning: unused variable 'dev'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git strings/usb-no-enomem
head:   03155c35b3d10af2811891a9f0185a8e7ac64a0b
commit: c8618ca012b2956cc5050659a49a944c53dd4580 [117/125] usb: renesas_usbhs: mod_host: don't print on ENOMEM
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout c8618ca012b2956cc5050659a49a944c53dd4580
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All warnings (new ones prefixed by >>):

   drivers/usb/renesas_usbhs/mod_host.c: In function 'usbhsh_ureq_alloc':
>> drivers/usb/renesas_usbhs/mod_host.c:170:17: warning: unused variable 'dev' [-Wunused-variable]
     struct device *dev = usbhs_priv_to_dev(priv);
                    ^

vim +/dev +170 drivers/usb/renesas_usbhs/mod_host.c

034d7c13 Kuninori Morimoto 2011-10-10  154  #define usbhsh_port_stat_set(h, s)	((h)->port_stat |= (s))
034d7c13 Kuninori Morimoto 2011-10-10  155  #define usbhsh_port_stat_clear(h, s)	((h)->port_stat &= ~(s))
034d7c13 Kuninori Morimoto 2011-10-10  156  #define usbhsh_port_stat_get(h)		((h)->port_stat)
034d7c13 Kuninori Morimoto 2011-10-10  157  
25234b46 Kuninori Morimoto 2011-10-23  158  #define usbhsh_pkt_to_ureq(p)	\
034d7c13 Kuninori Morimoto 2011-10-10  159  	container_of((void *)p, struct usbhsh_request, pkt)
034d7c13 Kuninori Morimoto 2011-10-10  160  
034d7c13 Kuninori Morimoto 2011-10-10  161  /*
034d7c13 Kuninori Morimoto 2011-10-10  162   *		req alloc/free
034d7c13 Kuninori Morimoto 2011-10-10  163   */
25234b46 Kuninori Morimoto 2011-10-23  164  static struct usbhsh_request *usbhsh_ureq_alloc(struct usbhsh_hpriv *hpriv,
034d7c13 Kuninori Morimoto 2011-10-10  165  					       struct urb *urb,
034d7c13 Kuninori Morimoto 2011-10-10  166  					       gfp_t mem_flags)
034d7c13 Kuninori Morimoto 2011-10-10  167  {
034d7c13 Kuninori Morimoto 2011-10-10  168  	struct usbhsh_request *ureq;
034d7c13 Kuninori Morimoto 2011-10-10  169  	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
034d7c13 Kuninori Morimoto 2011-10-10 @170  	struct device *dev = usbhs_priv_to_dev(priv);
034d7c13 Kuninori Morimoto 2011-10-10  171  
034d7c13 Kuninori Morimoto 2011-10-10  172  	ureq = kzalloc(sizeof(struct usbhsh_request), mem_flags);
c8618ca0 Wolfram Sang      2016-08-09  173  	if (!ureq)
034d7c13 Kuninori Morimoto 2011-10-10  174  		return NULL;
034d7c13 Kuninori Morimoto 2011-10-10  175  
034d7c13 Kuninori Morimoto 2011-10-10  176  	usbhs_pkt_init(&ureq->pkt);
034d7c13 Kuninori Morimoto 2011-10-10  177  	ureq->urb = urb;
fc9d5c79 Kuninori Morimoto 2011-10-31  178  	usbhsh_urb_to_ureq(urb) = ureq;

:::::: The code at line 170 was first introduced by commit
:::::: 034d7c13a79c67d3b52dd782d68e6c324613878a usb: gadget: renesas_usbhs: add mod_host support

:::::: TO: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
:::::: CC: Felipe Balbi <balbi@xxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux