Skip to content

Commit 7a1e9d6

Browse files
committed
examples: remove deprecated +build tags in C source files
Signed-off-by: Timo Beckers <[email protected]>
1 parent 351d819 commit 7a1e9d6

File tree

12 files changed

+13
-11
lines changed

12 files changed

+13
-11
lines changed

.clang-format

+2
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ KeepEmptyLinesAtTheStartOfBlocks: false
1414
TabWidth: 4
1515
UseTab: ForContinuationAndIndentation
1616
ColumnLimit: 1000
17+
# Go compiler comments need to stay unindented.
18+
CommentPragmas: '^go:.*'
1719
...

examples/cgroup_skb/cgroup_skb.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build ignore
1+
//go:build ignore
22

33
#include "common.h"
44

examples/fentry/fentry.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build ignore
1+
//go:build ignore
22

33
#include "common.h"
44

examples/kprobe/kprobe.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build ignore
1+
//go:build ignore
22

33
#include "common.h"
44

examples/kprobe_percpu/kprobe_percpu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build ignore
1+
//go:build ignore
22

33
#include "common.h"
44

examples/kprobepin/kprobe_pin.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build ignore
1+
//go:build ignore
22

33
#include "common.h"
44

examples/ringbuffer/ringbuffer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build ignore
1+
//go:build ignore
22

33
#include "common.h"
44

examples/tcprtt/tcprtt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build ignore
1+
//go:build ignore
22

33
#include "common.h"
44

examples/tcprtt_sockops/tcprtt_sockops.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build ignore
1+
//go:build ignore
22

33
#include "common.h"
44

examples/tracepoint_in_c/tracepoint.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build ignore
1+
//go:build ignore
22

33
#include "common.h"
44

examples/uretprobe/uretprobe.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build ignore
1+
//go:build ignore
22

33
#include "common.h"
44

examples/xdp/xdp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build ignore
1+
//go:build ignore
22

33
#include "bpf_endian.h"
44
#include "common.h"

0 commit comments

Comments
 (0)