]> git.baikalelectronics.ru Git - kernel.git/commit
mm: make some vars and functions static or __init
authorTing Liu <liuting.0x7c00@bytedance.com>
Fri, 14 Jan 2022 22:09:28 +0000 (14:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:31 +0000 (16:30 +0200)
commitee0c3e8e84c9490b1d636dae481dc952fdcdde5d
tree103efc6cd003f560fcffbd2e7cbf9a56eeb54c70
parent7d0b264ddca9d6b58387a517ec9720fd45a3c62d
mm: make some vars and functions static or __init

"page_idle_ops" as a global var, but its scope of use within this
document.  So it should be static.

"page_ext_ops" is a var used in the kernel initial phase.  And other
functions are aslo used in the kernel initial phase.  So they should be
__init or __initdata to reclaim memory.

Link: https://lkml.kernel.org/r/20211217095023.67293-1-liuting.0x7c00@bytedance.com
Signed-off-by: Ting Liu <liuting.0x7c00@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/page_idle.h
mm/page_ext.c
mm/page_owner.c