Re: [PATCH v2] kni: fix build on SLE12 SP3
From: Ferruh Yigit <hidden>
Date: 2017-10-06 21:42:05
On 9/5/2017 10:55 AM, Nirmoy Das wrote:
On 09/04/2017 11:46 AM, Ferruh Yigit wrote:quoted
On 8/29/2017 4:06 PM, Nirmoy Das wrote:quoted
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 <redacted>
<...>
quoted
quoted
@@ -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
quoted
quoted
+ SLE_VERSION_CODE == SLE_VERSION(12, 3, 0)) #define HAVE_TRANS_START_HELPER #endifRegards, Nirmoy