On Thu, Sep 15, 2016 at 08:12:25PM +0100, Jakub Kicinski wrote:
quoted hunk ↗ jump to hunk
Move verifier's internal structures to a header file and
prefix their names with bpf_ to avoid potential namespace
conflicts. Those structures will soon be used by external
analyzers.
Signed-off-by: Jakub Kicinski <redacted>
---
v4:
- separate from adding the analyzer;
- squash with the prefixing patch.
---
include/linux/bpf_verifier.h | 78 +++++++++++++
kernel/bpf/verifier.c | 263 +++++++++++++++++--------------------------
2 files changed, 180 insertions(+), 161 deletions(-)
create mode 100644 include/linux/bpf_verifier.h
diff --git a/include/linux/bpf_verifier.h b/include/linux/bpf_verifier.h
new file mode 100644
index 000000000000..1c0511ef7eaf
--- /dev/null
+++ b/include/linux/bpf_verifier.h
...
+#ifndef _LINUX_BPF_ANALYZER_H
+#define _LINUX_BPF_ANALYZER_H 1
the macro doesn't match the file name.
Other than that
Acked-by: Alexei Starovoitov <ast@kernel.org>