Skip to contentSkip to conversation

Add missing () around arguments of pte_index macro

PATCH New Kirill Korotaev 1 participant 1 message Sep 30, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add missing () around arguments of pte_index macro

x86-64: Add missing () around arguments of pte_index macro

Kirill

c45adb520392fc82ffd647c8c9ba57bbf89c7ca2

include/asm-x86_64/pgtable.h +1 -1
@@ -384,7 +384,7 @@ extern inline pte_t pte_modify(pte_t pte
 }
 
 #define pte_index(address) \
-		((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
+		(((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
 #define pte_offset_kernel(dir, address) ((pte_t *) pmd_page_kernel(*(dir)) + \
 			pte_index(address))