* [bvanassche:scsi-for-next 2/2] drivers/ufs/host/ufs-sprd.c:21:34: warning: array 'ufs_sprd_of_match' assumed to have one element
@ 2023-02-08 21:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-08 21:14 UTC (permalink / raw)
To: Bart Van Assche; +Cc: oe-kbuild-all
tree: https://github.com/bvanassche/linux scsi-for-next
head: 473b8dce834121e5e075c5f94b93762990781799
commit: 473b8dce834121e5e075c5f94b93762990781799 [2/2] scsi: ufs: Suppress !defined(MODULE) warnings
config: ia64-randconfig-c023-20230209 (https://download.01.org/0day-ci/archive/20230209/202302090518.dheLEZ1s-lkp@intel.com/config)
compiler: ia64-linux-gcc (GCC) 12.1.0
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
# https://github.com/bvanassche/linux/commit/473b8dce834121e5e075c5f94b93762990781799
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-for-next
git checkout 473b8dce834121e5e075c5f94b93762990781799
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/ufs/host/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302090518.dheLEZ1s-lkp@intel.com
All warnings (new ones prefixed by >>):
>> drivers/ufs/host/ufs-sprd.c:21:34: warning: array 'ufs_sprd_of_match' assumed to have one element
21 | static const struct of_device_id ufs_sprd_of_match[];
| ^~~~~~~~~~~~~~~~~
drivers/ufs/host/ufs-sprd.c:388:29: warning: 'n6_ufs' defined but not used [-Wunused-variable]
388 | static struct ufs_sprd_priv n6_ufs = {
| ^~~~~~
drivers/ufs/host/ufs-sprd.c:21:34: warning: 'ufs_sprd_of_match' defined but not used [-Wunused-const-variable=]
21 | static const struct of_device_id ufs_sprd_of_match[];
| ^~~~~~~~~~~~~~~~~
vim +/ufs_sprd_of_match +21 drivers/ufs/host/ufs-sprd.c
df7320bac37e83 Zhe Wang 2022-12-09 20
df7320bac37e83 Zhe Wang 2022-12-09 @21 static const struct of_device_id ufs_sprd_of_match[];
df7320bac37e83 Zhe Wang 2022-12-09 22
:::::: The code at line 21 was first introduced by commit
:::::: df7320bac37e837f43883a51ce879c07c4429180 scsi: ufs: ufs-unisoc: Add support for Unisoc UFS host controller
:::::: TO: Zhe Wang <zhe.wang1@unisoc.com>
:::::: CC: Martin K. Petersen <martin.petersen@oracle.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-08 21:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08 21:14 [bvanassche:scsi-for-next 2/2] drivers/ufs/host/ufs-sprd.c:21:34: warning: array 'ufs_sprd_of_match' assumed to have one element kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.