[viro-vfs:next.getname 17/17] ipc/mqueue.c:886:9: error: implicit declaration of function 'audit_inode'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git next.getname
head:   25ea033155f4d083b5a20417d53754b11a39c3bb
commit: 25ea033155f4d083b5a20417d53754b11a39c3bb [17/17] RIP filename::uptr
config: alpha-defconfig (https://download.01.org/0day-ci/archive/20241114/202411140656.wyWgEvw4-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411140656.wyWgEvw4-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411140656.wyWgEvw4-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   ipc/mqueue.c: In function 'prepare_open':
>> ipc/mqueue.c:886:9: error: implicit declaration of function 'audit_inode' [-Wimplicit-function-declaration]
     886 |         audit_inode(name, dentry, 0);
         |         ^~~~~~~~~~~


vim +/audit_inode +886 ipc/mqueue.c

^1da177e4c3f41 Linus Torvalds    2005-04-16  867  
066cc813e94a34 Al Viro           2017-12-01  868  static int prepare_open(struct dentry *dentry, int oflag, int ro,
066cc813e94a34 Al Viro           2017-12-01  869  			umode_t mode, struct filename *name,
614b84cf4e4a92 Serge Hallyn      2009-04-06  870  			struct mq_attr *attr)
^1da177e4c3f41 Linus Torvalds    2005-04-16  871  {
745ca2475a6ac5 David Howells     2008-11-14  872  	static const int oflag2acc[O_ACCMODE] = { MAY_READ, MAY_WRITE,
^1da177e4c3f41 Linus Torvalds    2005-04-16  873  						  MAY_READ | MAY_WRITE };
765927b2d50871 Al Viro           2012-06-26  874  	int acc;
066cc813e94a34 Al Viro           2017-12-01  875  
9b20d7fc5250f5 Al Viro           2017-12-01  876  	if (d_really_is_negative(dentry)) {
9b20d7fc5250f5 Al Viro           2017-12-01  877  		if (!(oflag & O_CREAT))
9b20d7fc5250f5 Al Viro           2017-12-01  878  			return -ENOENT;
066cc813e94a34 Al Viro           2017-12-01  879  		if (ro)
066cc813e94a34 Al Viro           2017-12-01  880  			return ro;
066cc813e94a34 Al Viro           2017-12-01  881  		audit_inode_parent_hidden(name, dentry->d_parent);
066cc813e94a34 Al Viro           2017-12-01  882  		return vfs_mkobj(dentry, mode & ~current_umask(),
066cc813e94a34 Al Viro           2017-12-01  883  				  mqueue_create_attr, attr);
066cc813e94a34 Al Viro           2017-12-01  884  	}
9b20d7fc5250f5 Al Viro           2017-12-01  885  	/* it already existed */
066cc813e94a34 Al Viro           2017-12-01 @886  	audit_inode(name, dentry, 0);
9b20d7fc5250f5 Al Viro           2017-12-01  887  	if ((oflag & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL))
9b20d7fc5250f5 Al Viro           2017-12-01  888  		return -EEXIST;
765927b2d50871 Al Viro           2012-06-26  889  	if ((oflag & O_ACCMODE) == (O_RDWR | O_WRONLY))
af4a5372e4166e Al Viro           2017-12-01  890  		return -EINVAL;
765927b2d50871 Al Viro           2012-06-26  891  	acc = oflag2acc[oflag & O_ACCMODE];
4609e1f18e19c3 Christian Brauner 2023-01-13  892  	return inode_permission(&nop_mnt_idmap, d_inode(dentry), acc);
^1da177e4c3f41 Linus Torvalds    2005-04-16  893  }
^1da177e4c3f41 Linus Torvalds    2005-04-16  894  

:::::: The code at line 886 was first introduced by commit
:::::: 066cc813e94a344ae4482af310d324739955c3b5 do_mq_open(): move all work prior to dentry_open() into a helper

:::::: TO: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
:::::: CC: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux