]> git.baikalelectronics.ru Git - kernel.git/commit
lib/genalloc.c: change return type to unsigned long for bitmap_set_ll
authorHuang Shijie <sjhuang@iluvatar.ai>
Fri, 26 Feb 2021 01:21:17 +0000 (17:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:04 +0000 (09:41 -0800)
commite875dbdb320eb4332ad5ced59c0262e9d27a7586
treed720dc613eb5afe1911d9fb446d19d8e096868c7
parent23032d9612854bb24dbd43f95deff6fbb4a0c63e
lib/genalloc.c: change return type to unsigned long for bitmap_set_ll

Just as bitmap_clear_ll(), change return type to unsigned long
for bitmap_set_ll to avoid the possible overflow in future.

Link: https://lkml.kernel.org/r/20210105031644.2771-1-sjhuang@iluvatar.ai
Signed-off-by: Huang Shijie <sjhuang@iluvatar.ai>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/genalloc.c