From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2] kni: fix build on SLE12 SP3 Date: Fri, 6 Oct 2017 22:42:03 +0100 Message-ID: <9730e482-04b0-a945-a10f-013cce777dae@intel.com> References: <20170829150613.10597-1-ndas@suse.de> <08b26c8d-a239-87b9-cb96-20730f0fb206@intel.com> <6ed1338c-e9b3-6765-b31b-7f1156f31dbd@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org To: Nirmoy Das Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 981992F42 for ; Fri, 6 Oct 2017 23:42:05 +0200 (CEST) In-Reply-To: <6ed1338c-e9b3-6765-b31b-7f1156f31dbd@suse.de> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 9/5/2017 10:55 AM, Nirmoy Das wrote: > > > On 09/04/2017 11:46 AM, Ferruh Yigit wrote: >> On 8/29/2017 4:06 PM, Nirmoy Das wrote: >>> compilation error: >>> build/lib/librte_eal/linuxapp/kni/kni_net.c:215:5: error: >>> ‘struct net_device’ has no member named ‘trans_start’ >>> dev->trans_start = jiffies; >>> >>> Signed-off-by: Nirmoy Das <...> >>> @@ -55,7 +83,9 @@ >>> >>> #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) || \ >>> (defined(RHEL_RELEASE_CODE) && \ >>> - RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 4)) >>> + RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 4)) || \ >>> + (defined(SLE_VERSION_CODE) && \ >> defined check is not required, since SLE_VERSION_CODE always defined [1]. >> >> It can be either: >> a) (SLE_VERSION_CODE && SLE_VERSION_CODE == SLE_VERSION(12, 3, 0)) >> or directly check: >> b) (SLE_VERSION_CODE == SLE_VERSION(12, 3, 0)) > Thanks for your comments I will modify the patch. Hi Nirmoy, Reminder of this patch, would be able to send a new version? Thanks, ferruh >> >>> + SLE_VERSION_CODE == SLE_VERSION(12, 3, 0)) >>> #define HAVE_TRANS_START_HELPER >>> #endif >>> >>> > Regards, > Nirmoy > >