diff options
author | Mike Rapoport <rppt@linux.vnet.ibm.com> | 2018-10-30 23:10:01 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-31 16:54:17 +0100 |
commit | 2f770806fd2c3db9616965e57ba60d80f43c827d (patch) | |
tree | b5b7687c0a32a69f46fde6b649f6105925e06b1f /mm/memory_hotplug.c | |
parent | memblock: stop using implicit alignment to SMP_CACHE_BYTES (diff) | |
download | linux-2f770806fd2c3db9616965e57ba60d80f43c827d.tar.xz linux-2f770806fd2c3db9616965e57ba60d80f43c827d.zip |
mm/memblock.c: warn if zero alignment was requested
After updating all memblock users to explicitly specify SMP_CACHE_BYTES
alignment rather than use 0, it is still possible that uncovered users may
sneak in. Add a WARN_ON_ONCE for such cases.
[sfr@canb.auug.org.au: use dump_stack() instead of WARN_ON_ONCE for the alignment checks]
Link: http://lkml.kernel.org/r/20181016131927.6ceba6ab@canb.auug.org.au
[akpm@linux-foundation.org: add apologetic comment]
Link: http://lkml.kernel.org/r/20181011060850.GA19822@rapoport-lnx
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory_hotplug.c')
0 files changed, 0 insertions, 0 deletions