mm: page-writeback.c: local functions should not be exposed globally
Subsystems (2)
PATCH 1/1 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?
---
mm/page-writeback.c +1 -1
@@ -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;
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Fengguang Wu
AppliedQuoted 8 lines · H Hartley Sweeten
The function
global_dirtyable_memoryis 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 H Hartley Sweeten <[email protected]>
Applied, thanks!
Fengguang
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>