From: kernel test robot <lkp@intel.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Thu, 9 Feb 2023 05:14:37 +0800 [thread overview]
Message-ID: <202302090518.dheLEZ1s-lkp@intel.com> (raw)
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
reply other threads:[~2023-02-08 21:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202302090518.dheLEZ1s-lkp@intel.com \
--to=lkp@intel.com \
--cc=bvanassche@acm.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.