From a1cd6a69c49732b1b24bad2fab34857aaa399a60 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 12 Jan 2022 12:49:48 +0000 Subject: 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. --- executor/style_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'executor') 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 -- cgit mrf-deployment