net/*/base: allow experimental APIs
authorIlya Maximets <i.maximets@samsung.com>
Thu, 4 Oct 2018 13:18:35 +0000 (16:18 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
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 <i.maximets@samsung.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/avf/base/meson.build
drivers/net/qede/base/meson.build

index 90fd6b4..6f3d719 100644 (file)
@@ -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
index 59b41c8..71b8973 100644 (file)
@@ -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