diff options
| author | Matthew Wilcox <[email protected]> | 2021-09-02 21:57:10 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-09-03 16:58:14 +0000 |
| commit | e0dbb2bccf19ce5e870afb420a3d0480c582bb7b (patch) | |
| tree | fababf9b366984b2171605dc3efd04a69ecffd1f /lib/test_vmalloc.c | |
| parent | mm/sparse: set SECTION_NID_SHIFT to 6 (diff) | |
| download | kernel-e0dbb2bccf19ce5e870afb420a3d0480c582bb7b.tar.gz kernel-e0dbb2bccf19ce5e870afb420a3d0480c582bb7b.zip | |
include/linux/mmzone.h: avoid a warning in sparse memory support
cppcheck warns that we're possibly losing information by shifting an int.
It's a false positive, because we don't allow for a NUMA node ID that
large, but if we ever change SECTION_NID_SHIFT, it could become a problem,
and in any case this is usually a legitimate warning. Fix it by adding
the necessary cast, which makes the compiler generate the right code.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Cc: Mike Rapoport <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_vmalloc.c')
0 files changed, 0 insertions, 0 deletions
