linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [kbuild:kbuild 28/31] include/linux/dynamic_debug.h:76:14: error: 'KBUILD_MODNAME' undeclared
       [not found] <201711161323.scU2nJRf%fengguang.wu@intel.com>
@ 2017-11-16  7:59 ` yamada.masahiro
  2017-11-16  9:46   ` Cao jin
  2017-11-17  6:42   ` Cao jin
  0 siblings, 2 replies; 3+ messages in thread
From: yamada.masahiro @ 2017-11-16  7:59 UTC (permalink / raw)
  To: fengguang.wu, caoj.fnst; +Cc: kbuild-all, linux-kbuild



> -----Original Message-----
> From: kbuild test robot [mailto:fengguang.wu@intel.com]
> Sent: Thursday, November 16, 2017 2:29 PM
> To: Cao jin <caoj.fnst@cn.fujitsu.com>
> Cc: kbuild-all@01.org; linux-kbuild@vger.kernel.org; Yamada, Masahiro/
> 山田 真弘 <yamada.masahiro@socionext.com>
> Subject: [kbuild:kbuild 28/31] include/linux/dynamic_debug.h:76:14:
> error: 'KBUILD_MODNAME' undeclared
> 
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
> .git kbuild
> head:   ea15c8cd3601640e202828e3b563653a8b3c76cd
> commit: 1ac0408bbb3f47ef2411976fbd2bf758d747bbee [28/31] kbuild: fix
> modname for composite modules
> config: x86_64-allmodconfig (attached as .config)
> compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
> reproduce:
>         git checkout 1ac0408bbb3f47ef2411976fbd2bf758d747bbee
>         # save the attached .config to linux build tree
>         make ARCH=x86_64
> 
> All error/warnings (new ones prefixed by >>):
> 
>    In file included from include/linux/printk.h:329:0,
>                     from include/linux/kernel.h:13,
>                     from include/linux/list.h:8,
>                     from include/linux/timer.h:4,
>                     from include/linux/netdevice.h:28,
>                     from
> drivers/net/ethernet/cavium/liquidio/lio_ethtool.c:18:
>    drivers/net/ethernet/cavium/liquidio/octeon_main.h: In function
> 'octeon_unmap_pci_barx':
> >> include/linux/dynamic_debug.h:76:14: error: 'KBUILD_MODNAME'
> undeclared (first use in this function)
>       .modname = KBUILD_MODNAME,   \
>                  ^
>    include/linux/dynamic_debug.h:98:2: note: in expansion of macro
> 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
>      DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, .key.dd_key_false, \
>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/dynamic_debug.h:132:2: note: in expansion of macro

[snip lots of errors]
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology
> Center
> https://lists.01.org/pipermail/kbuild-all                   Intel
> Corporation


OK.
Looks like this potential issue has been hidden.

I plan to insert the following patch before Cao's one:
https://patchwork.kernel.org/patch/10060825/

We should better to take time for testing by 0day bot, though.


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

* Re: [kbuild:kbuild 28/31] include/linux/dynamic_debug.h:76:14: error: 'KBUILD_MODNAME' undeclared
  2017-11-16  7:59 ` [kbuild:kbuild 28/31] include/linux/dynamic_debug.h:76:14: error: 'KBUILD_MODNAME' undeclared yamada.masahiro
@ 2017-11-16  9:46   ` Cao jin
  2017-11-17  6:42   ` Cao jin
  1 sibling, 0 replies; 3+ messages in thread
From: Cao jin @ 2017-11-16  9:46 UTC (permalink / raw)
  To: yamada.masahiro; +Cc: fengguang.wu, kbuild-all, linux-kbuild



On 11/16/2017 03:59 PM, yamada.masahiro@socionext.com wrote:
> 
> 
>> -----Original Message-----
>> From: kbuild test robot [mailto:fengguang.wu@intel.com]
>> Sent: Thursday, November 16, 2017 2:29 PM
>> To: Cao jin <caoj.fnst@cn.fujitsu.com>
>> Cc: kbuild-all@01.org; linux-kbuild@vger.kernel.org; Yamada, Masahiro/
>> 山田 真弘 <yamada.masahiro@socionext.com>
>> Subject: [kbuild:kbuild 28/31] include/linux/dynamic_debug.h:76:14:
>> error: 'KBUILD_MODNAME' undeclared
>>
>> tree:
>> https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
>> .git kbuild
>> head:   ea15c8cd3601640e202828e3b563653a8b3c76cd
>> commit: 1ac0408bbb3f47ef2411976fbd2bf758d747bbee [28/31] kbuild: fix
>> modname for composite modules
>> config: x86_64-allmodconfig (attached as .config)
>> compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
>> reproduce:
>>         git checkout 1ac0408bbb3f47ef2411976fbd2bf758d747bbee
>>         # save the attached .config to linux build tree
>>         make ARCH=x86_64
>>
>> All error/warnings (new ones prefixed by >>):
>>
>>    In file included from include/linux/printk.h:329:0,
>>                     from include/linux/kernel.h:13,
>>                     from include/linux/list.h:8,
>>                     from include/linux/timer.h:4,
>>                     from include/linux/netdevice.h:28,
>>                     from
>> drivers/net/ethernet/cavium/liquidio/lio_ethtool.c:18:
>>    drivers/net/ethernet/cavium/liquidio/octeon_main.h: In function
>> 'octeon_unmap_pci_barx':
>>>> include/linux/dynamic_debug.h:76:14: error: 'KBUILD_MODNAME'
>> undeclared (first use in this function)
>>       .modname = KBUILD_MODNAME,   \
>>                  ^
>>    include/linux/dynamic_debug.h:98:2: note: in expansion of macro
>> 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
>>      DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, .key.dd_key_false, \
>>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>    include/linux/dynamic_debug.h:132:2: note: in expansion of macro
> 
> [snip lots of errors]
>>
>> ---
>> 0-DAY kernel test infrastructure                Open Source Technology
>> Center
>> https://lists.01.org/pipermail/kbuild-all                   Intel
>> Corporation
> 
> 
> OK.
> Looks like this potential issue has been hidden.
> 
> I plan to insert the following patch before Cao's one:
> https://patchwork.kernel.org/patch/10060825/
> 
> We should better to take time for testing by 0day bot, though.
> 
> 

It is weird that I didn't receive the Original Message From: kbuild test
robot.

Thanks for fixing it, Masahiro-san, I will take a look.

-- 
Sincerely,
Cao jin



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

* Re: [kbuild:kbuild 28/31] include/linux/dynamic_debug.h:76:14: error: 'KBUILD_MODNAME' undeclared
  2017-11-16  7:59 ` [kbuild:kbuild 28/31] include/linux/dynamic_debug.h:76:14: error: 'KBUILD_MODNAME' undeclared yamada.masahiro
  2017-11-16  9:46   ` Cao jin
@ 2017-11-17  6:42   ` Cao jin
  1 sibling, 0 replies; 3+ messages in thread
From: Cao jin @ 2017-11-17  6:42 UTC (permalink / raw)
  To: yamada.masahiro, fengguang.wu; +Cc: kbuild-all, linux-kbuild



On 11/16/2017 03:59 PM, yamada.masahiro@socionext.com wrote:
> 
> 
>> -----Original Message-----
>> From: kbuild test robot [mailto:fengguang.wu@intel.com]
>> Sent: Thursday, November 16, 2017 2:29 PM
>> To: Cao jin <caoj.fnst@cn.fujitsu.com>
>> Cc: kbuild-all@01.org; linux-kbuild@vger.kernel.org; Yamada, Masahiro/
>> 山田 真弘 <yamada.masahiro@socionext.com>
>> Subject: [kbuild:kbuild 28/31] include/linux/dynamic_debug.h:76:14:
>> error: 'KBUILD_MODNAME' undeclared
>>
>> tree:
>> https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
>> .git kbuild
>> head:   ea15c8cd3601640e202828e3b563653a8b3c76cd
>> commit: 1ac0408bbb3f47ef2411976fbd2bf758d747bbee [28/31] kbuild: fix
>> modname for composite modules
>> config: x86_64-allmodconfig (attached as .config)
>> compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
>> reproduce:
>>         git checkout 1ac0408bbb3f47ef2411976fbd2bf758d747bbee
>>         # save the attached .config to linux build tree
>>         make ARCH=x86_64
>>
>> All error/warnings (new ones prefixed by >>):
>>
>>    In file included from include/linux/printk.h:329:0,
>>                     from include/linux/kernel.h:13,
>>                     from include/linux/list.h:8,
>>                     from include/linux/timer.h:4,
>>                     from include/linux/netdevice.h:28,
>>                     from
>> drivers/net/ethernet/cavium/liquidio/lio_ethtool.c:18:
>>    drivers/net/ethernet/cavium/liquidio/octeon_main.h: In function
>> 'octeon_unmap_pci_barx':
>>>> include/linux/dynamic_debug.h:76:14: error: 'KBUILD_MODNAME'
>> undeclared (first use in this function)
>>       .modname = KBUILD_MODNAME,   \
>>                  ^
>>    include/linux/dynamic_debug.h:98:2: note: in expansion of macro
>> 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
>>      DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, .key.dd_key_false, \
>>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>    include/linux/dynamic_debug.h:132:2: note: in expansion of macro
> 
> [snip lots of errors]
>>
>> ---
>> 0-DAY kernel test infrastructure                Open Source Technology
>> Center
>> https://lists.01.org/pipermail/kbuild-all                   Intel
>> Corporation
> 
> 
> OK.
> Looks like this potential issue has been hidden.
> 
> I plan to insert the following patch before Cao's one:
> https://patchwork.kernel.org/patch/10060825/
> 
> We should better to take time for testing by 0day bot, though.
> 

It took me a while to figure out why the build is ok before my patch.

before my patch, the liquidio-m belongs to $(real-objs-m), so there is:

    modname = $(basetarget)

after my patch, liquidio-m belongs to $(multi-objs-m), so there is:

    modname = $(modname-multi)

And, these files both belong to liquidio-m & liquidio_vf-m, so
modname-multi has 2 words, and so modname is null, and build fail.

-- 
Sincerely,
Cao jin



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

end of thread, other threads:[~2017-11-17  6:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <201711161323.scU2nJRf%fengguang.wu@intel.com>
2017-11-16  7:59 ` [kbuild:kbuild 28/31] include/linux/dynamic_debug.h:76:14: error: 'KBUILD_MODNAME' undeclared yamada.masahiro
2017-11-16  9:46   ` Cao jin
2017-11-17  6:42   ` Cao jin

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