From: David Hunt Date: Thu, 10 May 2018 07:38:15 +0000 (+0100) Subject: test/pipeline: fix return type of stub miss X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=97d84c7823a3c41c63163d5e70201c0b7fdae1fb;p=dpdk.git test/pipeline: fix return type of stub miss New warning with gcc 8.1: The table_action_stub_miss() function was incorrectly declared as returning a typedef of rte_pipeline_table_action_handler_miss, instead of what it should have been, an int. Changed this to declare the function as returning an int, and now when the action_handler_miss is set to table_action_stub_miss (cast as rte_pipeline_table_action_handler_miss), gcc 8.1 no longer complains about the cast. Fixes: 5205954791cb ("app/test: packet framework unit tests") Cc: stable@dpdk.org Signed-off-by: David Hunt Reviewed-by: Reshma Pattan Acked-by: Pablo de Lara --- diff --git a/test/test/test_table_pipeline.c b/test/test/test_table_pipeline.c index 055a1a4e78..5ec4c5244e 100644 --- a/test/test/test_table_pipeline.c +++ b/test/test/test_table_pipeline.c @@ -69,7 +69,7 @@ rte_pipeline_table_action_handler_hit table_action_stub_hit(struct rte_pipeline *p, struct rte_mbuf **pkts, uint64_t pkts_mask, struct rte_pipeline_table_entry **entry, void *arg); -rte_pipeline_table_action_handler_miss +static int table_action_stub_miss(struct rte_pipeline *p, struct rte_mbuf **pkts, uint64_t pkts_mask, struct rte_pipeline_table_entry **entry, void *arg); @@ -101,7 +101,7 @@ table_action_stub_hit(__attribute__((unused)) struct rte_pipeline *p, return 0; } -rte_pipeline_table_action_handler_miss +static int table_action_stub_miss(struct rte_pipeline *p, __attribute__((unused)) struct rte_mbuf **pkts, uint64_t pkts_mask,