summaryrefslogtreecommitdiffstats
path: root/driver/rdma.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-02 16:03:57 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-02 16:03:57 +0100
commit01e857cca352e73243d00b62a0c248a35cea6b71 (patch)
tree3d603934cecefac55b987286dbb1539a8acc8b16 /driver/rdma.c
parenteb88dc19b8729fea5dc740e80f6f9d44791570fe (diff)
downloadpcitool-01e857cca352e73243d00b62a0c248a35cea6b71.tar.gz
pcitool-01e857cca352e73243d00b62a0c248a35cea6b71.tar.bz2
pcitool-01e857cca352e73243d00b62a0c248a35cea6b71.tar.xz
pcitool-01e857cca352e73243d00b62a0c248a35cea6b71.zip
Drop support of kernels prior to 3.2 (Debian 7, Ubuntu 12.04)
Diffstat (limited to 'driver/rdma.c')
-rw-r--r--driver/rdma.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/driver/rdma.c b/driver/rdma.c
index 78c6d69..c08eef9 100644
--- a/driver/rdma.c
+++ b/driver/rdma.c
@@ -22,26 +22,26 @@ static unsigned long pcidriver_follow_pte(struct mm_struct *mm, unsigned long ad
pmd_t *pmd;
pte_t *pte;
- spinlock_t *ptl;
+ spinlock_t *ptl;
unsigned long pfn = 0;
pgd = pgd_offset(mm, address);
- if (pgd_none(*pgd) || unlikely(pgd_bad(*pgd)))
- return 0;
-
+ if (pgd_none(*pgd) || unlikely(pgd_bad(*pgd)))
+ return 0;
+
pud = pud_offset(pgd, address);
- if (pud_none(*pud) || unlikely(pud_bad(*pud)))
- return 0;
+ if (pud_none(*pud) || unlikely(pud_bad(*pud)))
+ return 0;
pmd = pmd_offset(pud, address);
- if (pmd_none(*pmd))
- return 0;
+ if (pmd_none(*pmd))
+ return 0;
pte = pte_offset_map_lock(mm, pmd, address, &ptl);
if (!pte_none(*pte))
- pfn = (pte_pfn(*pte) << PAGE_SHIFT);
- pte_unmap_unlock(pte, ptl);
+ pfn = (pte_pfn(*pte) << PAGE_SHIFT);
+ pte_unmap_unlock(pte, ptl);
return pfn;
}