linux/mm.h: canonicalize macro PAGE_ALIGNED() definition
Subsystems (2)
PATCH 1/3 linux/mm.h: canonicalize macro PAGE_ALIGNED() definition
From: zijun_hu <[email protected]>
canonicalize macro PAGE_ALIGNED() definition
Signed-off-by zijun_hu <[email protected]>
--- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mm.h +1 -1
@@ -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 · 7 lines
1.9.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>