mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git
synced 2026-05-02 22:23:46 -04:00
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>
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
* If there is not enough space to store Idle and Young bits in page flags, use
|
||||
* page ext flags instead.
|
||||
*/
|
||||
extern struct page_ext_operations page_idle_ops;
|
||||
|
||||
static inline bool folio_test_young(struct folio *folio)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user