diff options
author | zijun_hu <zijun_hu@htc.com> | 2016-10-07 17:02:04 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-07 18:46:30 -0700 |
commit | 1061b0d21e16550e7d7893a5deee2e49ea3990ad (patch) | |
tree | c2af4ee79f01f670a3a8b395bcef12da61347c5b /arch/mips/loongson64/lemote-2f/clock.c | |
parent | 72e2936c04f7d2a4bf87d7f72d3bf11cf91ebb47 (diff) | |
download | blackbird-op-linux-1061b0d21e16550e7d7893a5deee2e49ea3990ad.tar.gz blackbird-op-linux-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/57EA6AE7.7090807@zoho.com
Signed-off-by: zijun_hu <zijun_hu@htc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips/loongson64/lemote-2f/clock.c')
0 files changed, 0 insertions, 0 deletions