[vfs:work.aio 10/12] fs/aio.c:1444: undefined reference to `ioprio_check_cap'

[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 work.aio
head:   087e566916ce2cde4f20a148607c9c3591f46f67
commit: d9a08a9e616beeccdbd0e7262b7225ffdfa49e92 [10/12] fs: Add aio iopriority support
config: x86_64-randconfig-u0-06010558 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
reproduce:
        git checkout d9a08a9e616beeccdbd0e7262b7225ffdfa49e92
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   fs/aio.o: In function `aio_prep_rw':
>> fs/aio.c:1444: undefined reference to `ioprio_check_cap'

vim +1444 fs/aio.c

  1424	
  1425	static int aio_prep_rw(struct kiocb *req, struct iocb *iocb)
  1426	{
  1427		int ret;
  1428	
  1429		req->ki_filp = fget(iocb->aio_fildes);
  1430		if (unlikely(!req->ki_filp))
  1431			return -EBADF;
  1432		req->ki_complete = aio_complete_rw;
  1433		req->ki_pos = iocb->aio_offset;
  1434		req->ki_flags = iocb_flags(req->ki_filp);
  1435		if (iocb->aio_flags & IOCB_FLAG_RESFD)
  1436			req->ki_flags |= IOCB_EVENTFD;
  1437		req->ki_hint = ki_hint_validate(file_write_hint(req->ki_filp));
  1438		if (iocb->aio_flags & IOCB_FLAG_IOPRIO) {
  1439			/*
  1440			 * If the IOCB_FLAG_IOPRIO flag of aio_flags is set, then
  1441			 * aio_reqprio is interpreted as an I/O scheduling
  1442			 * class and priority.
  1443			 */
> 1444			ret = ioprio_check_cap(iocb->aio_reqprio);
  1445			if (ret) {
  1446				pr_debug("aio ioprio check cap error\n");
  1447				return -EINVAL;
  1448			}
  1449	
  1450			req->ki_ioprio = iocb->aio_reqprio;
  1451		} else
  1452			req->ki_ioprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, 0);
  1453	
  1454		ret = kiocb_set_rw_flags(req, iocb->aio_rw_flags);
  1455		if (unlikely(ret))
  1456			fput(req->ki_filp);
  1457		return ret;
  1458	}
  1459	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


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

  Powered by Linux