Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c2cadcc2 authored by Stefan Agner's avatar Stefan Agner Committed by Gerrit - the friendly Code Review server
Browse files

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

Change-Id: I8bcb1361869f1aaf6243476a8cb1075012300e19
Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Git-commit: dea632cadd129d1901efde6b1167a6250b2157fb
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarGaurav Kohli <gkohli@codeaurora.org>
parent e0da3764
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment