drivers/usb/gadget/udc/max3420_udc.c:1311:34: warning: unused variable 'max3420_udc_of_match'

From: kernel test robot
Date: Sun Apr 25 2021 - 19:50:08 EST

Hi Jassi,

FYI, the error/warning still remains.

tree: master
head: 9f4ad9e425a1d3b6a34617b8ea226d56a119a717
commit: 48ba02b2e2b1a1c80718e93fefe99c8319597c4a usb: gadget: add udc driver for max3420
date: 1 year, 1 month ago
config: x86_64-randconfig-r001-20210426 (attached as .config)
compiler: clang version 13.0.0 ( 6fca189532511da1b48e8c0d9aad8ff2edca382d)
reproduce (this is a W=1 build):
wget -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 remote add linus
git fetch --no-tags linus master
git checkout 48ba02b2e2b1a1c80718e93fefe99c8319597c4a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/usb/gadget/udc/max3420_udc.c:1311:34: warning: unused variable 'max3420_udc_of_match' [-Wunused-const-variable]
static const struct of_device_id max3420_udc_of_match[] = {
1 warning generated.

vim +/max3420_udc_of_match +1311 drivers/usb/gadget/udc/max3420_udc.c

> 1311 static const struct of_device_id max3420_udc_of_match[] = {
1312 { .compatible = "maxim,max3420-udc"},
1313 { .compatible = "maxim,max3421-udc"},
1314 {},
1315 };
1316 MODULE_DEVICE_TABLE(of, max3420_udc_of_match);

0-DAY CI Kernel Test Service, Intel Corporation

Attachment: .config.gz
Description: application/gzip