slab: make kmalloc_size() return "unsigned int"
authorAlexey Dobriyan <[email protected]>
Thu, 5 Apr 2018 23:20:26 +0000 (16:20 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Apr 2018 04:36:23 +0000 (21:36 -0700)
commit0be70327ec8cf6dd6847cbd8b75ca51be864a6ea
treed0e66c101f169a234ce233806d376ed5da400a18
parent36071a279b4100afe9fbee18727ad78daa307591
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/[email protected]
Signed-off-by: Alexey Dobriyan <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/slab.h
mm/slab_common.c