From: Fabrice Fontaine Date: Fri, 28 Feb 2020 16:35:42 +0000 (+0100) Subject: src/lxc/raw_syscalls.c: fix sparc assembly X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fstable-3.0;p=thirdparty%2Flxc.git src/lxc/raw_syscalls.c: fix sparc assembly Build of lxc 3.2.1 fails with ultrasparc on: raw_syscalls.c: In function ‘lxc_raw_clone’: raw_syscalls.c:66:3: error: invalid 'asm': invalid operand output code asm volatile( ^~~ Issue has been added with commit b52e8e68a61866da2af86e85905ec850f8a8b7fc which added %g1 instead of %%g1 Fixes: - http://autobuild.buildroot.org/results/17c2319850f02f24da6fbef9656c07f86fdc5a3a Signed-off-by: Fabrice Fontaine --- diff --git a/src/lxc/raw_syscalls.c b/src/lxc/raw_syscalls.c index 7ffb2584b..bfa48c034 100644 --- a/src/lxc/raw_syscalls.c +++ b/src/lxc/raw_syscalls.c @@ -76,7 +76,7 @@ __returns_twice pid_t lxc_raw_clone(unsigned long flags, int *pidfd) * processor status register (psr) is used instead of a * full register. */ - "addx %%g0, 0, %g1" + "addx %%g0, 0, %%g1" : "=r"(g1), "=r"(o0), "=r"(o1), "=r"(o2) /* outputs */ : "r"(g1), "r"(o0), "r"(o1), "r"(o2) /* inputs */ : "%cc"); /* clobbers */