eBPF-based security platform
treewide: name the guard at the end of every header
Daniel Borkmann717c0b15ffc3
diff --git a/include/shirudo/misc.h b/include/shirudo/misc.hindex 2c03c953..bbafb0db 100644--- a/include/shirudo/misc.h+++ b/include/shirudo/misc.h@@ -42,4 +42,4 @@ static inline double shirudo_trunc(double x)return (double)(__s64)x;}-#endif+#endif /* SHIRUDO_MISC_H */diff --git a/testing/t0043-check-style.sh b/testing/t0043-check-style.shindex 6a3b3440..64818553 100644--- a/testing/t0043-check-style.sh+++ b/testing/t0043-check-style.sh@@ -57,7 +57,8 @@ test_expect_success 'kernel-style C with the SPDX tag of each file type passes'" * to a second line." " */" \" return x + 1; /* trailing */" "}" &&put good.h "/* SPDX-License-Identifier: BSD-2-Clause */" \- "#ifndef GOOD_H" "#define GOOD_H" "" "int good(int x);" "" "#endif" &&+ "#ifndef GOOD_H" "#define GOOD_H" "" "int good(int x);" "" \+ "#endif /* GOOD_H */" &&commit "a: add goodWhy the change is made." &&diff --git a/tools/shirudo-build/compile.h b/tools/shirudo-build/compile.hindex cd074458..9c8a44f5 100644--- a/tools/shirudo-build/compile.h+++ b/tools/shirudo-build/compile.h@@ -12,4 +12,4 @@ int shirudo_build_compile(const char *source, const char *output,const char *vmlinux_h,const char *extra_cflags);-#endif+#endif /* SHIRUDO_BUILD_COMPILE_H */diff --git a/upatches/kernel-obs/file_watch_generated.h b/upatches/kernel-obs/file_watch_generated.hindex f0632511..37be192c 100644--- a/upatches/kernel-obs/file_watch_generated.h+++ b/upatches/kernel-obs/file_watch_generated.h@@ -32,4 +32,4 @@{ .name = "", .parent = "profile.d", .flags = 3 }, \{ .name = "", .parent = "modules-load.d", .flags = 3 }, \}-#endif+#endif /* OBS_FILE_WATCH_GENERATED_H */diff --git a/upatches/kernel-obs/gen_file_watch.py b/upatches/kernel-obs/gen_file_watch.pyindex 1883f727..b743c27e 100644--- a/upatches/kernel-obs/gen_file_watch.py+++ b/upatches/kernel-obs/gen_file_watch.py@@ -73,7 +73,7 @@ def main() -> int:lines.append(f"\t{{ .name = {c_string(name)}, .parent = {c_string(parent)}, "f".flags = {flags} }}, \\")lines.append("}")- lines.append("#endif")+ lines.append("#endif /* OBS_FILE_WATCH_GENERATED_H */")lines.append("")args.output.write_text("\n".join(lines))return 0diff --git a/upatches/kernel-obs/gen_watch.py b/upatches/kernel-obs/gen_watch.pyindex 8c504dc6..2178ee74 100644--- a/upatches/kernel-obs/gen_watch.py+++ b/upatches/kernel-obs/gen_watch.py@@ -107,7 +107,7 @@ def main() -> int:f"#define OBS_WATCH_RULES {len(networks)}u",emit_nodes("V4", build_trie(networks, 4)),emit_nodes("V6", build_trie(networks, 6)),- "#endif",+ "#endif /* OBS_WATCH_GENERATED_H */","",])args.output.write_text(body)diff --git a/upatches/kernel-obs/watch_generated.h b/upatches/kernel-obs/watch_generated.hindex 67958129..1ef26b44 100644--- a/upatches/kernel-obs/watch_generated.h+++ b/upatches/kernel-obs/watch_generated.h@@ -32,4 +32,4 @@{ .child = {[84] = 17}, .terminal = 0 }, \{ .child = {0}, .terminal = 1 }, \}-#endif+#endif /* OBS_WATCH_GENERATED_H */diff --git a/util/version.h b/util/version.hindex 4b191060..969bca00 100644--- a/util/version.h+++ b/util/version.h@@ -13,4 +13,4 @@ extern const char shirudo_version_id[];extern const char shirudo_extraversion[];extern const char shirudo_release_name[];-#endif+#endif /* SHIRUDO_VERSION_H */