Skip to contentSkip to conversation

examples/fips_validation: fix build

PATCH In review Thomas Monjalon 2 participants 3 messages Nov 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 f64adb6714e0 ("examples/fips_validation: support HMAC parsing")
Fixes 4aaad2995e13 ("examples/fips_validation: support GCM parsing")
---
 examples/Makefile               | 1 +
 examples/fips_validation/main.c | 4 ++++
 2 files changed, 5 insertions(+)
examples/Makefile +1 -0
index 356fcb1cd..33fe0e586 100644
@@ -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
examples/fips_validation/main.c +4 -0
index 0a7e75fc8..85f54cbf0 100644
@@ -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
Signature · 1 line
2.19.0
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 8 lines · Thomas Monjalon

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

Quoted 5 lines
Fixes f64adb6714e0 ("examples/fips_validation: support HMAC parsing")
Fixes 4aaad2995e13 ("examples/fips_validation: support GCM parsing")
author Applied
#2 lore raw

05/11/2018 18:51, Ferruh Yigit:

Quoted 9 lines · Thomas Monjalon
Quoted 8 lines

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

Quoted 8 lines
Quoted 5 lines
Fixes f64adb6714e0 ("examples/fips_validation: support HMAC parsing")
Fixes 4aaad2995e13 ("examples/fips_validation: support GCM parsing")

Applied