summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2018-11-05 18:37:21 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-11-05 21:04:18 +0100
commitc05e4ab74421e5345f2c50ea0593d48e404cae6a (patch)
tree529ffc72d8adbbe828354f599e0d660a06350ac2 /examples
parent047adc17245892198be31c54cf6658080df3dc6d (diff)
downloaddpdk-c05e4ab74421e5345f2c50ea0593d48e404cae6a.zip
dpdk-c05e4ab74421e5345f2c50ea0593d48e404cae6a.tar.gz
dpdk-c05e4ab74421e5345f2c50ea0593d48e404cae6a.tar.xz
examples/fips_validation: fix build
The example was not added to the Makefile and there are some compilation errors: examples/fips_validation/main.c: In function ‘prepare_aead_op’: error: control reaches end of non-void function examples/fips_validation/main.c: In function ‘prepare_auth_op’: error: control reaches end of non-void function Fixes: 3d0fad56b74a ("examples/fips_validation: add crypto FIPS application") Fixes: f64adb6714e0 ("examples/fips_validation: support HMAC parsing") Fixes: 4aaad2995e13 ("examples/fips_validation: support GCM parsing") Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com> Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile1
-rw-r--r--examples/fips_validation/main.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 356fcb1..33fe0e5 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -17,6 +17,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += distributor
DIRS-y += ethtool
DIRS-y += exception_path
DIRS-$(CONFIG_RTE_LIBRTE_EFD) += server_node_efd
+DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += fips_validation
DIRS-$(CONFIG_RTE_LIBRTE_FLOW_CLASSIFY) += flow_classify
DIRS-y += flow_filtering
DIRS-y += helloworld
diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c
index 0a7e75f..85f54cb 100644
--- a/examples/fips_validation/main.c
+++ b/examples/fips_validation/main.c
@@ -459,6 +459,8 @@ prepare_auth_op(void)
}
rte_crypto_op_attach_sym_session(env.op, env.sess);
+
+ return 0;
}
static int
@@ -526,6 +528,8 @@ prepare_aead_op(void)
}
rte_crypto_op_attach_sym_session(env.op, env.sess);
+
+ return 0;
}
static int