diff options
author | Mike Rapoport <[email protected]> | 2018-10-30 15:10:01 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-10-31 08:54:17 -0700 |
commit | 2f770806fd2c3db9616965e57ba60d80f43c827d (patch) | |
tree | b5b7687c0a32a69f46fde6b649f6105925e06b1f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 7e1c4e27928e5f87b9b1eaf06dc31773b2f1e7f1 (diff) |
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.
[[email protected]: use dump_stack() instead of WARN_ON_ONCE for the alignment checks]
Link: http://lkml.kernel.org/r/[email protected]
[[email protected]: add apologetic comment]
Link: http://lkml.kernel.org/r/20181011060850.GA19822@rapoport-lnx
Signed-off-by: Mike Rapoport <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions