[stable:linux-5.10.y 556/1056] drivers/tty/serial/8250/8250_omap.c:1194:42: warning: unused variable 'k3_soc_devices'

From: kernel test robot
Date: Thu Jul 22 2021 - 02:24:35 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.10.y
head: 2cd5fe24a7f025448f19d98c4f4c45ff79ce0784
commit: e0e3e0b7dabf9399983c763325bfcd163833085f [556/1056] serial: 8250: 8250_omap: Disable RX interrupt after DMA enable
config: arm64-randconfig-r016-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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=e0e3e0b7dabf9399983c763325bfcd163833085f
git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
git fetch --no-tags stable linux-5.10.y
git checkout e0e3e0b7dabf9399983c763325bfcd163833085f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64

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/tty/serial/8250/8250_omap.c:1194:42: warning: unused variable 'k3_soc_devices' [-Wunused-const-variable]
static const struct soc_device_attribute k3_soc_devices[] = {
^
1 warning generated.


vim +/k3_soc_devices +1194 drivers/tty/serial/8250/8250_omap.c

1193
> 1194 static const struct soc_device_attribute k3_soc_devices[] = {
1195 { .family = "AM65X", },
1196 { .family = "J721E", .revision = "SR1.0" },
1197 };
1198

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

Attachment: .config.gz
Description: application/gzip