riscv: mark some code and data as file-static
authorPaul Walmsley <paul.walmsley@sifive.com>
Thu, 17 Oct 2019 22:08:48 +0000 (15:08 -0700)
committerPaul Walmsley <paul.walmsley@sifive.com>
Mon, 28 Oct 2019 07:46:01 +0000 (00:46 -0700)
commitbf6df5dd25b74400424f3ff5a61edad2fd6904e6
tree48f6f863b4d40e54f9d47b9a85aa0b687bb7c82b
parent6a527b6785ba1d19d6338439352de6c21e8847c3
riscv: mark some code and data as file-static

Several functions and arrays which are only used in the files in which
they are declared are missing "static" qualifiers.  Warnings for these
symbols are reported by sparse:

arch/riscv/kernel/vdso.c:28:18: warning: symbol 'vdso_data' was not declared. Should it be static?
arch/riscv/mm/sifive_l2_cache.c:145:12: warning: symbol 'sifive_l2_init' was not declared. Should it be static?

Resolve these warnings by marking them as static.

This version incorporates feedback from Greentime Hu
<greentime.hu@sifive.com>.

Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Greentime Hu <greentime.hu@sifive.com>
arch/riscv/kernel/vdso.c
arch/riscv/mm/sifive_l2_cache.c