linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [tegra:for-4.10/bus 4/4] drivers/bus/tegra-gmi.c:97:11: error: 'dev' undeclared
@ 2016-11-07 17:44 kbuild test robot
       [not found] ` <201611080158.Q53HGK2q%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: kbuild test robot @ 2016-11-07 17:44 UTC (permalink / raw)
  To: Mirza Krak
  Cc: kbuild-all-JC7UmRfGjtg, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	Thierry Reding

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-4.10/bus
head:   4f95e6a5c9e433197244c91dd25102a85dbb7877
commit: 4f95e6a5c9e433197244c91dd25102a85dbb7877 [4/4] bus: Add support for Tegra Generic Memory Interface
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
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 4f95e6a5c9e433197244c91dd25102a85dbb7877
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/bus/tegra-gmi.c: In function 'tegra_gmi_parse_dt':
>> drivers/bus/tegra-gmi.c:97:11: error: 'dev' undeclared (first use in this function)
      dev_err(dev, "no child nodes found\n");
              ^~~
   drivers/bus/tegra-gmi.c:97:11: note: each undeclared identifier is reported only once for each function it appears in

vim +/dev +97 drivers/bus/tegra-gmi.c

    91		struct device_node *child;
    92		u32 property, ranges[4];
    93		int err;
    94	
    95		child = of_get_next_available_child(gmi->dev->of_node, NULL);
    96		if (!child) {
  > 97			dev_err(dev, "no child nodes found\n");
    98			return -ENODEV;
    99		}
   100	

---
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: 59432 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [tegra:for-4.10/bus 4/4] drivers/bus/tegra-gmi.c:97:11: error: 'dev' undeclared
       [not found] ` <201611080158.Q53HGK2q%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
@ 2016-11-08 10:47   ` Thierry Reding
       [not found]     ` <20161108104745.GA3154-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Thierry Reding @ 2016-11-08 10:47 UTC (permalink / raw)
  To: kbuild test robot
  Cc: Mirza Krak, kbuild-all-JC7UmRfGjtg,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

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

On Tue, Nov 08, 2016 at 01:44:03AM +0800, kbuild test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-4.10/bus
> head:   4f95e6a5c9e433197244c91dd25102a85dbb7877
> commit: 4f95e6a5c9e433197244c91dd25102a85dbb7877 [4/4] bus: Add support for Tegra Generic Memory Interface
> config: arm-allmodconfig (attached as .config)
> compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
> 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 4f95e6a5c9e433197244c91dd25102a85dbb7877
>         # save the attached .config to linux build tree
>         make.cross ARCH=arm 
> 
> All errors (new ones prefixed by >>):
> 
>    drivers/bus/tegra-gmi.c: In function 'tegra_gmi_parse_dt':
> >> drivers/bus/tegra-gmi.c:97:11: error: 'dev' undeclared (first use in this function)
>       dev_err(dev, "no child nodes found\n");
>               ^~~
>    drivers/bus/tegra-gmi.c:97:11: note: each undeclared identifier is reported only once for each function it appears in
> 
> vim +/dev +97 drivers/bus/tegra-gmi.c
> 
>     91		struct device_node *child;
>     92		u32 property, ranges[4];
>     93		int err;
>     94	
>     95		child = of_get_next_available_child(gmi->dev->of_node, NULL);
>     96		if (!child) {
>   > 97			dev_err(dev, "no child nodes found\n");
>     98			return -ENODEV;
>     99		}
>    100	

Sorry, this is my bad. I forgot to enable TEGRA_GMI in the default
configuration and that caused my build tests not to pick up the new
driver. Fixing it now.

Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [tegra:for-4.10/bus 4/4] drivers/bus/tegra-gmi.c:97:11: error: 'dev' undeclared
       [not found]     ` <20161108104745.GA3154-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
@ 2016-11-08 12:13       ` Mirza Krak
       [not found]         ` <CALw8SCVXOqd=3B6tzE90TQa6S4BJSKmjV_Y3SrB6_Nc1_hsn+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Mirza Krak @ 2016-11-08 12:13 UTC (permalink / raw)
  To: Thierry Reding
  Cc: kbuild test robot, kbuild-all-JC7UmRfGjtg,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

2016-11-08 11:47 GMT+01:00 Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>:
> On Tue, Nov 08, 2016 at 01:44:03AM +0800, kbuild test robot wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-4.10/bus
>> head:   4f95e6a5c9e433197244c91dd25102a85dbb7877
>> commit: 4f95e6a5c9e433197244c91dd25102a85dbb7877 [4/4] bus: Add support for Tegra Generic Memory Interface
>> config: arm-allmodconfig (attached as .config)
>> compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
>> 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 4f95e6a5c9e433197244c91dd25102a85dbb7877
>>         # save the attached .config to linux build tree
>>         make.cross ARCH=arm
>>
>> All errors (new ones prefixed by >>):
>>
>>    drivers/bus/tegra-gmi.c: In function 'tegra_gmi_parse_dt':
>> >> drivers/bus/tegra-gmi.c:97:11: error: 'dev' undeclared (first use in this function)
>>       dev_err(dev, "no child nodes found\n");
>>               ^~~
>>    drivers/bus/tegra-gmi.c:97:11: note: each undeclared identifier is reported only once for each function it appears in
>>
>> vim +/dev +97 drivers/bus/tegra-gmi.c
>>
>>     91                struct device_node *child;
>>     92                u32 property, ranges[4];
>>     93                int err;
>>     94
>>     95                child = of_get_next_available_child(gmi->dev->of_node, NULL);
>>     96                if (!child) {
>>   > 97                        dev_err(dev, "no child nodes found\n");
>>     98                        return -ENODEV;
>>     99                }
>>    100
>
> Sorry, this is my bad. I forgot to enable TEGRA_GMI in the default
> configuration and that caused my build tests not to pick up the new
> driver. Fixing it now.

Yeah about that. It occurred to me that my patch series did include a
patch that enables TEGRA_GMI in tegra_defconfig. Do not really know
the policy on this, should there been a patch that enables it in
tegra_defconfig? Or is usually managed later on?

Best Regards
Mirza

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [tegra:for-4.10/bus 4/4] drivers/bus/tegra-gmi.c:97:11: error: 'dev' undeclared
       [not found]         ` <CALw8SCVXOqd=3B6tzE90TQa6S4BJSKmjV_Y3SrB6_Nc1_hsn+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-11-08 18:02           ` Thierry Reding
  0 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2016-11-08 18:02 UTC (permalink / raw)
  To: Mirza Krak
  Cc: kbuild test robot, kbuild-all-JC7UmRfGjtg,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

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

On Tue, Nov 08, 2016 at 01:13:02PM +0100, Mirza Krak wrote:
> 2016-11-08 11:47 GMT+01:00 Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>:
> > On Tue, Nov 08, 2016 at 01:44:03AM +0800, kbuild test robot wrote:
> >> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-4.10/bus
> >> head:   4f95e6a5c9e433197244c91dd25102a85dbb7877
> >> commit: 4f95e6a5c9e433197244c91dd25102a85dbb7877 [4/4] bus: Add support for Tegra Generic Memory Interface
> >> config: arm-allmodconfig (attached as .config)
> >> compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
> >> 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 4f95e6a5c9e433197244c91dd25102a85dbb7877
> >>         # save the attached .config to linux build tree
> >>         make.cross ARCH=arm
> >>
> >> All errors (new ones prefixed by >>):
> >>
> >>    drivers/bus/tegra-gmi.c: In function 'tegra_gmi_parse_dt':
> >> >> drivers/bus/tegra-gmi.c:97:11: error: 'dev' undeclared (first use in this function)
> >>       dev_err(dev, "no child nodes found\n");
> >>               ^~~
> >>    drivers/bus/tegra-gmi.c:97:11: note: each undeclared identifier is reported only once for each function it appears in
> >>
> >> vim +/dev +97 drivers/bus/tegra-gmi.c
> >>
> >>     91                struct device_node *child;
> >>     92                u32 property, ranges[4];
> >>     93                int err;
> >>     94
> >>     95                child = of_get_next_available_child(gmi->dev->of_node, NULL);
> >>     96                if (!child) {
> >>   > 97                        dev_err(dev, "no child nodes found\n");
> >>     98                        return -ENODEV;
> >>     99                }
> >>    100
> >
> > Sorry, this is my bad. I forgot to enable TEGRA_GMI in the default
> > configuration and that caused my build tests not to pick up the new
> > driver. Fixing it now.
> 
> Yeah about that. It occurred to me that my patch series did include a
> patch that enables TEGRA_GMI in tegra_defconfig. Do not really know
> the policy on this, should there been a patch that enables it in
> tegra_defconfig? Or is usually managed later on?

It's usually a good idea to include such a patch in the series that adds
the driver, just so that it is more difficult to miss.

But no worries, it's all taken care of now.

Thanks,
Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-08 18:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-07 17:44 [tegra:for-4.10/bus 4/4] drivers/bus/tegra-gmi.c:97:11: error: 'dev' undeclared kbuild test robot
     [not found] ` <201611080158.Q53HGK2q%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-11-08 10:47   ` Thierry Reding
     [not found]     ` <20161108104745.GA3154-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2016-11-08 12:13       ` Mirza Krak
     [not found]         ` <CALw8SCVXOqd=3B6tzE90TQa6S4BJSKmjV_Y3SrB6_Nc1_hsn+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-11-08 18:02           ` Thierry Reding

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).