lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 16 Mar 2022 13:16:37 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dai Ngo <dai.ngo@...cle.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Chuck Lever <chuck.lever@...cle.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

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ