]> asedeno.scripts.mit.edu Git - linux.git/commit
lib/mpi: fix build with clang
authorStefan Agner <stefan@agner.ch>
Mon, 7 Aug 2017 17:31:20 +0000 (10:31 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 17 Aug 2017 08:53:31 +0000 (16:53 +0800)
commitdea632cadd129d1901efde6b1167a6250b2157fb
tree669bf9f93a2f3a59bc6d6834188544f0eb557d5b
parent67adc432f424063cb82dfcb56fa883c7d8f7e9e5
lib/mpi: fix build with clang

Use just @ to denote comments which works with gcc and clang.
Otherwise clang reports an escape sequence error:
  error: invalid % escape in inline assembly string

Use %0-%3 as operand references, this avoids:
  error: invalid operand in inline asm: 'umull ${1:r}, ${0:r}, ${2:r}, ${3:r}'

Also remove superfluous casts on output operands to avoid warnings
such as:
  warning: invalid use of a cast in an inline asm context requiring an l-value

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/mpi/longlong.h