From: Kefeng Wang Date: Sat, 1 Jun 2019 05:30:12 +0000 (-0700) Subject: kernel/fork.c: make max_threads symbol static X-Git-Tag: v5.4.17~3444^2~14 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8856ae4df3e9b5295ea2da7ad3b00796386454ec;p=arm%2Flinux.git kernel/fork.c: make max_threads symbol static Fix build warning, kernel/fork.c:125:5: warning: symbol 'max_threads' was not declared. Should it be static? Link: http://lkml.kernel.org/r/20190516015118.140561-1-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang Reported-by: Hulk Robot Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/fork.c b/kernel/fork.c index b2b87d450b80..75675b9bf6df 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -123,7 +123,7 @@ unsigned long total_forks; /* Handle normal Linux uptimes. */ int nr_threads; /* The idle threads do not count.. */ -int max_threads; /* tunable limit on nr_threads */ +static int max_threads; /* tunable limit on nr_threads */ DEFINE_PER_CPU(unsigned long, process_counts) = 0;