public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, gregkh@linuxfoundation.org, balbi@ti.com,
	robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com,
	ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
	linux-usb@vger.kernel.org, linux-sh@vger.kernel.org,
	devicetree@vger.kernel.org,
	Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Subject: Re: [PATCH] usb: gadget: renesas_usb3: add support for Renesas USB3.0 peripheral controller
Date: Tue, 15 Dec 2015 16:09:38 +0800	[thread overview]
Message-ID: <201512151648.fq5UcilT%fengguang.wu@intel.com> (raw)
In-Reply-To: <1450162472-6664-1-git-send-email-yoshihiro.shimoda.uh@renesas.com>

[-- Attachment #1: Type: text/plain, Size: 3827 bytes --]

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 #2: .config.gz --]
[-- Type: application/octet-stream, Size: 52575 bytes --]

  reply	other threads:[~2015-12-15  8:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-15  6:54 [PATCH] usb: gadget: renesas_usb3: add support for Renesas USB3.0 peripheral controller Yoshihiro Shimoda
2015-12-15  8:09 ` kbuild test robot [this message]
2015-12-15  9:30 ` Arnd Bergmann
2015-12-16  1:43   ` Yoshihiro Shimoda
2015-12-16  2:26   ` Yoshihiro Shimoda
     [not found]     ` <SG2PR06MB0919D7F6AC941F8B1456AF26D8EF0-ESzmfEwOt/zNQ8RBPPB5A20DtJ1/0DrXvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2015-12-16  8:55       ` Arnd Bergmann
2015-12-16 15:49   ` Felipe Balbi

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=201512151648.fq5UcilT%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=balbi@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=kbuild-all@01.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=yoshihiro.shimoda.uh@renesas.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