Hi Viresh,
I love your patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on wsa/i2c/for-next linus/master v5.14-rc2 next-20210722]
[cannot apply to vhost/linux-next gpio/for-next]
[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/Viresh-Kumar/virtio-Add-virtio-d...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: x86_64-randconfig-a011-20210722 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
9625ca5b602616b2f5584e8a49ba93c52c141e40)
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://github.com/0day-ci/linux/commit/9fb9d8588a85661842129507462ae210c...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Viresh-Kumar/virtio-Add-virtio-device-bindings/20210722-175938
git checkout 9fb9d8588a85661842129507462ae210c16f7675
# 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(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/virtio/virtio.c:327:34: warning: unused variable
'of_virtio_devices' [-Wunused-const-variable]
static const struct
of_device_id of_virtio_devices[] = {
^
1 warning generated.
vim +/of_virtio_devices +327 drivers/virtio/virtio.c
325
326 /* Virtio device compatibles and IDs */
327 static const struct of_device_id of_virtio_devices[] = {
328 { .compatible = "virtio,22", .data = (void *)VIRTIO_ID_I2C_ADAPTER },
329 { .compatible = "virtio,29", .data = (void *)VIRTIO_ID_GPIO },
330 { }
331 };
332
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org