]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
um: Replace UML_ROUND_UP() with PAGE_ALIGN()
authorTiwei Bie <tiwei.btw@antgroup.com>
Mon, 27 Oct 2025 05:45:18 +0000 (13:45 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 27 Oct 2025 15:37:12 +0000 (16:37 +0100)
commit9c84022c1d1f0cfd8f02fa8e2b275ccd361891d2
tree1225c93e5da6143e6877dad5eabc93653a40a99b
parentde203267483de10bdfc3ec74fac246e879361819
um: Replace UML_ROUND_UP() with PAGE_ALIGN()

Although UML_ROUND_UP() is defined in a shared header file, it
depends on the PAGE_SIZE and PAGE_MASK macros, so it can only be
used in kernel code. Considering its name is not very clear and
its functionality is the same as PAGE_ALIGN(), replace its usages
with a direct call to PAGE_ALIGN() and remove it.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20251027054519.1996090-4-tiwei.bie@linux.dev
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/shared/kern_util.h
arch/um/kernel/mem.c
arch/um/kernel/um_arch.c