Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1713691 > unrolled thread

Re: [PATCH RESEND] lib/mpi: fix build with clang

Started byHerbert Xu <herbert@gondor.apana.org.au>
First post2017-08-17 11:10 +0200
Last post2017-08-17 11:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH RESEND] lib/mpi: fix build with clang Herbert Xu <herbert@gondor.apana.org.au> - 2017-08-17 11:10 +0200

#1713691 — Re: [PATCH RESEND] lib/mpi: fix build with clang

FromHerbert Xu <herbert@gondor.apana.org.au>
Date2017-08-17 11:10 +0200
SubjectRe: [PATCH RESEND] lib/mpi: fix build with clang
Message-ID<ufoYq-2Kf-39@gated-at.bofh.it>
On Mon, Aug 07, 2017 at 10:31:20AM -0700, Stefan Agner wrote:
> 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>

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web