[kbuild:build-test2 1/1] 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/masahiroy/linux-kbuild.git build-test2
head:   164e3a56f50ee5b9991c9ef7ba8fdc0132eb0511
commit: 164e3a56f50ee5b9991c9ef7ba8fdc0132eb0511 [1/1] Remove __always_inline from inline (only for build test)
config: s390-allmodconfig (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 164e3a56f50ee5b9991c9ef7ba8fdc0132eb0511
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=s390 

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

   In file included from arch/s390//crypto/des_s390.c:19:0:
   arch/s390/include/asm/cpacf.h: In function 'cpacf_query':
>> 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&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux