From: Sangeetha Elumalai <sangeetha.elumalai@timesys.com>
Date: Thu, 10 Sep 2026 11:40:35 +0530

diff --git a/kcompat.h b/kcompat.h
index aa17115..2182f57 100644
--- a/kcompat.h
+++ b/kcompat.h
@@ -386,16 +386,6 @@ static inline unsigned int ena_u64_stats_fetch_begin(const struct u64_stats_sync
 #define writel_relaxed writel
 #endif
 
-#if ( LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) ) \
-	|| (SLE_VERSION_CODE && SLE_VERSION_CODE >= SLE_VERSION(12,0,0)) \
-	|| (RHEL_RELEASE_CODE && RHEL_RELEASE_CODE != RHEL_RELEASE_VERSION(7,0))
-#else
-static inline void netdev_rss_key_fill(void *buffer, size_t len)
-{
-	get_random_bytes(buffer, len);
-}
-#endif
-
 #if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0) ) && \
     !(SLE_VERSION_CODE && SLE_VERSION_CODE >= SLE_VERSION(12,0,0)) && \
     !(RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,2))
@@ -850,7 +840,7 @@ static inline void ena_netif_napi_add(struct net_device *dev,
 
 #if (RHEL_RELEASE_CODE && (RHEL_RELEASE_CODE <= RHEL_RELEASE_VERSION(7, 4))) || \
     (defined(UBUNTU_VERSION_CODE) && UBUNTU_VERSION_CODE < UBUNTU_VERSION(4, 5, 0, 0)) || \
-    (defined(IS_UEK) && !ENA_KERNEL_VERSION_GTE(4, 1, 12, 105, 0, 0))
+    (defined(IS_UEK) && !ENA_KERNEL_VERSION_GTE(4, 1, 12, 105, 0, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
 static inline void dma_unmap_page_attrs(struct device *dev,
 					dma_addr_t addr, size_t size,
 					enum dma_data_direction dir,
diff --git a/kcompat.h b/kcompat.h
index 2182f57..9287e84 100644
--- a/kcompat.h
+++ b/kcompat.h
@@ -407,7 +407,7 @@ static inline void __napi_schedule_irqoff(struct napi_struct *n)
 
 /*****************************************************************************/
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,0,0) \
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) \
 	|| (RHEL_RELEASE_CODE && (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,2))) \
 	|| (defined(UBUNTU_VERSION_CODE) && UBUNTU_VERSION_CODE >= UBUNTU_VERSION(3,19,0,51))
 #else
-- 
2.25.1
