diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-04-12 13:44:20 -0700 |
---|---|---|
committer | Fengguang Wu <fengguang.wu@intel.com> | 2012-04-14 17:37:27 +0800 |
commit | 18cf8cf8bab1296f477ee4dd8f78b5b23c5a192e (patch) | |
tree | 78ce4000085e180d89e85e9363379b55e455b205 | |
parent | 668ce0ac707719d866af7e432e518af7b4c575ad (diff) | |
download | talos-obmc-linux-18cf8cf8bab1296f477ee4dd8f78b5b23c5a192e.tar.gz talos-obmc-linux-18cf8cf8bab1296f477ee4dd8f78b5b23c5a192e.zip |
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: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
-rw-r--r-- | mm/page-writeback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 26adea8ca2e7..9dec97fee375 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -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; |