From edd98859027a0f970cbccedb4180a7893556350e Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 18 Jun 2024 23:59:02 +0200 Subject: Support for kernels 6.x: compilation tested on Ubuntu 23.10 & 24.04 & operation on Debian 12.5. This still might contain incompatibilities for some earlier kernel versions as I was relaying on ChatGPT to find which exact kernel version was introducing particular changes --- driver/rdma.c | 1 + 1 file changed, 1 insertion(+) (limited to 'driver/rdma.c') diff --git a/driver/rdma.c b/driver/rdma.c index 3b5dcaa..7684842 100644 --- a/driver/rdma.c +++ b/driver/rdma.c @@ -44,6 +44,7 @@ static unsigned long pcidriver_follow_pte(struct mm_struct *mm, unsigned long ad if (pmd_none(*pmd)) return 0; + // Seems not available out of kernel tree. See: https://lkml.indiana.edu/hypermail/linux/kernel/2307.3/08004.html pte = pte_offset_map_lock(mm, pmd, address, &ptl); if (!pte_none(*pte)) pfn = (pte_pfn(*pte) << PAGE_SHIFT); -- cgit v1.2.3