From patchwork Wed May 31 15:40:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Roberts X-Patchwork-Id: 24905 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id DCC7A567C; Wed, 31 May 2017 17:40:44 +0200 (CEST) Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by dpdk.org (Postfix) with ESMTP id B88692B88 for ; Wed, 31 May 2017 17:40:43 +0200 (CEST) Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3427.houston.hpe.com (Postfix) with ESMTP id DFC9163; Wed, 31 May 2017 15:40:42 +0000 (UTC) Received: from laptop.telco.us.rdlabs.hpecorp.net (unknown [16.79.29.81]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id A1FCF4D; Wed, 31 May 2017 15:40:42 +0000 (UTC) From: Lee Roberts To: ferruh.yigit@intel.com Cc: dev@dpdk.org, Lee Roberts Date: Wed, 31 May 2017 09:40:15 -0600 Message-Id: <1496245215-3859-1-git-send-email-lee.roberts@hpe.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] kni: fix compilation under RHEL 7.4. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix kni compilation under RHEL 7.4. Signed-off-by: Lee Roberts Acked-by: Ferruh Yigit --- lib/librte_eal/linuxapp/kni/compat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/kni/compat.h b/lib/librte_eal/linuxapp/kni/compat.h index d96275a..6a1587b 100644 --- a/lib/librte_eal/linuxapp/kni/compat.h +++ b/lib/librte_eal/linuxapp/kni/compat.h @@ -53,7 +53,9 @@ #define HAVE_SK_ALLOC_KERN_PARAM #endif -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) || \ + (defined(RHEL_RELEASE_CODE) && \ + RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 4)) #define HAVE_TRANS_START_HELPER #endif