* [dpdk-dev] [PATCH] examples/fips_validation: fix build
@ 2018-11-05 17:45 Thomas Monjalon
2018-11-05 17:51 ` Ferruh Yigit
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2018-11-05 17:45 UTC (permalink / raw)
To: dev; +Cc: ferruh.yigit, marko.kovacevic
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: f64adb6714e0 ("examples/fips_validation: support HMAC parsing")
Fixes: 4aaad2995e13 ("examples/fips_validation: support GCM parsing")
Cc: marko.kovacevic@intel.com
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
examples/Makefile | 1 +
examples/fips_validation/main.c | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/examples/Makefile b/examples/Makefile
index 356fcb1cd..33fe0e586 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 0a7e75fc8..85f54cbf0 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
--
2.19.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] examples/fips_validation: fix build
2018-11-05 17:45 [dpdk-dev] [PATCH] examples/fips_validation: fix build Thomas Monjalon
@ 2018-11-05 17:51 ` Ferruh Yigit
2018-11-05 20:06 ` Thomas Monjalon
0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2018-11-05 17:51 UTC (permalink / raw)
To: Thomas Monjalon, dev; +Cc: marko.kovacevic
On 11/5/2018 5:45 PM, Thomas Monjalon wrote:
> 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: f64adb6714e0 ("examples/fips_validation: support HMAC parsing")
> Fixes: 4aaad2995e13 ("examples/fips_validation: support GCM parsing")
> Cc: marko.kovacevic@intel.com
>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] examples/fips_validation: fix build
2018-11-05 17:51 ` Ferruh Yigit
@ 2018-11-05 20:06 ` Thomas Monjalon
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2018-11-05 20:06 UTC (permalink / raw)
To: marko.kovacevic; +Cc: dev, Ferruh Yigit
05/11/2018 18:51, Ferruh Yigit:
> On 11/5/2018 5:45 PM, Thomas Monjalon wrote:
> > 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: f64adb6714e0 ("examples/fips_validation: support HMAC parsing")
> > Fixes: 4aaad2995e13 ("examples/fips_validation: support GCM parsing")
> > Cc: marko.kovacevic@intel.com
> >
> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
>
> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
> Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
Applied
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-11-05 20:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-05 17:45 [dpdk-dev] [PATCH] examples/fips_validation: fix build Thomas Monjalon
2018-11-05 17:51 ` Ferruh Yigit
2018-11-05 20:06 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).