[ext4:dev 15/17] fs/ext4/super.c:4839:10: error: implicit declaration of function 'dqget'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
head:   6ac40c7b5597646ec4335f77ab79cac9663f4a1e
commit: ff77c62ef3316c4dc8ddf7117c9d581f542194a0 [15/17] ext4: add project quota support
config: x86_64-randconfig-x015-201601 (attached as .config)
reproduce:
        git checkout ff77c62ef3316c4dc8ddf7117c9d581f542194a0
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   fs/ext4/super.c: In function 'ext4_statfs_project':
>> fs/ext4/super.c:4839:10: error: implicit declaration of function 'dqget' [-Werror=implicit-function-declaration]
     dquot = dqget(sb, qid);
             ^
>> fs/ext4/super.c:4839:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     dquot = dqget(sb, qid);
           ^
>> fs/ext4/super.c:4866:2: error: implicit declaration of function 'dqput' [-Werror=implicit-function-declaration]
     dqput(dquot);
     ^
   cc1: some warnings being treated as errors

vim +/dqget +4839 fs/ext4/super.c

  4833		struct kqid qid;
  4834		struct dquot *dquot;
  4835		u64 limit;
  4836		u64 curblock;
  4837	
  4838		qid = make_kqid_projid(projid);
> 4839		dquot = dqget(sb, qid);
  4840		if (!dquot)
  4841			return -ESRCH;
  4842		spin_lock(&dq_data_lock);
  4843	
  4844		limit = (dquot->dq_dqb.dqb_bsoftlimit ?
  4845			 dquot->dq_dqb.dqb_bsoftlimit :
  4846			 dquot->dq_dqb.dqb_bhardlimit) >> sb->s_blocksize_bits;
  4847		if (limit && buf->f_blocks > limit) {
  4848			curblock = dquot->dq_dqb.dqb_curspace >> sb->s_blocksize_bits;
  4849			buf->f_blocks = limit;
  4850			buf->f_bfree = buf->f_bavail =
  4851				(buf->f_blocks > curblock) ?
  4852				 (buf->f_blocks - curblock) : 0;
  4853		}
  4854	
  4855		limit = dquot->dq_dqb.dqb_isoftlimit ?
  4856			dquot->dq_dqb.dqb_isoftlimit :
  4857			dquot->dq_dqb.dqb_ihardlimit;
  4858		if (limit && buf->f_files > limit) {
  4859			buf->f_files = limit;
  4860			buf->f_ffree =
  4861				(buf->f_files > dquot->dq_dqb.dqb_curinodes) ?
  4862				 (buf->f_files - dquot->dq_dqb.dqb_curinodes) : 0;
  4863		}
  4864	
  4865		spin_unlock(&dq_data_lock);
> 4866		dqput(dquot);
  4867		return 0;
  4868	}
  4869	

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux