[PATCH] net/tap/bpf: fix meson warning
Stephen Hemminger
stephen at networkplumber.org
Tue Jun 25 19:06:52 CEST 2024
Meson was warning that run_command was used without check and
the result of that will change in future version.
In this case, the command (uname -m) should be checked.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
drivers/net/tap/bpf/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/tap/bpf/meson.build b/drivers/net/tap/bpf/meson.build
index df497948e2..35d7438c74 100644
--- a/drivers/net/tap/bpf/meson.build
+++ b/drivers/net/tap/bpf/meson.build
@@ -44,7 +44,7 @@ libbpf_include_dir = libbpf.get_variable(pkgconfig : 'includedir')
# The include files <linux/bpf.h> and others include <asm/types.h>
# but <asm/types.h> is not defined for multi-lib environment target.
# Workaround by using include directoriy from the host build environment.
-machine_name = run_command('uname', '-m').stdout().strip()
+machine_name = run_command('uname', '-m', check: true).stdout().strip()
march_include_dir = '/usr/include/' + machine_name + '-linux-gnu'
clang_flags = [
--
2.43.0
More information about the dev
mailing list