]> git.proxmox.com Git - mirror_zfs.git/commitdiff
check-zstd-symbols: also ignore __pfx_ symbols
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Mon, 18 Sep 2023 16:08:41 +0000 (18:08 +0200)
committerGitHub <noreply@github.com>
Mon, 18 Sep 2023 16:08:41 +0000 (09:08 -0700)
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b341b20d648bb7e9a3307c33163e7399f0913e66
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #15282
Closes #15284

module/Makefile.in

index 5b71e1abf79e3b796984caaa97cd1a125c1f1d6b..9b34b3dfaec763c6c4357e1428871c4c16d1b553 100644 (file)
@@ -168,4 +168,4 @@ gen-zstd-symbols:
        for obj in $(addprefix zstd/,$(ZSTD_UPSTREAM_OBJS)); do echo; echo "/* $${obj#zstd/}: */"; @OBJDUMP@ -t $$obj | awk '$$2 == "g" && !/ zfs_/ {print "#define\t" $$6 " zfs_" $$6}' | sort; done >> zstd/include/zstd_compat_wrapper.h
 
 check-zstd-symbols:
-       @OBJDUMP@ -t $(addprefix zstd/,$(ZSTD_UPSTREAM_OBJS)) | awk '/file format/ {print}  $$2 == "g" && !/ zfs_/ {++ret; print}  END {exit ret}'
+       @OBJDUMP@ -t $(addprefix zstd/,$(ZSTD_UPSTREAM_OBJS)) | awk '/file format/ {print}  $$2 == "g" && (!/ zfs_/ && !/ __pfx_zfs_/) {++ret; print}  END {exit ret}'