From: Bruce Richardson Date: Fri, 29 Jan 2021 16:48:15 +0000 (+0000) Subject: eal: fix MCS lock header include X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3c2cca6a0da17c83716522084357731ab053172e;p=dpdk.git eal: fix MCS lock header include Include 'rte_branch_prediction.h' to get the likely/unlikely macro definitions. Fixes: 2173f3333b61 ("mcslock: add MCS queued lock implementation") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson Reviewed-by: Honnappa Nagarahalli --- diff --git a/lib/librte_eal/include/generic/rte_mcslock.h b/lib/librte_eal/include/generic/rte_mcslock.h index d370bef17a..9f323bd2a2 100644 --- a/lib/librte_eal/include/generic/rte_mcslock.h +++ b/lib/librte_eal/include/generic/rte_mcslock.h @@ -22,6 +22,7 @@ #include #include #include +#include /** * The rte_mcslock_t type.