linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sound/soc/jz4740/jz4740-i2s.c:465:34: warning: unused variable 'jz4740_i2s_soc_info'
@ 2020-05-22 20:36 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-22 20:36 UTC (permalink / raw)
  To: Paul Cercueil; +Cc: kbuild-all, clang-built-linux, linux-kernel, Mark Brown

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   444565650a5fe9c63ddf153e6198e31705dedeb2
commit: 62f9ed5f8768d2425461737d77b83f888b525c06 ASoC: jz4740-i2s: Avoid passing enum as match data
date:   2 months ago
config: mips-randconfig-r014-20200522 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        git checkout 62f9ed5f8768d2425461737d77b83f888b525c06
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> sound/soc/jz4740/jz4740-i2s.c:465:34: warning: unused variable 'jz4740_i2s_soc_info' [-Wunused-const-variable]
static const struct i2s_soc_info jz4740_i2s_soc_info = {
^
>> sound/soc/jz4740/jz4740-i2s.c:488:34: warning: unused variable 'jz4780_i2s_soc_info' [-Wunused-const-variable]
static const struct i2s_soc_info jz4780_i2s_soc_info = {
^
2 warnings generated.

vim +/jz4740_i2s_soc_info +465 sound/soc/jz4740/jz4740-i2s.c

   464	
 > 465	static const struct i2s_soc_info jz4740_i2s_soc_info = {
   466		.version = JZ_I2S_JZ4740,
   467		.dai = &jz4740_i2s_dai,
   468	};
   469	
   470	static struct snd_soc_dai_driver jz4780_i2s_dai = {
   471		.probe = jz4740_i2s_dai_probe,
   472		.remove = jz4740_i2s_dai_remove,
   473		.playback = {
   474			.channels_min = 1,
   475			.channels_max = 2,
   476			.rates = SNDRV_PCM_RATE_8000_48000,
   477			.formats = JZ4740_I2S_FMTS,
   478		},
   479		.capture = {
   480			.channels_min = 2,
   481			.channels_max = 2,
   482			.rates = SNDRV_PCM_RATE_8000_48000,
   483			.formats = JZ4740_I2S_FMTS,
   484		},
   485		.ops = &jz4740_i2s_dai_ops,
   486	};
   487	
 > 488	static const struct i2s_soc_info jz4780_i2s_soc_info = {
   489		.version = JZ_I2S_JZ4780,
   490		.dai = &jz4780_i2s_dai,
   491	};
   492	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32671 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-22 21:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-22 20:36 sound/soc/jz4740/jz4740-i2s.c:465:34: warning: unused variable 'jz4740_i2s_soc_info' kbuild test robot

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