diff options
author | Nathan Chancellor <nathan@kernel.org> | 2023-11-30 23:58:15 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-11 02:21:33 +0100 |
commit | 600acbea29533db8906ed172b89eb10cd0d5413a (patch) | |
tree | e12ebd29385d72e9307a02a66fe4e3111ed1d0cc /arch/hexagon | |
parent | hexagon: uaccess: remove clear_user_hexagon() (diff) | |
download | linux-600acbea29533db8906ed172b89eb10cd0d5413a.tar.xz linux-600acbea29533db8906ed172b89eb10cd0d5413a.zip |
hexagon: mm: mark paging_init() as static
Clang warns:
arch/hexagon/mm/init.c:89:13: warning: no previous prototype for function 'paging_init' [-Wmissing-prototypes]
89 | void __init paging_init(void)
| ^
arch/hexagon/mm/init.c:89:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
89 | void __init paging_init(void)
| ^
| static
This function is only used within this translation unit, so mark it static
as suggested.
Link: https://lkml.kernel.org/r/20231130-hexagon-missing-prototypes-v1-2-5c34714afe9e@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Brian Cain <bcain@quicinc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/hexagon')
-rw-r--r-- | arch/hexagon/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c index 146115c9de61..f164b377b93b 100644 --- a/arch/hexagon/mm/init.c +++ b/arch/hexagon/mm/init.c @@ -86,7 +86,7 @@ void sync_icache_dcache(pte_t pte) * In this mode, we only have one pg_data_t * structure: contig_mem_data. */ -void __init paging_init(void) +static void __init paging_init(void) { unsigned long max_zone_pfn[MAX_NR_ZONES] = {0, }; |