Skip to contentSkip to conversation

net/tap/bpf: fix meson warning

PATCH Applied Stephen Hemminger 3 participants 3 messages Jun 25, 2024 – Jul 7, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/net/tap/bpf/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/tap/bpf/meson.build +1 -1
index df497948e2..35d7438c74 100644
@@ -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