2020-06-12 06:05:33

by kernel test robot

[permalink] [raw]
Subject: drivers/media/platform/atmel/atmel-sama5d2-isc.c:323:34: warning: unused variable 'atmel_isc_of_match'

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b791d1bdf9212d944d749a5c7ff6febdba241771
commit: 0a0e265515db7619d0da9331d74245d02c741f07 media: atmel: atmel-isc: split driver into driver base and isc
date: 12 months ago
config: x86_64-randconfig-a012-20200612 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3b43f006294971b8049d4807110032169780e5b8)
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
git checkout 0a0e265515db7619d0da9331d74245d02c741f07
# 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 <[email protected]>

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

>> drivers/media/platform/atmel/atmel-sama5d2-isc.c:323:34: warning: unused variable 'atmel_isc_of_match' [-Wunused-const-variable]
static const struct of_device_id atmel_isc_of_match[] = {
^
1 warning generated.

vim +/atmel_isc_of_match +323 drivers/media/platform/atmel/atmel-sama5d2-isc.c

322
> 323 static const struct of_device_id atmel_isc_of_match[] = {
324 { .compatible = "atmel,sama5d2-isc" },
325 { }
326 };
327 MODULE_DEVICE_TABLE(of, atmel_isc_of_match);
328

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]


Attachments:
(No filename) (1.71 kB)
.config.gz (34.90 kB)
Download all attachments

2020-06-12 11:24:27

by Eugen Hristev

[permalink] [raw]
Subject: Re: drivers/media/platform/atmel/atmel-sama5d2-isc.c:323:34: warning: unused variable 'atmel_isc_of_match'

On 12.06.2020 09:02, kernel test robot wrote:

> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: b791d1bdf9212d944d749a5c7ff6febdba241771
> commit: 0a0e265515db7619d0da9331d74245d02c741f07 media: atmel: atmel-isc: split driver into driver base and isc
> date: 12 months ago
> config: x86_64-randconfig-a012-20200612 (attached as .config)
> compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3b43f006294971b8049d4807110032169780e5b8)
> 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
> git checkout 0a0e265515db7619d0da9331d74245d02c741f07
> # 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 <[email protected]>

Sent a patch to address this warning

Thanks

>
> All warnings (new ones prefixed by >>, old ones prefixed by <<):
>
>>> drivers/media/platform/atmel/atmel-sama5d2-isc.c:323:34: warning: unused variable 'atmel_isc_of_match' [-Wunused-const-variable]
> static const struct of_device_id atmel_isc_of_match[] = {
> ^
> 1 warning generated.
>
> vim +/atmel_isc_of_match +323 drivers/media/platform/atmel/atmel-sama5d2-isc.c
>
> 322
> > 323 static const struct of_device_id atmel_isc_of_match[] = {
> 324 { .compatible = "atmel,sama5d2-isc" },
> 325 { }
> 326 };
> 327 MODULE_DEVICE_TABLE(of, atmel_isc_of_match);
> 328
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/[email protected]
>