* [balbi-usb:testing/next 57/84] drivers/usb/dwc3/dwc3-st.c:328:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state'
@ 2016-10-17 11:41 kbuild test robot
2016-10-17 11:50 ` Felipe Balbi
0 siblings, 1 reply; 4+ messages in thread
From: kbuild test robot @ 2016-10-17 11:41 UTC (permalink / raw)
Cc: kbuild-all-JC7UmRfGjtg, linux-usb-u79uwXL29TY76Z2rM5mHXA,
linux-omap-u79uwXL29TY76Z2rM5mHXA, Felipe Balbi
[-- Attachment #1: Type: text/plain, Size: 3096 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
head: 4281ef86fae986e0a9bb553fb311fe6d8e039118
commit: 040f47e7330045feaa8c06bf2900db2eb2038e80 [57/84] usb: dwc3: Kconfig: allow all glues to build if COMPILE_TEST
config: blackfin-allmodconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
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 040f47e7330045feaa8c06bf2900db2eb2038e80
# save the attached .config to linux build tree
make.cross ARCH=blackfin
All errors (new ones prefixed by >>):
drivers/usb/dwc3/dwc3-st.c: In function 'st_dwc3_suspend':
>> drivers/usb/dwc3/dwc3-st.c:328:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]
pinctrl_pm_select_sleep_state(dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc3/dwc3-st.c: In function 'st_dwc3_resume':
>> drivers/usb/dwc3/dwc3-st.c:338:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration]
pinctrl_pm_select_default_state(dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/pinctrl_pm_select_sleep_state +328 drivers/usb/dwc3/dwc3-st.c
f83fca07 Peter Griffin 2014-09-05 322 {
f83fca07 Peter Griffin 2014-09-05 323 struct st_dwc3 *dwc3_data = dev_get_drvdata(dev);
f83fca07 Peter Griffin 2014-09-05 324
f83fca07 Peter Griffin 2014-09-05 325 reset_control_assert(dwc3_data->rstc_pwrdn);
f83fca07 Peter Griffin 2014-09-05 326 reset_control_assert(dwc3_data->rstc_rst);
f83fca07 Peter Griffin 2014-09-05 327
f83fca07 Peter Griffin 2014-09-05 @328 pinctrl_pm_select_sleep_state(dev);
f83fca07 Peter Griffin 2014-09-05 329
f83fca07 Peter Griffin 2014-09-05 330 return 0;
f83fca07 Peter Griffin 2014-09-05 331 }
f83fca07 Peter Griffin 2014-09-05 332
f83fca07 Peter Griffin 2014-09-05 333 static int st_dwc3_resume(struct device *dev)
f83fca07 Peter Griffin 2014-09-05 334 {
f83fca07 Peter Griffin 2014-09-05 335 struct st_dwc3 *dwc3_data = dev_get_drvdata(dev);
f83fca07 Peter Griffin 2014-09-05 336 int ret;
f83fca07 Peter Griffin 2014-09-05 337
f83fca07 Peter Griffin 2014-09-05 @338 pinctrl_pm_select_default_state(dev);
f83fca07 Peter Griffin 2014-09-05 339
f83fca07 Peter Griffin 2014-09-05 340 reset_control_deassert(dwc3_data->rstc_pwrdn);
f83fca07 Peter Griffin 2014-09-05 341 reset_control_deassert(dwc3_data->rstc_rst);
:::::: The code at line 328 was first introduced by commit
:::::: f83fca0707c66e36f14efef7f68702cb12de70b7 usb: dwc3: add ST dwc3 glue layer to manage dwc3 HC
:::::: TO: Peter Griffin <peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
:::::: CC: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 41993 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [balbi-usb:testing/next 57/84] drivers/usb/dwc3/dwc3-st.c:328:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state'
2016-10-17 11:41 [balbi-usb:testing/next 57/84] drivers/usb/dwc3/dwc3-st.c:328:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' kbuild test robot
@ 2016-10-17 11:50 ` Felipe Balbi
2016-10-21 12:15 ` Linus Walleij
0 siblings, 1 reply; 4+ messages in thread
From: Felipe Balbi @ 2016-10-17 11:50 UTC (permalink / raw)
To: kbuild test robot, Linus Walleij
Cc: kbuild-all, linux-usb, linux-omap, linux-gpio
[-- Attachment #1: Type: text/plain, Size: 2602 bytes --]
Hi,
kbuild test robot <fengguang.wu@intel.com> writes:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
> head: 4281ef86fae986e0a9bb553fb311fe6d8e039118
> commit: 040f47e7330045feaa8c06bf2900db2eb2038e80 [57/84] usb: dwc3: Kconfig: allow all glues to build if COMPILE_TEST
> config: blackfin-allmodconfig (attached as .config)
> compiler: bfin-uclinux-gcc (GCC) 6.2.0
> 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 040f47e7330045feaa8c06bf2900db2eb2038e80
> # save the attached .config to linux build tree
> make.cross ARCH=blackfin
>
> All errors (new ones prefixed by >>):
>
> drivers/usb/dwc3/dwc3-st.c: In function 'st_dwc3_suspend':
>>> drivers/usb/dwc3/dwc3-st.c:328:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]
> pinctrl_pm_select_sleep_state(dev);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/usb/dwc3/dwc3-st.c: In function 'st_dwc3_resume':
>>> drivers/usb/dwc3/dwc3-st.c:338:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration]
> pinctrl_pm_select_default_state(dev);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
looks like a bug in <linux/pinctrl/consumer.h>. Something along the
lines of below should be enough:
diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h
index d7e5d608faa7..c8aa03aa1c42 100644
--- a/include/linux/pinctrl/consumer.h
+++ b/include/linux/pinctrl/consumer.h
@@ -44,7 +44,9 @@ extern void devm_pinctrl_put(struct pinctrl *p);
extern int pinctrl_pm_select_default_state(struct device *dev);
extern int pinctrl_pm_select_sleep_state(struct device *dev);
extern int pinctrl_pm_select_idle_state(struct device *dev);
-#else
+#endif
+
+#else /* !CONFIG_PINCTRL */
static inline int pinctrl_pm_select_default_state(struct device *dev)
{
return 0;
@@ -57,9 +59,6 @@ static inline int pinctrl_pm_select_idle_state(struct device *dev)
{
return 0;
}
-#endif
-
-#else /* !CONFIG_PINCTRL */
static inline int pinctrl_request_gpio(unsigned gpio)
{
Linus, do you want me to send this as a proper patch? It's pretty clear
that currently we can have build regressions with these helpers. Was it
a conscious choice to not provide stubs or just a slip?
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [balbi-usb:testing/next 57/84] drivers/usb/dwc3/dwc3-st.c:328:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state'
2016-10-17 11:50 ` Felipe Balbi
@ 2016-10-21 12:15 ` Linus Walleij
[not found] ` <CACRpkda5isWVt2H9AvwjER24oBOdvS8M_yqaA5jxUi-aebdxLg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2016-10-21 12:15 UTC (permalink / raw)
To: Felipe Balbi
Cc: kbuild test robot, kbuild-all@01.org, linux-usb@vger.kernel.org,
Linux-OMAP, linux-gpio@vger.kernel.org
On Mon, Oct 17, 2016 at 1:50 PM, Felipe Balbi
<felipe.balbi@linux.intel.com> wrote:
> kbuild test robot <fengguang.wu@intel.com> writes:
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
>> head: 4281ef86fae986e0a9bb553fb311fe6d8e039118
>> commit: 040f47e7330045feaa8c06bf2900db2eb2038e80 [57/84] usb: dwc3: Kconfig: allow all glues to build if COMPILE_TEST
>> config: blackfin-allmodconfig (attached as .config)
>> compiler: bfin-uclinux-gcc (GCC) 6.2.0
>> 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 040f47e7330045feaa8c06bf2900db2eb2038e80
>> # save the attached .config to linux build tree
>> make.cross ARCH=blackfin
>>
>> All errors (new ones prefixed by >>):
>>
>> drivers/usb/dwc3/dwc3-st.c: In function 'st_dwc3_suspend':
>>>> drivers/usb/dwc3/dwc3-st.c:328:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]
>> pinctrl_pm_select_sleep_state(dev);
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/dwc3-st.c: In function 'st_dwc3_resume':
>>>> drivers/usb/dwc3/dwc3-st.c:338:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration]
>> pinctrl_pm_select_default_state(dev);
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> cc1: some warnings being treated as errors
>
> looks like a bug in <linux/pinctrl/consumer.h>. Something along the
> lines of below should be enough:
I don't think so, that include file looks pretty solid.
I think the actual problem is that dwc3-st.c doesn't
#include <linux/pinctrl/consumer.h> even if it is using the
functions from it.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [balbi-usb:testing/next 57/84] drivers/usb/dwc3/dwc3-st.c:328:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state'
[not found] ` <CACRpkda5isWVt2H9AvwjER24oBOdvS8M_yqaA5jxUi-aebdxLg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-10-21 12:29 ` Felipe Balbi
0 siblings, 0 replies; 4+ messages in thread
From: Felipe Balbi @ 2016-10-21 12:29 UTC (permalink / raw)
To: Linus Walleij
Cc: kbuild test robot, kbuild-all@01.org, linux-usb@vger.kernel.org,
Linux-OMAP, linux-gpio@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 2193 bytes --]
Hi,
Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> writes:
> On Mon, Oct 17, 2016 at 1:50 PM, Felipe Balbi
> <felipe.balbi-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> wrote:
>
>> kbuild test robot <fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> writes:
>>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
>>> head: 4281ef86fae986e0a9bb553fb311fe6d8e039118
>>> commit: 040f47e7330045feaa8c06bf2900db2eb2038e80 [57/84] usb: dwc3: Kconfig: allow all glues to build if COMPILE_TEST
>>> config: blackfin-allmodconfig (attached as .config)
>>> compiler: bfin-uclinux-gcc (GCC) 6.2.0
>>> 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 040f47e7330045feaa8c06bf2900db2eb2038e80
>>> # save the attached .config to linux build tree
>>> make.cross ARCH=blackfin
>>>
>>> All errors (new ones prefixed by >>):
>>>
>>> drivers/usb/dwc3/dwc3-st.c: In function 'st_dwc3_suspend':
>>>>> drivers/usb/dwc3/dwc3-st.c:328:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]
>>> pinctrl_pm_select_sleep_state(dev);
>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> drivers/usb/dwc3/dwc3-st.c: In function 'st_dwc3_resume':
>>>>> drivers/usb/dwc3/dwc3-st.c:338:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration]
>>> pinctrl_pm_select_default_state(dev);
>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> cc1: some warnings being treated as errors
>>
>> looks like a bug in <linux/pinctrl/consumer.h>. Something along the
>> lines of below should be enough:
>
> I don't think so, that include file looks pretty solid.
>
> I think the actual problem is that dwc3-st.c doesn't
> #include <linux/pinctrl/consumer.h> even if it is using the
> functions from it.
Oh, I missed that there was already a stub further down the
file. Indeed, we need to add a patch to dwc3-st.c.
Sorry for the noise.
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-10-21 12:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-17 11:41 [balbi-usb:testing/next 57/84] drivers/usb/dwc3/dwc3-st.c:328:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' kbuild test robot
2016-10-17 11:50 ` Felipe Balbi
2016-10-21 12:15 ` Linus Walleij
[not found] ` <CACRpkda5isWVt2H9AvwjER24oBOdvS8M_yqaA5jxUi-aebdxLg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-21 12:29 ` Felipe Balbi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).