[PATCH v3 2/2] ASoC: codec: tlv320adc3xxx: New codec driver

kernel test robot lkp at intel.com
Thu Nov 4 22:44:14 CET 2021


Hi Ricard,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on broonie-sound/for-next]
[also build test WARNING on robh/for-next v5.15 next-20211104]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Ricard-Wanderlof/dt-bindings-sound-tlv320adc3xxx-New-codec-driver/20211104-212856
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: i386-buildonly-randconfig-r004-20211105 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 847a6807332b13f43704327c2d30103ec0347c77)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/f5e71b8704e86350b3eec3bb6540cf823241e6e0
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Ricard-Wanderlof/dt-bindings-sound-tlv320adc3xxx-New-codec-driver/20211104-212856
        git checkout f5e71b8704e86350b3eec3bb6540cf823241e6e0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

>> sound/soc/codecs/tlv320adc3xxx.c:256:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
   static const SOC_ENUM_SINGLE_DECL(adc_softstepping_enum, ADC3XXX_ADC_DIGITAL, 0,
                ^
   include/sound/soc.h:355:2: note: expanded from macro 'SOC_ENUM_SINGLE_DECL'
           SOC_ENUM_DOUBLE_DECL(name, xreg, xshift, xshift, xtexts)
           ^
   include/sound/soc.h:352:2: note: expanded from macro 'SOC_ENUM_DOUBLE_DECL'
           const struct soc_enum name = SOC_ENUM_DOUBLE(xreg, xshift_l, xshift_r, \
           ^
   sound/soc/codecs/tlv320adc3xxx.c:260:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
   static const SOC_ENUM_SINGLE_DECL(left_agc_attack_mult_enum,
                ^
   include/sound/soc.h:355:2: note: expanded from macro 'SOC_ENUM_SINGLE_DECL'
           SOC_ENUM_DOUBLE_DECL(name, xreg, xshift, xshift, xtexts)
           ^
   include/sound/soc.h:352:2: note: expanded from macro 'SOC_ENUM_DOUBLE_DECL'
           const struct soc_enum name = SOC_ENUM_DOUBLE(xreg, xshift_l, xshift_r, \
           ^
   sound/soc/codecs/tlv320adc3xxx.c:262:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
   static const SOC_ENUM_SINGLE_DECL(right_agc_attack_mult_enum,
                ^
   include/sound/soc.h:355:2: note: expanded from macro 'SOC_ENUM_SINGLE_DECL'
           SOC_ENUM_DOUBLE_DECL(name, xreg, xshift, xshift, xtexts)
           ^
   include/sound/soc.h:352:2: note: expanded from macro 'SOC_ENUM_DOUBLE_DECL'
           const struct soc_enum name = SOC_ENUM_DOUBLE(xreg, xshift_l, xshift_r, \
           ^
   sound/soc/codecs/tlv320adc3xxx.c:264:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
   static const SOC_ENUM_SINGLE_DECL(left_agc_decay_mult_enum,
                ^
   include/sound/soc.h:355:2: note: expanded from macro 'SOC_ENUM_SINGLE_DECL'
           SOC_ENUM_DOUBLE_DECL(name, xreg, xshift, xshift, xtexts)
           ^
   include/sound/soc.h:352:2: note: expanded from macro 'SOC_ENUM_DOUBLE_DECL'
           const struct soc_enum name = SOC_ENUM_DOUBLE(xreg, xshift_l, xshift_r, \
           ^
   sound/soc/codecs/tlv320adc3xxx.c:266:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
   static const SOC_ENUM_SINGLE_DECL(right_agc_decay_mult_enum,
                ^
   include/sound/soc.h:355:2: note: expanded from macro 'SOC_ENUM_SINGLE_DECL'
           SOC_ENUM_DOUBLE_DECL(name, xreg, xshift, xshift, xtexts)
           ^
   include/sound/soc.h:352:2: note: expanded from macro 'SOC_ENUM_DOUBLE_DECL'
           const struct soc_enum name = SOC_ENUM_DOUBLE(xreg, xshift_l, xshift_r, \
           ^
   sound/soc/codecs/tlv320adc3xxx.c:276:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
   static const SOC_VALUE_ENUM_DOUBLE_DECL(dither_dc_offset_enum,
                ^
   include/sound/soc.h:359:2: note: expanded from macro 'SOC_VALUE_ENUM_DOUBLE_DECL'
           const struct soc_enum name = SOC_VALUE_ENUM_DOUBLE(xreg, xshift_l, xshift_r, xmask, \
           ^
   6 warnings generated.


vim +/const +256 sound/soc/codecs/tlv320adc3xxx.c

   254	
   255	static const char * const adc_softstepping_text[] = { "1 step", "2 step", "off" };
 > 256	static const SOC_ENUM_SINGLE_DECL(adc_softstepping_enum, ADC3XXX_ADC_DIGITAL, 0,
   257					  adc_softstepping_text);
   258	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 44371 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20211105/59a15491/attachment-0001.gz>


More information about the Alsa-devel mailing list