]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kernel/fork.c: make max_threads symbol static
authorKefeng Wang <wangkefeng.wang@huawei.com>
Sat, 1 Jun 2019 05:30:12 +0000 (22:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 1 Jun 2019 22:51:31 +0000 (15:51 -0700)
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 <wangkefeng.wang@huawei.com>
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/fork.c

index b2b87d450b80b5e08899b1677848d466a643ead8..75675b9bf6dfd36066336c384e007de312f54004 100644 (file)
 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;