aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2022-01-12 12:49:48 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-01-13 17:03:14 +0100
commita1cd6a69c49732b1b24bad2fab34857aaa399a60 (patch)
treefb7c61d5dde3047a1ba83eac88997bb68385051a /executor
parent44d1319aab39b23be41fbf75d9d37ef9aaa665f2 (diff)
sys/syz-sysgen: generate possibly missing __NR/SYS defines
As the comiling machine may have a kernel version different from the tested one, not all definitions might be present. Generate sequences of ifndef in defs.h to avoid potential issues. Restrict __NR-related style checking rules to only checking common*.h files.
Diffstat (limited to 'executor')
-rw-r--r--executor/style_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/executor/style_test.go b/executor/style_test.go
index 3bb581886..0bc1c73bd 100644
--- a/executor/style_test.go
+++ b/executor/style_test.go
@@ -65,6 +65,7 @@ if (foo) {
"These should be guarded by #ifndef __NR_foo, but this is dependent on the host " +
"and may break on other machines (after pkg/csource processing).\n" +
"Define sys_foo constants instead.",
+ commonOnly: true,
tests: []string{
`
#ifndef __NR_io_uring_setup