From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 0A35BA0A02;
	Fri, 15 Jan 2021 12:13:43 +0100 (CET)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 1C485140FC1;
	Fri, 15 Jan 2021 12:12:24 +0100 (CET)
Received: from mga17.intel.com (mga17.intel.com [192.55.52.151])
 by mails.dpdk.org (Postfix) with ESMTP id 552FE140FB9;
 Fri, 15 Jan 2021 12:12:22 +0100 (CET)
IronPort-SDR: AGN9YrxVUNsVmRJOA3cKfi/C5Rzo46FsW6DmpwzeE6OVjuAFbC842GjC2UP9q5zyLQ7D+g8eg6
 D+3R5zViJhFw==
X-IronPort-AV: E=McAfee;i="6000,8403,9864"; a="158307608"
X-IronPort-AV: E=Sophos;i="5.79,349,1602572400"; d="scan'208";a="158307608"
Received: from fmsmga002.fm.intel.com ([10.253.24.26])
 by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 15 Jan 2021 03:12:21 -0800
IronPort-SDR: ylJE25b+18xN84ikVQMBJOc9ENIJUtGLRam1VZmJYgDpiQFA9DVK2h0Fadv1armJV08+ijgUP8
 W0/a/9AVA9Wg==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.79,349,1602572400"; d="scan'208";a="401253053"
Received: from silpixa00399126.ir.intel.com ([10.237.222.4])
 by fmsmga002.fm.intel.com with ESMTP; 15 Jan 2021 03:12:19 -0800
From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Cc: david.marchand@redhat.com, Bruce Richardson <bruce.richardson@intel.com>,
 stable@dpdk.org, Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>,
 Phil Yang <phil.yang@arm.com>, Gavin Hu <gavin.hu@arm.com>,
 Steve Capper <steve.capper@arm.com>
Date: Fri, 15 Jan 2021 11:10:49 +0000
Message-Id: <20210115111052.16437-18-bruce.richardson@intel.com>
X-Mailer: git-send-email 2.27.0
In-Reply-To: <20210115111052.16437-1-bruce.richardson@intel.com>
References: <20210114110606.21142-1-bruce.richardson@intel.com>
 <20210115111052.16437-1-bruce.richardson@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [PATCH v2 17/19] eal: add missing include to mcslock
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

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 <bruce.richardson@intel.com>
---
 lib/librte_eal/include/generic/rte_mcslock.h | 1 +
 1 file changed, 1 insertion(+)

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 <rte_lcore.h>
 #include <rte_common.h>
 #include <rte_pause.h>
+#include <rte_branch_prediction.h>
 
 /**
  * The rte_mcslock_t type.
-- 
2.27.0