aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorzijun_hu <[email protected]>2016-10-08 00:02:04 +0000
committerLinus Torvalds <[email protected]>2016-10-08 01:46:30 +0000
commit1061b0d21e16550e7d7893a5deee2e49ea3990ad (patch)
treec2af4ee79f01f670a3a8b395bcef12da61347c5b /fs/proc/array.c
parentmm: remove unnecessary condition in remove_inode_hugepages (diff)
downloadkernel-1061b0d21e16550e7d7893a5deee2e49ea3990ad.tar.gz
kernel-1061b0d21e16550e7d7893a5deee2e49ea3990ad.zip
linux/mm.h: canonicalize macro PAGE_ALIGNED() definition
The macro PAGE_ALIGNED() is prone to cause error because it doesn't follow convention to parenthesize parameter @addr within macro body, for example unsigned long *ptr = kmalloc(...); PAGE_ALIGNED(ptr + 16); for the left parameter of macro IS_ALIGNED(), (unsigned long)(ptr + 16) is desired but the actual one is (unsigned long)ptr + 16. It is fixed by simply canonicalizing macro PAGE_ALIGNED() definition. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: zijun_hu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions