From 8819fa7b3ecd39d40492fb87787c6ed2e3197d09 Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Tue, 21 Jan 2025 09:11:34 +0000 Subject: [PATCH] tetragon: Skip generated vmlinux headers in clang-format We keep generated vmlinux headers intact. Signed-off-by: Jiri Olsa --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 060417eabed..4d801910fdf 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ CONTAINER_ENGINE ?= docker DOCKER_IMAGE_TAG ?= latest LOCAL_CLANG ?= 0 LOCAL_CLANG_FORMAT ?= 0 -FORMAT_FIND_FLAGS ?= -name '*.c' -o -name '*.h' -not -path 'bpf/include/vmlinux.h' -not -path 'bpf/include/api.h' -not -path 'bpf/libbpf/*' +FORMAT_FIND_FLAGS ?= -name '*.c' -o -name '*.h' -not -path 'bpf/include/vmlinux.h' -not -path 'bpf/include/api.h' -not -path 'bpf/libbpf/*' -not -path 'bpf/include/vmlinux_generated_*' NOOPT ?= 0 CLANG_IMAGE = quay.io/cilium/clang:b97f5b3d5c38da62fb009f21a53cd42aefd54a2f@sha256:e1c8ed0acd2e24ed05377f2861d8174af28e09bef3bbc79649c8eba165207df0 TESTER_PROGS_DIR = "contrib/tester-progs"