From: kbuild test robot <lkp@intel.com>
To: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: arch/s390/include/asm/cpacf.h:170:2: error: impossible constraint in 'asm'
Date: Sun, 19 May 2019 11:59:08 +0800 [thread overview]
Message-ID: <201905191106.PGEoZ2tS%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3646 bytes --]
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@intel.com>
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@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 54157 bytes --]
reply other threads:[~2019-05-19 3:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201905191106.PGEoZ2tS%lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=yamada.masahiro@socionext.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox