aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-11-10 21:54:37 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2021-11-12 16:32:52 +0100
commit0afefce7b7d6ac6f7f4489b6c0b9d06f8be2f5a6 (patch)
tree041b37340a6d0f7de15c496b9095553eedac7587 /sys/linux
parent0dd854679a8119610343853c6d9229d1d041fde0 (diff)
sys: remove confusing comments that fake directives
It's a somewhat common mistake to write comments instead of directives: #include <foo> #define FOO BAR because that's how it's done in C. In preparation for warning about such cases remove all existing comments that fake directives.
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/dev_infiniband_rdma.txt1
-rw-r--r--sys/linux/sys.txt39
2 files changed, 19 insertions, 21 deletions
diff --git a/sys/linux/dev_infiniband_rdma.txt b/sys/linux/dev_infiniband_rdma.txt
index 8375cb591..72178cbc7 100644
--- a/sys/linux/dev_infiniband_rdma.txt
+++ b/sys/linux/dev_infiniband_rdma.txt
@@ -31,7 +31,6 @@ type ah_handle int32
type mr_lkey int32
type qp_number int32
-# defines
define IB_USER_VERBS_EX_CMD_QUERY_DEVICE 0x80000001
define IB_USER_VERBS_EX_CMD_CREATE_FLOW 0x80000032
define IB_USER_VERBS_EX_CMD_DESTROY_FLOW 0x80000033
diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt
index 39ae0501c..2b2756ea5 100644
--- a/sys/linux/sys.txt
+++ b/sys/linux/sys.txt
@@ -1303,23 +1303,22 @@ _ = KCOV_INIT_TRACE, KCOV_ENABLE, KCOV_DISABLE, KCOV_TRACE_PC, KCOV_TRACE_CMP, P
# Hardcode KCOV_REMOTE_ENABLE value for amd64 until new kcov patches reach mainline.
define KCOV_REMOTE_ENABLE 1075340134
-# Not yet implemented syscalls
-#define __NR_umask 95
-#define __NR_vhangup 153
-#define __NR__sysctl 156
-#define __NR_adjtimex 159
-#define __NR_swapon 167
-#define __NR_swapoff 168
-#define __NR_quotactl 179
-#define __NR_nfsservctl 180
-#define __NR_getcpu 309
-
-# Probably no sense in calling there.
-# Also affect system-wide state, so not reproducble anyway.
-#define __NR_gettimeofday 96
-#define __NR_settimeofday 164
-#define __NR_reboot 169
-#define __NR_sethostname 170
-#define __NR_setdomainname 171
-#define __NR_sched_get_priority_max 146
-#define __NR_sched_get_priority_min 147
+# Not yet implemented syscalls:
+# umask
+# vhangup
+# _sysctl
+# adjtimex
+# swapon
+# swapoff
+# nfsservctl
+# getcpu
+
+# Probably no sense in calling these.
+# Also affect system-wide state, so not reproducible anyway.
+# gettimeofday
+# settimeofday
+# reboot
+# sethostname
+# setdomainname
+# sched_get_priority_max
+# sched_get_priority_min