]> git.itanic.dy.fi Git - linux-stable/commit
hexagon: mm: mark paging_init() as static
authorNathan Chancellor <nathan@kernel.org>
Thu, 30 Nov 2023 22:58:15 +0000 (15:58 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 11 Dec 2023 01:21:33 +0000 (17:21 -0800)
commit600acbea29533db8906ed172b89eb10cd0d5413a
treee12ebd29385d72e9307a02a66fe4e3111ed1d0cc
parent014a5c107d0c45e259f87d3168f6a01e3e195637
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>
arch/hexagon/mm/init.c