* [jlayton:dir-deleg 10/25] fs/namei.c:4074:5: error: call to undeclared function 'ima_post_path_mknod'; ISO C99 and later do not support implicit function declarations
@ 2024-03-19 11:47 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-03-19 11:47 UTC (permalink / raw
To: Jeff Layton; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git dir-deleg
head: 3509cb8bd63103f6f1a76089f0352fe85a9097ab
commit: f9eb21a3371bd06b4763c4757f2371e83241efb1 [10/25] vfs: make vfs_create break delegations on parent directory
config: s390-allnoconfig (https://download.01.org/0day-ci/archive/20240319/202403191958.Ijkf2znb-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 8f68022f8e6e54d1aeae4ed301f5a015963089b7)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240319/202403191958.Ijkf2znb-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/202403191958.Ijkf2znb-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from fs/namei.c:25:
In file included from include/linux/pagemap.h:8:
In file included from include/linux/mm.h:2208:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
In file included from fs/namei.c:41:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:43:
In file included from include/linux/skbuff.h:28:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:78:
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/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu'
37 | #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
| ^
include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
102 | #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
| ^
In file included from fs/namei.c:41:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:43:
In file included from include/linux/skbuff.h:28:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:78:
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/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
| ^
include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
| ^
In file included from fs/namei.c:41:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:43:
In file included from include/linux/skbuff.h:28:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:78:
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/namei.c:4074:5: error: call to undeclared function 'ima_post_path_mknod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
4074 | ima_post_path_mknod(idmap, dentry);
| ^
13 warnings and 1 error generated.
vim +/ima_post_path_mknod +4074 fs/namei.c
4043
4044 static int do_mknodat(int dfd, struct filename *name, umode_t mode,
4045 unsigned int dev)
4046 {
4047 struct mnt_idmap *idmap;
4048 struct dentry *dentry;
4049 struct path path;
4050 int error;
4051 unsigned int lookup_flags = 0;
4052 struct inode *delegated_inode = NULL;
4053
4054 error = may_mknod(mode);
4055 if (error)
4056 goto out1;
4057 retry:
4058 dentry = filename_create(dfd, name, &path, lookup_flags);
4059 error = PTR_ERR(dentry);
4060 if (IS_ERR(dentry))
4061 goto out1;
4062
4063 error = security_path_mknod(&path, dentry,
4064 mode_strip_umask(path.dentry->d_inode, mode), dev);
4065 if (error)
4066 goto out2;
4067
4068 idmap = mnt_idmap(path.mnt);
4069 switch (mode & S_IFMT) {
4070 case 0: case S_IFREG:
4071 error = vfs_create(idmap, path.dentry->d_inode,
4072 dentry, mode, true, &delegated_inode);
4073 if (!error)
> 4074 ima_post_path_mknod(idmap, dentry);
4075 break;
4076 case S_IFCHR: case S_IFBLK:
4077 error = vfs_mknod(idmap, path.dentry->d_inode,
4078 dentry, mode, new_decode_dev(dev));
4079 break;
4080 case S_IFIFO: case S_IFSOCK:
4081 error = vfs_mknod(idmap, path.dentry->d_inode,
4082 dentry, mode, 0);
4083 break;
4084 }
4085
4086 if (error)
4087 goto out2;
4088
4089 security_path_post_mknod(idmap, dentry);
4090 out2:
4091 done_path_create(&path, dentry);
4092 if (delegated_inode) {
4093 error = break_deleg_wait(&delegated_inode);
4094 if (!error)
4095 goto retry;
4096 }
4097 if (retry_estale(error, lookup_flags)) {
4098 lookup_flags |= LOOKUP_REVAL;
4099 goto retry;
4100 }
4101 out1:
4102 putname(name);
4103 return error;
4104 }
4105
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [jlayton:dir-deleg 10/25] fs/namei.c:4074:5: error: call to undeclared function 'ima_post_path_mknod'; ISO C99 and later do not support implicit function declarations
@ 2024-03-19 12:49 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-03-19 12:49 UTC (permalink / raw
To: Jeff Layton; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git dir-deleg
head: 3509cb8bd63103f6f1a76089f0352fe85a9097ab
commit: f9eb21a3371bd06b4763c4757f2371e83241efb1 [10/25] vfs: make vfs_create break delegations on parent directory
config: um-x86_64_defconfig (https://download.01.org/0day-ci/archive/20240319/202403192038.Pa7wfVWQ-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240319/202403192038.Pa7wfVWQ-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/202403192038.Pa7wfVWQ-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from fs/namei.c:25:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
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]
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]
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'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from fs/namei.c:25:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
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]
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'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from fs/namei.c:25:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
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]
__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]
__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]
__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]
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]
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]
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]
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]
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]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> fs/namei.c:4074:5: error: call to undeclared function 'ima_post_path_mknod'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
ima_post_path_mknod(idmap, dentry);
^
12 warnings and 1 error generated.
vim +/ima_post_path_mknod +4074 fs/namei.c
4043
4044 static int do_mknodat(int dfd, struct filename *name, umode_t mode,
4045 unsigned int dev)
4046 {
4047 struct mnt_idmap *idmap;
4048 struct dentry *dentry;
4049 struct path path;
4050 int error;
4051 unsigned int lookup_flags = 0;
4052 struct inode *delegated_inode = NULL;
4053
4054 error = may_mknod(mode);
4055 if (error)
4056 goto out1;
4057 retry:
4058 dentry = filename_create(dfd, name, &path, lookup_flags);
4059 error = PTR_ERR(dentry);
4060 if (IS_ERR(dentry))
4061 goto out1;
4062
4063 error = security_path_mknod(&path, dentry,
4064 mode_strip_umask(path.dentry->d_inode, mode), dev);
4065 if (error)
4066 goto out2;
4067
4068 idmap = mnt_idmap(path.mnt);
4069 switch (mode & S_IFMT) {
4070 case 0: case S_IFREG:
4071 error = vfs_create(idmap, path.dentry->d_inode,
4072 dentry, mode, true, &delegated_inode);
4073 if (!error)
> 4074 ima_post_path_mknod(idmap, dentry);
4075 break;
4076 case S_IFCHR: case S_IFBLK:
4077 error = vfs_mknod(idmap, path.dentry->d_inode,
4078 dentry, mode, new_decode_dev(dev));
4079 break;
4080 case S_IFIFO: case S_IFSOCK:
4081 error = vfs_mknod(idmap, path.dentry->d_inode,
4082 dentry, mode, 0);
4083 break;
4084 }
4085
4086 if (error)
4087 goto out2;
4088
4089 security_path_post_mknod(idmap, dentry);
4090 out2:
4091 done_path_create(&path, dentry);
4092 if (delegated_inode) {
4093 error = break_deleg_wait(&delegated_inode);
4094 if (!error)
4095 goto retry;
4096 }
4097 if (retry_estale(error, lookup_flags)) {
4098 lookup_flags |= LOOKUP_REVAL;
4099 goto retry;
4100 }
4101 out1:
4102 putname(name);
4103 return error;
4104 }
4105
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-19 12:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-19 12:49 [jlayton:dir-deleg 10/25] fs/namei.c:4074:5: error: call to undeclared function 'ima_post_path_mknod'; ISO C99 and later do not support implicit function declarations kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2024-03-19 11:47 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.