aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2018-12-29 13:02:16 -0500
committerPaul E. McKenney <paulmck@linux.ibm.com>2019-01-25 18:37:11 -0500
commitf90a66d6850e082a41c87e2883030019f42b5096 (patch)
tree69d281c51cd9a25d7f184adee6f157a2f7f4fd4e
parente838a7d66ee2bb7abb46214cb9a3505749e29505 (diff)
rcutorture/nolibc: Fix the clobbered registers in the MIPS syscall definition
A last-minute checkpatch cleanup caused most of list of clobbered registers to be lost in the MIPS syscall definition. Although this code is not yet used on MIPS, it is nevertheless better to fix it before it does get used. Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
-rw-r--r--tools/testing/selftests/rcutorture/bin/nolibc.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/nolibc.h b/tools/testing/selftests/rcutorture/bin/nolibc.h
index f98f5b92d3eb..e8687cd24b8c 100644
--- a/tools/testing/selftests/rcutorture/bin/nolibc.h
+++ b/tools/testing/selftests/rcutorture/bin/nolibc.h
@@ -1006,7 +1006,7 @@ struct sys_stat_struct {
1006 : "=r"(_num), "=r"(_arg4) \ 1006 : "=r"(_num), "=r"(_arg4) \
1007 : "r"(_num) \ 1007 : "r"(_num) \
1008 : "memory", "cc", "at", "v1", "hi", "lo", \ 1008 : "memory", "cc", "at", "v1", "hi", "lo", \
1009 \ 1009 "t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", "t8", "t9" \
1010 ); \ 1010 ); \
1011 _arg4 ? -_num : _num; \ 1011 _arg4 ? -_num : _num; \
1012}) 1012})
@@ -1025,7 +1025,7 @@ struct sys_stat_struct {
1025 : "0"(_num), \ 1025 : "0"(_num), \
1026 "r"(_arg1) \ 1026 "r"(_arg1) \
1027 : "memory", "cc", "at", "v1", "hi", "lo", \ 1027 : "memory", "cc", "at", "v1", "hi", "lo", \
1028 \ 1028 "t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", "t8", "t9" \
1029 ); \ 1029 ); \
1030 _arg4 ? -_num : _num; \ 1030 _arg4 ? -_num : _num; \
1031}) 1031})
@@ -1045,7 +1045,7 @@ struct sys_stat_struct {
1045 : "0"(_num), \ 1045 : "0"(_num), \
1046 "r"(_arg1), "r"(_arg2) \ 1046 "r"(_arg1), "r"(_arg2) \
1047 : "memory", "cc", "at", "v1", "hi", "lo", \ 1047 : "memory", "cc", "at", "v1", "hi", "lo", \
1048 \ 1048 "t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", "t8", "t9" \
1049 ); \ 1049 ); \
1050 _arg4 ? -_num : _num; \ 1050 _arg4 ? -_num : _num; \
1051}) 1051})
@@ -1066,7 +1066,7 @@ struct sys_stat_struct {
1066 : "0"(_num), \ 1066 : "0"(_num), \
1067 "r"(_arg1), "r"(_arg2), "r"(_arg3) \ 1067 "r"(_arg1), "r"(_arg2), "r"(_arg3) \
1068 : "memory", "cc", "at", "v1", "hi", "lo", \ 1068 : "memory", "cc", "at", "v1", "hi", "lo", \
1069 \ 1069 "t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", "t8", "t9" \
1070 ); \ 1070 ); \
1071 _arg4 ? -_num : _num; \ 1071 _arg4 ? -_num : _num; \
1072}) 1072})
@@ -1087,7 +1087,7 @@ struct sys_stat_struct {
1087 : "0"(_num), \ 1087 : "0"(_num), \
1088 "r"(_arg1), "r"(_arg2), "r"(_arg3), "r"(_arg4) \ 1088 "r"(_arg1), "r"(_arg2), "r"(_arg3), "r"(_arg4) \
1089 : "memory", "cc", "at", "v1", "hi", "lo", \ 1089 : "memory", "cc", "at", "v1", "hi", "lo", \
1090 \ 1090 "t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", "t8", "t9" \
1091 ); \ 1091 ); \
1092 _arg4 ? -_num : _num; \ 1092 _arg4 ? -_num : _num; \
1093}) 1093})
@@ -1110,7 +1110,7 @@ struct sys_stat_struct {
1110 : "0"(_num), \ 1110 : "0"(_num), \
1111 "r"(_arg1), "r"(_arg2), "r"(_arg3), "r"(_arg4), "r"(_arg5) \ 1111 "r"(_arg1), "r"(_arg2), "r"(_arg3), "r"(_arg4), "r"(_arg5) \
1112 : "memory", "cc", "at", "v1", "hi", "lo", \ 1112 : "memory", "cc", "at", "v1", "hi", "lo", \
1113 \ 1113 "t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", "t8", "t9" \
1114 ); \ 1114 ); \
1115 _arg4 ? -_num : _num; \ 1115 _arg4 ? -_num : _num; \
1116}) 1116})