Re: [PATCH] usb: gadget: renesas_usb3: add support for Renesas USB3.0 peripheral controller

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

 




Hi Yoshihiro,

[auto build test ERROR on balbi-usb/next]
[also build test ERROR on v4.4-rc5 next-20151214]

url:    https://github.com/0day-ci/linux/commits/Yoshihiro-Shimoda/usb-gadget-renesas_usb3-add-support-for-Renesas-USB3-0-peripheral-controller/20151215-145706
base:   https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next
config: i386-allmodconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/bug.h:35:0,
                    from include/linux/bug.h:4,
                    from include/linux/thread_info.h:11,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:59,
                    from include/linux/interrupt.h:8,
                    from drivers/usb/gadget/udc/renesas_usb3.c:13:
   drivers/usb/gadget/udc/renesas_usb3.c: In function 'usb3_calc_ramarea':
>> drivers/usb/gadget/udc/renesas_usb3.c:1240:21: error: 'SZ_16K' undeclared (first use in this function)
     WARN_ON(ram_size > SZ_16K);
                        ^
   include/asm-generic/bug.h:86:25: note: in definition of macro 'WARN_ON'
     int __ret_warn_on = !!(condition);    \
                            ^
   drivers/usb/gadget/udc/renesas_usb3.c:1240:21: note: each undeclared identifier is reported only once for each function it appears in
     WARN_ON(ram_size > SZ_16K);
                        ^
   include/asm-generic/bug.h:86:25: note: in definition of macro 'WARN_ON'
     int __ret_warn_on = !!(condition);    \
                            ^
>> drivers/usb/gadget/udc/renesas_usb3.c:1242:18: error: 'SZ_1K' undeclared (first use in this function)
     if (ram_size <= SZ_1K)
                     ^
>> drivers/usb/gadget/udc/renesas_usb3.c:1244:23: error: 'SZ_2K' undeclared (first use in this function)
     else if (ram_size <= SZ_2K)
                          ^
>> drivers/usb/gadget/udc/renesas_usb3.c:1246:23: error: 'SZ_4K' undeclared (first use in this function)
     else if (ram_size <= SZ_4K)
                          ^
>> drivers/usb/gadget/udc/renesas_usb3.c:1248:23: error: 'SZ_8K' undeclared (first use in this function)
     else if (ram_size <= SZ_8K)
                          ^
   drivers/usb/gadget/udc/renesas_usb3.c: At top level:
>> drivers/usb/gadget/udc/renesas_usb3.c:1626:23: error: 'SZ_16K' undeclared here (not in a function)
     .ramsize_per_ramif = SZ_16K,
                          ^
>> drivers/usb/gadget/udc/renesas_usb3.c:1628:22: error: 'SZ_4K' undeclared here (not in a function)
     .ramsize_per_pipe = SZ_4K,
                         ^
   drivers/usb/gadget/udc/renesas_usb3.c: In function 'usb3_calc_ramarea':
>> drivers/usb/gadget/udc/renesas_usb3.c:1252:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +/SZ_16K +1240 drivers/usb/gadget/udc/renesas_usb3.c

  1234		val |= PN_MOD_EPNUM(usb_endpoint_num(desc));
  1235		usb3_write(usb3, val, USB3_PN_MOD);
  1236	}
  1237	
  1238	static u32 usb3_calc_ramarea(int ram_size)
  1239	{
> 1240		WARN_ON(ram_size > SZ_16K);
  1241	
> 1242		if (ram_size <= SZ_1K)
  1243			return PN_RAMMAP_RAMAREA_1KB;
> 1244		else if (ram_size <= SZ_2K)
  1245			return PN_RAMMAP_RAMAREA_2KB;
> 1246		else if (ram_size <= SZ_4K)
  1247			return PN_RAMMAP_RAMAREA_4KB;
> 1248		else if (ram_size <= SZ_8K)
  1249			return PN_RAMMAP_RAMAREA_8KB;
  1250		else
  1251			return PN_RAMMAP_RAMAREA_16KB;
> 1252	}
  1253	
  1254	static u32 usb3_calc_rammap_val(struct renesas_usb3_ep *usb3_ep,
  1255					const struct usb_endpoint_descriptor *desc)

---
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]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux