* [viro-vfs:work.dcache 16/16] fs/dcache.c:1081:27: error: passing 'struct list_head' to parameter of incompatible type 'struct list_head *'; take the address with &
@ 2023-11-04 3:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-04 3:29 UTC (permalink / raw)
To: Al Viro; +Cc: llvm, oe-kbuild-all, linux-fsdevel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.dcache
head: e565b3bc8b39fae7d3c4093e012df87ba1eed599
commit: e565b3bc8b39fae7d3c4093e012df87ba1eed599 [16/16] d_prune_aliases(): use a shrink list
config: um-allnoconfig (https://download.01.org/0day-ci/archive/20231104/202311041152.XK4svsNI-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231104/202311041152.XK4svsNI-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311041152.XK4svsNI-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from fs/dcache.c:31:
In file included from include/linux/memblock.h:13:
In file included from arch/um/include/asm/dma.h:5:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
547 | val = __raw_readb(PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
| ^
In file included from fs/dcache.c:31:
In file included from include/linux/memblock.h:13:
In file included from arch/um/include/asm/dma.h:5:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
| ^
In file included from fs/dcache.c:31:
In file included from include/linux/memblock.h:13:
In file included from arch/um/include/asm/dma.h:5:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
584 | __raw_writeb(value, PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:692:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
692 | readsb(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:700:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
700 | readsw(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:708:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
708 | readsl(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:717:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
717 | writesb(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:726:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
726 | writesw(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
735 | writesl(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
>> fs/dcache.c:1081:27: error: passing 'struct list_head' to parameter of incompatible type 'struct list_head *'; take the address with &
1081 | to_shrink_list(dentry, dispose);
| ^~~~~~~
| &
fs/dcache.c:898:69: note: passing argument to parameter 'list' here
898 | static void to_shrink_list(struct dentry *dentry, struct list_head *list)
| ^
fs/dcache.c:1085:21: error: passing 'struct list_head' to parameter of incompatible type 'struct list_head *'; take the address with &
1085 | shrink_dentry_list(dispose);
| ^~~~~~~
| &
fs/internal.h:209:50: note: passing argument to parameter here
209 | extern void shrink_dentry_list(struct list_head *);
| ^
12 warnings and 2 errors generated.
vim +1081 fs/dcache.c
1067
1068 /*
1069 * Try to kill dentries associated with this inode.
1070 * WARNING: you must own a reference to inode.
1071 */
1072 void d_prune_aliases(struct inode *inode)
1073 {
1074 LIST_HEAD(dispose);
1075 struct dentry *dentry;
1076
1077 spin_lock(&inode->i_lock);
1078 hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias) {
1079 spin_lock(&dentry->d_lock);
1080 if (!dentry->d_lockref.count)
> 1081 to_shrink_list(dentry, dispose);
1082 spin_unlock(&dentry->d_lock);
1083 }
1084 spin_unlock(&inode->i_lock);
1085 shrink_dentry_list(dispose);
1086 }
1087 EXPORT_SYMBOL(d_prune_aliases);
1088
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-04 3:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-04 3:29 [viro-vfs:work.dcache 16/16] fs/dcache.c:1081:27: error: passing 'struct list_head' to parameter of incompatible type 'struct list_head *'; take the address with & kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).