[alsa-devel] [asoc:for-5.2 84/86] include/linux/dynamic_debug.h:80:13: error: initializer element is not constant

kbuild test robot lkp at intel.com
Tue Mar 26 17:57:22 CET 2019


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2
head:   b86ef5367761603df5f66ce08fb014b991f6b51d
commit: be1df61cf06efb355c90702e46b8d46f055acb4e [84/86] ASoC: fsl: Add Audio Mixer CPU DAI driver
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-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 be1df61cf06efb355c90702e46b8d46f055acb4e
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   In file included from include/linux/printk.h:330:0,
                    from include/linux/kernel.h:15,
                    from include/linux/clk.h:16,
                    from sound/soc//fsl/fsl_audmix.c:8:
   sound/soc//fsl/fsl_audmix.c: In function 'fsl_audmix_state_trans':
>> include/linux/dynamic_debug.h:80:13: error: initializer element is not constant
      .format = (fmt),    \
                ^
   include/linux/dynamic_debug.h:116:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
     DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt);  \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:136:2: note: in expansion of macro '__dynamic_func_call'
     __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:150:2: note: in expansion of macro '_dynamic_func_call'
     _dynamic_func_call(fmt,__dynamic_dev_dbg,   \
     ^~~~~~~~~~~~~~~~~~
   include/linux/device.h:1495:2: note: in expansion of macro 'dynamic_dev_dbg'
     dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~
   sound/soc//fsl/fsl_audmix.c:93:3: note: in expansion of macro 'dev_dbg'
      dev_dbg(comp->dev, prm.msg);
      ^~~~~~~
   include/linux/dynamic_debug.h:80:13: note: (near initialization for '__UNIQUE_ID_ddebug14.format')
      .format = (fmt),    \
                ^
   include/linux/dynamic_debug.h:116:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
     DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt);  \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:136:2: note: in expansion of macro '__dynamic_func_call'
     __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:150:2: note: in expansion of macro '_dynamic_func_call'
     _dynamic_func_call(fmt,__dynamic_dev_dbg,   \
     ^~~~~~~~~~~~~~~~~~
   include/linux/device.h:1495:2: note: in expansion of macro 'dynamic_dev_dbg'
     dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~
   sound/soc//fsl/fsl_audmix.c:93:3: note: in expansion of macro 'dev_dbg'
      dev_dbg(comp->dev, prm.msg);
      ^~~~~~~
--
   In file included from include/linux/printk.h:330:0,
                    from include/linux/kernel.h:15,
                    from include/linux/clk.h:16,
                    from sound/soc/fsl/fsl_audmix.c:8:
   sound/soc/fsl/fsl_audmix.c: In function 'fsl_audmix_state_trans':
>> include/linux/dynamic_debug.h:80:13: error: initializer element is not constant
      .format = (fmt),    \
                ^
   include/linux/dynamic_debug.h:116:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
     DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt);  \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:136:2: note: in expansion of macro '__dynamic_func_call'
     __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:150:2: note: in expansion of macro '_dynamic_func_call'
     _dynamic_func_call(fmt,__dynamic_dev_dbg,   \
     ^~~~~~~~~~~~~~~~~~
   include/linux/device.h:1495:2: note: in expansion of macro 'dynamic_dev_dbg'
     dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~
   sound/soc/fsl/fsl_audmix.c:93:3: note: in expansion of macro 'dev_dbg'
      dev_dbg(comp->dev, prm.msg);
      ^~~~~~~
   include/linux/dynamic_debug.h:80:13: note: (near initialization for '__UNIQUE_ID_ddebug14.format')
      .format = (fmt),    \
                ^
   include/linux/dynamic_debug.h:116:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
     DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt);  \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:136:2: note: in expansion of macro '__dynamic_func_call'
     __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:150:2: note: in expansion of macro '_dynamic_func_call'
     _dynamic_func_call(fmt,__dynamic_dev_dbg,   \
     ^~~~~~~~~~~~~~~~~~
   include/linux/device.h:1495:2: note: in expansion of macro 'dynamic_dev_dbg'
     dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~
   sound/soc/fsl/fsl_audmix.c:93:3: note: in expansion of macro 'dev_dbg'
      dev_dbg(comp->dev, prm.msg);
      ^~~~~~~

vim +80 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  
2bdde670 Rasmus Villemoes 2019-03-07  74  #define DEFINE_DYNAMIC_DEBUG_METADATA(name, fmt)		\
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,		\
2bdde670 Rasmus Villemoes 2019-03-07  83  		_DPRINTK_KEY_INIT				\
07613b0b Jason Baron      2011-10-04  84  	}
07613b0b Jason Baron      2011-10-04  85  

:::::: The code at line 80 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: 56729 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190327/d9ef35bd/attachment-0001.gz>


More information about the Alsa-devel mailing list