arch/s390/include/asm/cpacf.h:170:2: error: impossible constraint in 'asm'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   72cf0b07418a9c8349aa9137194b1ccba6e54a9d
commit: 9012d011660ea5cf2a623e1de207a2bc0ca6936d compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING
date:   4 days ago
config: s390-allyesconfig (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 9012d011660ea5cf2a623e1de207a2bc0ca6936d
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   In file included from arch/s390//crypto/prng.c:29:0:
   arch/s390/include/asm/cpacf.h: In function 'cpacf_query_func':
   arch/s390/include/asm/cpacf.h:170:2: warning: asm operand 3 probably doesn't match constraints
     asm volatile(
     ^~~
>> arch/s390/include/asm/cpacf.h:170:2: error: impossible constraint in 'asm'

vim +/asm +170 arch/s390/include/asm/cpacf.h

69c0e360 Martin Schwidefsky 2016-08-18  154  
c7d4d259 Martin Schwidefsky 2016-03-17  155  /**
c7d4d259 Martin Schwidefsky 2016-03-17  156   * cpacf_query() - check if a specific CPACF function is available
c7d4d259 Martin Schwidefsky 2016-03-17  157   * @opcode: the opcode of the crypto instruction
c7d4d259 Martin Schwidefsky 2016-03-17  158   * @func: the function code to test for
c7d4d259 Martin Schwidefsky 2016-03-17  159   *
c7d4d259 Martin Schwidefsky 2016-03-17  160   * Executes the query function for the given crypto instruction @opcode
c7d4d259 Martin Schwidefsky 2016-03-17  161   * and checks if @func is available
c7d4d259 Martin Schwidefsky 2016-03-17  162   *
c7d4d259 Martin Schwidefsky 2016-03-17  163   * Returns 1 if @func is available for @opcode, 0 otherwise
c7d4d259 Martin Schwidefsky 2016-03-17  164   */
69c0e360 Martin Schwidefsky 2016-08-18  165  static inline void __cpacf_query(unsigned int opcode, cpacf_mask_t *mask)
c7d4d259 Martin Schwidefsky 2016-03-17  166  {
c7d4d259 Martin Schwidefsky 2016-03-17  167  	register unsigned long r0 asm("0") = 0;	/* query function */
69c0e360 Martin Schwidefsky 2016-08-18  168  	register unsigned long r1 asm("1") = (unsigned long) mask;
c7d4d259 Martin Schwidefsky 2016-03-17  169  
c7d4d259 Martin Schwidefsky 2016-03-17 @170  	asm volatile(
1afd43e0 David Hildenbrand  2016-05-18  171  		"	spm 0\n" /* pckmo doesn't change the cc */
b112a2df Jason J. Herne     2017-02-21  172  		/* Parameter regs are ignored, but must be nonzero and unique */
b112a2df Jason J. Herne     2017-02-21  173  		"0:	.insn	rrf,%[opc] << 16,2,4,6,0\n"
c7d4d259 Martin Schwidefsky 2016-03-17  174  		"	brc	1,0b\n"	/* handle partial completion */
69c0e360 Martin Schwidefsky 2016-08-18  175  		: "=m" (*mask)
c7d4d259 Martin Schwidefsky 2016-03-17  176  		: [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (opcode)
c7d4d259 Martin Schwidefsky 2016-03-17  177  		: "cc");
c7d4d259 Martin Schwidefsky 2016-03-17  178  }
c7d4d259 Martin Schwidefsky 2016-03-17  179  

:::::: The code at line 170 was first introduced by commit
:::::: c7d4d259b7477866376435155eb0ccdaee880677 s390/crypto: cleanup and move the header with the cpacf definitions

:::::: TO: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
:::::: CC: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>

---
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 ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux