Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18cf8cf8 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Fengguang Wu
Browse files

mm: page-writeback.c: local functions should not be exposed globally



The function global_dirtyable_memory is only referenced in this file and
should be marked static to prevent it from being exposed globally.

This quiets the sparse warning:

warning: symbol 'global_dirtyable_memory' was not declared. Should it be static?

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
parent 668ce0ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ static unsigned long highmem_dirtyable_memory(unsigned long total)
 * Returns the global number of pages potentially available for dirty
 * page cache.  This is the base value for the global dirty limits.
 */
unsigned long global_dirtyable_memory(void)
static unsigned long global_dirtyable_memory(void)
{
	unsigned long x;