mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
ANDROID: vmscan: Fix sparse warnings for kswapd_threads
Fix the following warning by declaring kswapd_threads as static:
mm/vmscan.c:175:5: sparse: symbol 'kswapd_threads' was not declared.
Fixes: 0d61a651e4 ("ANDROID: vmscan: Support multiple kswapd threads per node")
Bug: 171351667
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I6ccb1e0e0f597fda27ed6893d254a77341139084
This commit is contained in:
parent
6a0a705473
commit
aa8f690d71
|
|
@ -172,7 +172,7 @@ struct scan_control {
|
|||
int vm_swappiness = 60;
|
||||
|
||||
#define DEF_KSWAPD_THREADS_PER_NODE 1
|
||||
int kswapd_threads = DEF_KSWAPD_THREADS_PER_NODE;
|
||||
static int kswapd_threads = DEF_KSWAPD_THREADS_PER_NODE;
|
||||
static int __init kswapd_per_node_setup(char *str)
|
||||
{
|
||||
int tmp;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user