diff options
author | Jeremiah Mahler <[email protected]> | 2014-08-09 00:38:33 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-08-10 09:07:18 +0200 |
commit | 86426851c38d3fe84dee34d7daa71d26c174d409 (patch) | |
tree | 60bd3abf28f79641923cb856eb84b737603868ff /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 7c7f1547b627092737493f0781780af85cc9b1a4 (diff) |
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 <[email protected]>
Signed-off-by: Jeremiah Mahler <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Mel Gorman <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions