[openib-general] [PATCH][SDP] Make sdp compile on 2.6.11

Tom Duffy tduffy at sun.com
Wed Mar 2 10:11:34 PST 2005


Now that 2.6.11 is out, need to make sdp compile with 2.6.11.

Signed-off-by: Tom Duffy <tduffy at sun.com>

Index: drivers/infiniband/ulp/sdp/sdp_iocb.c
===================================================================
--- drivers/infiniband/ulp/sdp/sdp_iocb.c	(revision 1937)
+++ drivers/infiniband/ulp/sdp/sdp_iocb.c	(working copy)
@@ -141,6 +141,7 @@ static int sdp_iocb_page_save(struct sdp
 	struct page *page;
 	unsigned long pfn;
 	pgd_t *pgd;
+	pud_t *pud;
 	pmd_t *pmd;
 	pte_t *ptep;
 	pte_t  pte;
@@ -182,8 +183,12 @@ static int sdp_iocb_page_save(struct sdp
 		pgd = pgd_offset_gate(iocb->mm, addr);
 		if (!pgd || pgd_none(*pgd))
 			break;
+
+		pud = pud_offset(pgd, addr);
+		if (!pud || pud_none(*pud))
+			break;
 		
-		pmd = pmd_offset(pgd, addr);
+		pmd = pmd_offset(pud, addr);
 		if (!pmd || pmd_none(*pmd))
 			break;
 




More information about the general mailing list