From: Thomas Monjalon Date: Mon, 5 Nov 2018 17:37:21 +0000 (+0100) Subject: examples/fips_validation: fix build X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c05e4ab74421e5345f2c50ea0593d48e404cae6a;p=dpdk.git 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 Reviewed-by: Ferruh Yigit Tested-by: Ferruh Yigit --- diff --git a/examples/Makefile b/examples/Makefile index 356fcb1cd0..33fe0e586d 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 0a7e75fc89..85f54cbf0f 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