[vfs:untested-uaccess 32/79] arch/ia64/mm/extable.c:16:14: error: 'EFAULT' undeclared

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

 



Hi Al,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git untested-uaccess
head:   e4c5cc79ec8eab6bc3e74d9994b33f368f137223
commit: 5e50940a5bad868daf05d8bb5027cb0ef0f4cc87 [32/79] ia64: add extable.h
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5e50940a5bad868daf05d8bb5027cb0ef0f4cc87
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   arch/ia64/mm/extable.c: In function 'ia64_handle_exception':
>> arch/ia64/mm/extable.c:16:14: error: 'EFAULT' undeclared (first use in this function)
     regs->r8 = -EFAULT;
                 ^~~~~~
   arch/ia64/mm/extable.c:16:14: note: each undeclared identifier is reported only once for each function it appears in
>> arch/ia64/mm/extable.c:20:16: error: dereferencing pointer to incomplete type 'struct ia64_psr'
     ia64_psr(regs)->ri = fix & 0x3;  /* set continuation slot number */
                   ^~

vim +/EFAULT +16 arch/ia64/mm/extable.c

^1da177e Linus Torvalds 2005-04-16  10  
^1da177e Linus Torvalds 2005-04-16  11  void
^1da177e Linus Torvalds 2005-04-16  12  ia64_handle_exception (struct pt_regs *regs, const struct exception_table_entry *e)
^1da177e Linus Torvalds 2005-04-16  13  {
8fe9752e Ard Biesheuvel 2016-03-22  14  	long fix = (u64) &e->fixup + e->fixup;
^1da177e Linus Torvalds 2005-04-16  15  
^1da177e Linus Torvalds 2005-04-16 @16  	regs->r8 = -EFAULT;
^1da177e Linus Torvalds 2005-04-16  17  	if (fix & 4)
^1da177e Linus Torvalds 2005-04-16  18  		regs->r9 = 0;
^1da177e Linus Torvalds 2005-04-16  19  	regs->cr_iip = fix & ~0xf;
^1da177e Linus Torvalds 2005-04-16 @20  	ia64_psr(regs)->ri = fix & 0x3;		/* set continuation slot number */
^1da177e Linus Torvalds 2005-04-16  21  }

:::::: The code at line 16 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

---
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