[ath6kl:pending 18/39] include/linux/dynamic_debug.h:77:14: error: 'KBUILD_MODNAME' undeclared; did you mean 'KBUILD_BASENAME'?

kbuild test robot fengguang.wu at intel.com
Wed Feb 28 18:06:01 PST 2018


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending
head:   54520396c47a365ad60d539fab64fde5abccedad
commit: fb31369715dd6ca1c97799e82359e5130960639f [18/39] ath10k: platform driver for WCN3990 SNOC WLAN module
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout fb31369715dd6ca1c97799e82359e5130960639f
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   In file included from include/linux/printk.h:329:0,
                    from include/linux/kernel.h:14,
                    from drivers/net//wireless/ath/ath10k/hif.h:21,
                    from drivers/net//wireless/ath/ath10k/ce.c:18:
   include/net/inet_connection_sock.h: In function 'inet_csk_clear_xmit_timer':
>> include/linux/dynamic_debug.h:77:14: error: 'KBUILD_MODNAME' undeclared (first use in this function); did you mean 'KBUILD_BASENAME'?
      .modname = KBUILD_MODNAME,   \
                 ^
   include/linux/dynamic_debug.h:99: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:125:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
     DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~
   include/net/inet_connection_sock.h:218:3: note: in expansion of macro 'pr_debug'
      pr_debug("%s", inet_csk_timer_bug_msg);
      ^~~~~~~~
   include/linux/dynamic_debug.h:77:14: note: each undeclared identifier is reported only once for each function it appears in
      .modname = KBUILD_MODNAME,   \
                 ^
   include/linux/dynamic_debug.h:99: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:125:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
     DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~
   include/net/inet_connection_sock.h:218:3: note: in expansion of macro 'pr_debug'
      pr_debug("%s", inet_csk_timer_bug_msg);
      ^~~~~~~~
   include/net/inet_connection_sock.h: In function 'inet_csk_reset_xmit_timer':
>> include/linux/dynamic_debug.h:77:14: error: 'KBUILD_MODNAME' undeclared (first use in this function); did you mean 'KBUILD_BASENAME'?
      .modname = KBUILD_MODNAME,   \
                 ^
   include/linux/dynamic_debug.h:99: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:125:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
     DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~
   include/net/inet_connection_sock.h:234:3: note: in expansion of macro 'pr_debug'
      pr_debug("reset_xmit_timer: sk=%p %d when=0x%lx, caller=%p\n",
      ^~~~~~~~

vim +77 include/linux/dynamic_debug.h

ffa10cb4 Jason Baron 2011-08-11  68  
b9075fa9 Joe Perches 2011-10-31  69  extern __printf(3, 4)
906d2015 Joe Perches 2014-09-24  70  void __dynamic_netdev_dbg(struct _ddebug *descriptor,
ffa10cb4 Jason Baron 2011-08-11  71  			  const struct net_device *dev,
b9075fa9 Joe Perches 2011-10-31  72  			  const char *fmt, ...);
ffa10cb4 Jason Baron 2011-08-11  73  
9049fc74 Jason Baron 2016-08-03  74  #define DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, key, init)	\
c0d2af63 Joe Perches 2012-10-18  75  	static struct _ddebug  __aligned(8)			\
07613b0b Jason Baron 2011-10-04  76  	__attribute__((section("__verbose"))) name = {		\
07613b0b Jason Baron 2011-10-04 @77  		.modname = KBUILD_MODNAME,			\
07613b0b Jason Baron 2011-10-04  78  		.function = __func__,				\
07613b0b Jason Baron 2011-10-04  79  		.filename = __FILE__,				\
07613b0b Jason Baron 2011-10-04  80  		.format = (fmt),				\
07613b0b Jason Baron 2011-10-04  81  		.lineno = __LINE__,				\
07613b0b Jason Baron 2011-10-04  82  		.flags = _DPRINTK_FLAGS_DEFAULT,		\
9049fc74 Jason Baron 2016-08-03  83  		dd_key_init(key, init)				\
07613b0b Jason Baron 2011-10-04  84  	}
07613b0b Jason Baron 2011-10-04  85  

:::::: The code at line 77 was first introduced by commit
:::::: 07613b0b5ef8570033aa806d1731dce599862223 dynamic_debug: consolidate repetitive struct _ddebug descriptor definitions

:::::: TO: Jason Baron <jbaron at redhat.com>
:::::: CC: Greg Kroah-Hartman <gregkh at suse.de>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 65178 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/ath10k/attachments/20180301/00211b8e/attachment-0001.gz>


More information about the ath10k mailing list