net/tap/bpf: fix meson warning
Subsystems (2)
PATCH 1/1 net/tap/bpf: fix meson warning
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 <[email protected]>
--- drivers/net/tap/bpf/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/tap/bpf/meson.build +1 -1
@@ -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 = [
Signature · 1 line
2.43.0
Quoted 7 lines · Stephen Hemminger
Meson was warning that
run_commandwas 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 <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
Ferruh Yigit
AppliedQuoted 10 lines · Bruce Richardson
Quoted 7 lines · Stephen Hemminger
Meson was warning that
run_commandwas 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 <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
Applied to dpdk-next-net/main, thanks.