From b9788afec528f03a252d206e7426cb301c162ee5 Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Thu, 4 Oct 2018 16:18:35 +0300 Subject: [PATCH] net/*/base: allow experimental APIs This functionality was missed while adding new drivers to the meson build. Fixes: bfabd06000c0 ("net/avf: support meson build") Fixes: 30d3d0168301 ("net/qede: add in meson build") Signed-off-by: Ilya Maximets Acked-by: Bruce Richardson Reviewed-by: Ferruh Yigit --- drivers/net/avf/base/meson.build | 3 +++ drivers/net/qede/base/meson.build | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/net/avf/base/meson.build b/drivers/net/avf/base/meson.build index 90fd6b445f..6f3d7192e7 100644 --- a/drivers/net/avf/base/meson.build +++ b/drivers/net/avf/base/meson.build @@ -8,6 +8,9 @@ sources = [ error_cflags = ['-Wno-pointer-to-int-cast'] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flag diff --git a/drivers/net/qede/base/meson.build b/drivers/net/qede/base/meson.build index 59b41c895d..71b89737df 100644 --- a/drivers/net/qede/base/meson.build +++ b/drivers/net/qede/base/meson.build @@ -45,6 +45,9 @@ error_cflags = [ '-Wno-pointer-bool-conversion', ] c_args = cflags +if allow_experimental_apis + c_args += '-DALLOW_EXPERIMENTAL_API' +endif foreach flag: error_cflags if cc.has_argument(flag) c_args += flag