From: kernel test robot <lkp@intel.com>
To: Dai Ngo <dai.ngo@oracle.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Chuck Lever <chuck.lever@oracle.com>
Subject: [cel:nfsd-courteous-server 31/41] include/linux/fs.h:1340:13: sparse: sparse: function 'locks_owner_has_blockers' with external linkage has definition
Date: Wed, 16 Mar 2022 13:16:37 +0800 [thread overview]
Message-ID: <202203161339.iou7bfaC-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux nfsd-courteous-server
head: df7704ec9804486aa3f3888fca582467a796ab2d
commit: ec6ec997faf8e90bef09f6e0376a157659a492c6 [31/41] fs/lock: add helper locks_owner_has_blockers to check for blockers
config: h8300-randconfig-s032-20220313 (https://download.01.org/0day-ci/archive/20220316/202203161339.iou7bfaC-lkp@intel.com/config)
compiler: h8300-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/commit/?id=ec6ec997faf8e90bef09f6e0376a157659a492c6
git remote add cel git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
git fetch --no-tags cel nfsd-courteous-server
git checkout ec6ec997faf8e90bef09f6e0376a157659a492c6
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=h8300 SHELL=/bin/bash drivers/pinctrl/mediatek/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/pinctrl/mediatek/pinctrl-mt6397.c: note: in included file (through include/linux/seq_file.h, include/linux/pinctrl/pinctrl.h):
>> include/linux/fs.h:1340:13: sparse: sparse: function 'locks_owner_has_blockers' with external linkage has definition
include/linux/fs.h:1340:13: sparse: sparse: symbol 'locks_owner_has_blockers' was not declared. Should it be static?
--
drivers/pinctrl/mediatek/pinctrl-mtk-common.c: note: in included file (through include/linux/seq_file.h, include/linux/pinctrl/pinctrl.h, include/linux/gpio/driver.h):
>> include/linux/fs.h:1340:13: sparse: sparse: function 'locks_owner_has_blockers' with external linkage has definition
include/linux/fs.h:1340:13: sparse: sparse: symbol 'locks_owner_has_blockers' was not declared. Should it be static?
--
drivers/pinctrl/mediatek/mtk-eint.c: note: in included file (through include/linux/seq_file.h, include/linux/pinctrl/pinctrl.h, include/linux/gpio/driver.h):
>> include/linux/fs.h:1340:13: sparse: sparse: function 'locks_owner_has_blockers' with external linkage has definition
include/linux/fs.h:1340:13: sparse: sparse: symbol 'locks_owner_has_blockers' was not declared. Should it be static?
drivers/pinctrl/mediatek/mtk-eint.c: note: in included file (through include/linux/io.h, include/linux/irq.h, include/linux/gpio/driver.h):
arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
drivers/pinctrl/mediatek/mtk-eint.c: note: in included file (through arch/h8300/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...):
include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] b @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:22: sparse: expected unsigned int [usertype] b
include/asm-generic/io.h:299:22: sparse: got restricted __le32 [usertype]
drivers/pinctrl/mediatek/mtk-eint.c: note: in included file (through include/linux/io.h, include/linux/irq.h, include/linux/gpio/driver.h):
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
drivers/pinctrl/mediatek/mtk-eint.c: note: in included file (through arch/h8300/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...):
include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] b @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:22: sparse: expected unsigned int [usertype] b
include/asm-generic/io.h:299:22: sparse: got restricted __le32 [usertype]
drivers/pinctrl/mediatek/mtk-eint.c: note: in included file (through include/linux/io.h, include/linux/irq.h, include/linux/gpio/driver.h):
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression
drivers/pinctrl/mediatek/mtk-eint.c: note: in included file (through arch/h8300/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...):
include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] b @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:22: sparse: expected unsigned int [usertype] b
include/asm-generic/io.h:299:22: sparse: got restricted __le32 [usertype]
drivers/pinctrl/mediatek/mtk-eint.c: note: in included file (through include/linux/io.h, include/linux/irq.h, include/linux/gpio/driver.h):
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:26:18: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
arch/h8300/include/asm/io.h:44:11: sparse: sparse: cast removes address space '__iomem' of expression
vim +/locks_owner_has_blockers +1340 include/linux/fs.h
1336
1337 struct files_struct;
1338 static inline void show_fd_locks(struct seq_file *f,
1339 struct file *filp, struct files_struct *files) {}
> 1340 extern bool locks_owner_has_blockers(struct file_lock_context *flctx,
1341 fl_owner_t owner)
1342 {
1343 return false;
1344 }
1345 #endif /* !CONFIG_FILE_LOCKING */
1346
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-03-16 5:17 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=202203161339.iou7bfaC-lkp@intel.com \
--to=lkp@intel.com \
--cc=chuck.lever@oracle.com \
--cc=dai.ngo@oracle.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®