diff options
| author | Valdis Kletnieks <[email protected]> | 2019-03-12 07:47:53 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-03-22 12:31:28 +0000 |
| commit | 4fe64a62e04cfb2dc1daab0d8f05d212aa014161 (patch) | |
| tree | 2a98914187ee0d44e27ddd66fa5477106d95c92e /drivers/fpga/fpga-region.c | |
| parent | x86/cpu/cyrix: Remove {get,set}Cx86_old macros used for Cyrix processors (diff) | |
| download | kernel-4fe64a62e04cfb2dc1daab0d8f05d212aa014161.tar.gz kernel-4fe64a62e04cfb2dc1daab0d8f05d212aa014161.zip | |
x86/mm/pti: Make local symbols static
With 'make C=2 W=1', sparse and gcc both complain:
CHECK arch/x86/mm/pti.c
arch/x86/mm/pti.c:84:3: warning: symbol 'pti_mode' was not declared. Should it be static?
arch/x86/mm/pti.c:605:6: warning: symbol 'pti_set_kernel_image_nonglobal' was not declared. Should it be static?
CC arch/x86/mm/pti.o
arch/x86/mm/pti.c:605:6: warning: no previous prototype for 'pti_set_kernel_image_nonglobal' [-Wmissing-prototypes]
605 | void pti_set_kernel_image_nonglobal(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pti_set_kernel_image_nonglobal() is only used locally. 'pti_mode' exists in
drivers/hwtracing/intel_th/pti.c as well, but it's a completely unrelated
local (static) symbol.
Make both static.
Signed-off-by: Valdis Kletnieks <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lkml.kernel.org/r/27680.1552376873@turing-police
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions
