Skip to content

Commit 2c4a1f3

Browse files
committed
Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Pull BPF fixes from Alexei Starovoitov - Fix libbpf backward compatibility (Andrii Nakryiko) - Add Stanislav Fomichev as bpf/net reviewer - Fix resolve_btfid build when cross compiling (Suleiman Souhlal) * tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf: MAINTAINERS: Add myself as bpf networking reviewer tools/resolve_btfids: Fix build when cross compiling kernel with clang. libbpf: Handle unsupported mmap-based /sys/kernel/btf/vmlinux correctly
2 parents 403d133 + 9cf1e25 commit 2c4a1f3

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ Srinivas Ramana <[email protected]> <[email protected]>
719719
720720
721721
Stanislav Fomichev <[email protected]> <[email protected]>
722+
Stanislav Fomichev <[email protected]> <[email protected]>
722723
723724
Stéphane Witzmann <[email protected]>
724725

MAINTAINERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4555,6 +4555,7 @@ BPF [NETWORKING] (tcx & tc BPF, sock_addr)
45554555
M: Martin KaFai Lau <[email protected]>
45564556
M: Daniel Borkmann <[email protected]>
45574557
R: John Fastabend <[email protected]>
4558+
R: Stanislav Fomichev <[email protected]>
45584559
45594560
45604561
S: Maintained
@@ -26967,6 +26968,7 @@ M: David S. Miller <[email protected]>
2696726968
M: Jakub Kicinski <[email protected]>
2696826969
M: Jesper Dangaard Brouer <[email protected]>
2696926970
M: John Fastabend <[email protected]>
26971+
R: Stanislav Fomichev <[email protected]>
2697026972
2697126973
2697226974
S: Supported
@@ -26988,6 +26990,7 @@ M: Björn Töpel <[email protected]>
2698826990
M: Magnus Karlsson <[email protected]>
2698926991
M: Maciej Fijalkowski <[email protected]>
2699026992
R: Jonathan Lemon <[email protected]>
26993+
R: Stanislav Fomichev <[email protected]>
2699126994
2699226995
2699326996
S: Maintained

tools/bpf/resolve_btfids/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ endif
1717

1818
# Overrides for the prepare step libraries.
1919
HOST_OVERRIDES := AR="$(HOSTAR)" CC="$(HOSTCC)" LD="$(HOSTLD)" ARCH="$(HOSTARCH)" \
20-
CROSS_COMPILE="" EXTRA_CFLAGS="$(HOSTCFLAGS)"
20+
CROSS_COMPILE="" CLANG_CROSS_FLAGS="" EXTRA_CFLAGS="$(HOSTCFLAGS)"
2121

2222
RM ?= rm
2323
HOSTCC ?= gcc

tools/lib/bpf/btf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,20 +1384,20 @@ static struct btf *btf_parse_raw_mmap(const char *path, struct btf *base_btf)
13841384

13851385
fd = open(path, O_RDONLY);
13861386
if (fd < 0)
1387-
return libbpf_err_ptr(-errno);
1387+
return ERR_PTR(-errno);
13881388

13891389
if (fstat(fd, &st) < 0) {
13901390
err = -errno;
13911391
close(fd);
1392-
return libbpf_err_ptr(err);
1392+
return ERR_PTR(err);
13931393
}
13941394

13951395
data = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
13961396
err = -errno;
13971397
close(fd);
13981398

13991399
if (data == MAP_FAILED)
1400-
return libbpf_err_ptr(err);
1400+
return ERR_PTR(err);
14011401

14021402
btf = btf_new(data, st.st_size, base_btf, true);
14031403
if (IS_ERR(btf))

0 commit comments

Comments
 (0)