diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2018-04-05 16:20:26 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-05 21:36:23 -0700 |
commit | 0be70327ec8cf6dd6847cbd8b75ca51be864a6ea (patch) | |
tree | d0e66c101f169a234ce233806d376ed5da400a18 /mm/slab.h | |
parent | 36071a279b4100afe9fbee18727ad78daa307591 (diff) | |
download | linux-0be70327ec8cf6dd6847cbd8b75ca51be864a6ea.tar.bz2 |
slab: make kmalloc_size() return "unsigned int"
kmalloc_size() derives size of kmalloc cache from internal index, which
can't be negative.
Propagate unsignedness a bit.
Link: http://lkml.kernel.org/r/20180305200730.15812-3-adobriyan@gmail.com
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab.h')
0 files changed, 0 insertions, 0 deletions