[s390:features 32/77] arch/s390/boot/mem_detect.c:77:12: error: 'EFAULT' undeclared

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features
head:   c72251ad879056d096d39db21c08cb52e481eb2d
commit: 6966d604e2ec4ecf5691aea953538f63597a250d [32/77] s390/mem_detect: move tprot loop to early boot phase
config: s390-allnoconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 6966d604e2ec4ecf5691aea953538f63597a250d
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=s390 

Note: the s390/features HEAD c72251ad879056d096d39db21c08cb52e481eb2d builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   arch/s390/boot/mem_detect.c: In function 'tprot':
>> arch/s390/boot/mem_detect.c:77:12: error: 'EFAULT' undeclared (first use in this function)
     int rc = -EFAULT;
               ^~~~~~
   arch/s390/boot/mem_detect.c:77:12: note: each undeclared identifier is reported only once for each function it appears in

vim +/EFAULT +77 arch/s390/boot/mem_detect.c

    73	
    74	static int tprot(unsigned long addr)
    75	{
    76		unsigned long pgm_addr;
  > 77		int rc = -EFAULT;
    78		psw_t old = S390_lowcore.program_new_psw;
    79	
    80		S390_lowcore.program_new_psw.mask = __extract_psw();
    81		asm volatile(
    82			"	larl	%[pgm_addr],1f\n"
    83			"	stg	%[pgm_addr],%[psw_pgm_addr]\n"
    84			"	tprot	0(%[addr]),0\n"
    85			"	ipm	%[rc]\n"
    86			"	srl	%[rc],28\n"
    87			"1:\n"
    88			: [pgm_addr] "=&d"(pgm_addr),
    89			  [psw_pgm_addr] "=Q"(S390_lowcore.program_new_psw.addr),
    90			  [rc] "+&d"(rc)
    91			: [addr] "a"(addr)
    92			: "cc", "memory");
    93		S390_lowcore.program_new_psw = old;
    94		return rc;
    95	}
    96	

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

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux