]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm: Fix sparse 'tlb_single_page_flush_ceiling' warning and make the variable...
authorJeremiah Mahler <jmmahler@gmail.com>
Sat, 9 Aug 2014 07:38:33 +0000 (00:38 -0700)
committerIngo Molnar <mingo@kernel.org>
Sun, 10 Aug 2014 07:07:18 +0000 (09:07 +0200)
commita74067e83ea349807d7f27992a3fd88f31562e0a
tree60bd3abf28f79641923cb856eb84b737603868ff
parente31c5102b3f5957977970ff3bd5ee342cc8823c3
x86/mm: Fix sparse 'tlb_single_page_flush_ceiling' warning and make the variable read-mostly

A sparse warning is generated about
'tlb_single_page_flush_ceiling' not being declared.

  arch/x86/mm/tlb.c:177:15: warning: symbol
  'tlb_single_page_flush_ceiling' was not declared. Should it be static?

Since it isn't used anywhere outside this file, fix the warning
by making it static.

Also, optimize the use of this variable by adding the
__read_mostly directive, as suggested by David Rientjes.

Suggested-by: David Rientjes <rientjes@google.com>
Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Link: http://lkml.kernel.org/r/1407569913-4035-1-git-send-email-jmmahler@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/tlb.c