summaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/dp_sub.c
diff options
context:
space:
mode:
authorDaniel Sanders2015-02-24 16:25:10 +0100
committerRalf Baechle2015-04-01 17:21:47 +0200
commit20c82d93d3c284700c7749f51d4eff3eaaf3e13f (patch)
treec6b73a29a0dee81c414f3ff0329c5a2036cc6a5e /arch/mips/math-emu/dp_sub.c
parentMIPS: LLVMLinux: Fix a 'cast to type not present in union' error. (diff)
downloadkernel-qcow2-linux-20c82d93d3c284700c7749f51d4eff3eaaf3e13f.tar.gz
kernel-qcow2-linux-20c82d93d3c284700c7749f51d4eff3eaaf3e13f.tar.xz
kernel-qcow2-linux-20c82d93d3c284700c7749f51d4eff3eaaf3e13f.zip
MIPS: LLVMLinux: Fix an 'inline asm input/output type mismatch' error.
Replace incorrect matching constraint that caused the error with an alternative that still has the required constraints on the inline assembly. This is the error message reported by clang: arch/mips/include/asm/checksum.h:285:27: error: unsupported inline asm: input with type '__be32' (aka 'unsigned int') matching output with type 'unsigned short' "0" (htonl(len)), "1" (htonl(proto)), "r" (sum)); ^~~~~~~~~~~~ The changed code can be compiled successfully by both gcc and clang. Signed-off-by: Daniel Sanders <daniel.sanders@imgtec.com> Signed-off-by: Toma Tabacu <toma.tabacu@imgtec.com> Suggested-by: Maciej W. Rozycki <macro@linux-mips.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Markos Chandras <markos.chandras@imgtec.com> Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/9313/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/dp_sub.c')
0 files changed, 0 insertions, 0 deletions