From 29de4694e61ed3780860f6c413e96d2a5c99ac1e Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 24 Oct 2023 18:04:51 +0200 Subject: marvell: fix compilation issues Type: fix Fixes: unknown Change-Id: I81ee03aaea2e1e6ffb9d6ee91db7fb9acd6debb7 Signed-off-by: Damjan Marion --- src/plugins/marvell/pp2/format.c | 1 - src/plugins/marvell/pp2/pp2.c | 1 - src/plugins/marvell/pp2/pp2_api.c | 11 ++++------- 3 files changed, 4 insertions(+), 9 deletions(-) (limited to 'src/plugins/marvell') diff --git a/src/plugins/marvell/pp2/format.c b/src/plugins/marvell/pp2/format.c index 838f5169b05..877010ea561 100644 --- a/src/plugins/marvell/pp2/format.c +++ b/src/plugins/marvell/pp2/format.c @@ -22,7 +22,6 @@ #include #include -#include #include #include diff --git a/src/plugins/marvell/pp2/pp2.c b/src/plugins/marvell/pp2/pp2.c index 071fb5d9d66..7aaa3676eab 100644 --- a/src/plugins/marvell/pp2/pp2.c +++ b/src/plugins/marvell/pp2/pp2.c @@ -22,7 +22,6 @@ #include #include -#include #include #include #include diff --git a/src/plugins/marvell/pp2/pp2_api.c b/src/plugins/marvell/pp2/pp2_api.c index a3672c442d4..c1f3a9e1d1d 100644 --- a/src/plugins/marvell/pp2/pp2_api.c +++ b/src/plugins/marvell/pp2/pp2_api.c @@ -28,6 +28,7 @@ #include #include +#define REPLY_MSG_ID_BASE (pp2->msg_id_base) #include static void @@ -48,12 +49,8 @@ vl_api_mrvl_pp2_create_t_handler (vl_api_mrvl_pp2_create_t * mp) { clib_error_free (args.error); } - /* *INDENT-OFF* */ - REPLY_MACRO2 (VL_API_MRVL_PP2_CREATE_REPLY + pp2->msg_id_base, - ({ - rmp->sw_if_index = ntohl (args.sw_if_index); - })); - /* *INDENT-ON* */ + REPLY_MACRO2 (VL_API_MRVL_PP2_CREATE_REPLY, + ({ rmp->sw_if_index = ntohl (args.sw_if_index); })); } static void @@ -78,7 +75,7 @@ vl_api_mrvl_pp2_delete_t_handler (vl_api_mrvl_pp2_delete_t * mp) mrvl_pp2_delete_if (dif); reply: - REPLY_MACRO (VL_API_MRVL_PP2_DELETE_REPLY + pp2->msg_id_base); + REPLY_MACRO (VL_API_MRVL_PP2_DELETE_REPLY); } #include -- cgit 1.2.3-korg