]> 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)
commit2a73934c2106101f67378ba2bdde5dbe9c8cbe5d
treed720dc613eb5afe1911d9fb446d19d8e096868c7
parent93a4e016920e9d21a600581958aee53b42f2bdb2
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