tomoyo: replace tomoyo_round2() with kmalloc_size_roundup()
authorVlastimil Babka <vbabka@suse.cz>
Tue, 28 Feb 2023 09:35:56 +0000 (10:35 +0100)
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Wed, 1 Mar 2023 14:46:12 +0000 (23:46 +0900)
commitc120c98486c2855d2ae266c2af63d26f61dfcc4e
tree28196d06b82533e0143a66b02be2634a2e1d124a
parentc0927a7a5391f7d8e593e5e50ead7505a23cadf9
tomoyo: replace tomoyo_round2() with kmalloc_size_roundup()

It seems tomoyo has had its own implementation of what
kmalloc_size_roundup() does today. Remove the function tomoyo_round2()
and replace it with kmalloc_size_roundup(). It provides more accurate
results and doesn't contain a while loop.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
security/tomoyo/audit.c
security/tomoyo/common.c
security/tomoyo/common.h