[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <76cae106-b643-57a9-e82e-48e46ebf1b70@ti.com>
Date: Mon, 28 Sep 2020 10:27:57 +0300
From: Peter Ujfalusi <peter.ujfalusi@...com>
To: kernel test robot <lkp@...el.com>
CC: <kbuild-all@...ts.01.org>, <clang-built-linux@...glegroups.com>,
<linux-kernel@...r.kernel.org>, Mark Brown <broonie@...nel.org>
Subject: Re: sound/soc/ti/j721e-evm.c:528:34: warning: unused variable
'j721e_audio_of_match'
On 27/09/2020 10.27, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: a1bffa48745afbb54cb4f873bba783b2ae8be042
> commit: 6748d05590594837e42dfa975879fb275099f0b2 ASoC: ti: Add custom machine driver for j721e EVM (CPB and IVI)
> date: 3 months ago
> config: x86_64-randconfig-r033-20200927 (attached as .config)
> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a83eb048cb9a75da7a07a9d5318bbdbf54885c87)
> 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 x86_64 cross compiling tool for clang build
> # apt-get install binutils-x86-64-linux-gnu
> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6748d05590594837e42dfa975879fb275099f0b2
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 6748d05590594837e42dfa975879fb275099f0b2
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@...el.com>
>
> All warnings (new ones prefixed by >>):
>
>>> sound/soc/ti/j721e-evm.c:528:34: warning: unused variable 'j721e_audio_of_match' [-Wunused-const-variable]
> static const struct of_device_id j721e_audio_of_match[] = {
> ^
> 1 warning generated.
Right, in the attached .config:
# CONFIG_OF is not set
There must be a clean way to handle this without extensive ifedfery...
> vim +/j721e_audio_of_match +528 sound/soc/ti/j721e-evm.c
>
> 527
> > 528 static const struct of_device_id j721e_audio_of_match[] = {
> 529 {
> 530 .compatible = "ti,j721e-cpb-audio",
> 531 .data = &j721e_cpb_data,
> 532 }, {
> 533 .compatible = "ti,j721e-cpb-ivi-audio",
> 534 .data = &j721e_cpb_ivi_data,
> 535 },
> 536 { },
> 537 };
> 538 MODULE_DEVICE_TABLE(of, j721e_audio_of_match);
> 539
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
>
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Powered by blists - more mailing lists