Skip to contentSkip to conversation

linux/mm.h: canonicalize macro PAGE_ALIGNED() definition

PATCH RESEND New zijun_hu 1 participant 1 message Sep 21, 2016

Subsystems (2)
lore
Share & tools
lore

zijun_hu

author
#0 lore raw

PATCH RESEND 1/1 linux/mm.h: canonicalize macro PAGE_ALIGNED() definition

From: zijun_hu <[email protected]>

canonicalize macro PAGE_ALIGNED() definition

---
 include/linux/mm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mm.h +1 -1
index ef815b9..ec68186 100644
@@ -126,7 +126,7 @@ extern int overcommit_kbytes_handler(struct ctl_table *, int, void __user *,
 #define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE)
 
 /* test whether an address (unsigned long or pointer) is aligned to PAGE_SIZE */
-#define PAGE_ALIGNED(addr)	IS_ALIGNED((unsigned long)addr, PAGE_SIZE)
+#define PAGE_ALIGNED(addr)	IS_ALIGNED((unsigned long)(addr), PAGE_SIZE)
 
 /*
  * Linux kernel virtual memory manager primitives.
Signature · 1 line
1.9.1