summaryrefslogtreecommitdiffstats
path: root/arch/hexagon
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2023-11-30 23:58:21 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-12-11 02:21:35 +0100
commit3279333097b22e1bab750d0f40837a097ec765fd (patch)
tree621f68c7c5d789748bd9c151bde610382d51614c /arch/hexagon
parenthexagon: vm_tlb: include asm/tlbflush.h for prototypes (diff)
downloadlinux-3279333097b22e1bab750d0f40837a097ec765fd.tar.xz
linux-3279333097b22e1bab750d0f40837a097ec765fd.zip
hexagon: time: include asm/time.h for prototypes
Clang warns about missing prototypes that are declared in this header: arch/hexagon/kernel/time.c:118:6: warning: no previous prototype for function 'setup_percpu_clockdev' [-Wmissing-prototypes] 118 | void setup_percpu_clockdev(void) | ^ arch/hexagon/kernel/time.c:118:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 118 | void setup_percpu_clockdev(void) | ^ | static arch/hexagon/kernel/time.c:135:6: warning: no previous prototype for function 'ipi_timer' [-Wmissing-prototypes] 135 | void ipi_timer(void) | ^ arch/hexagon/kernel/time.c:135:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 135 | void ipi_timer(void) | ^ | static Link: https://lkml.kernel.org/r/20231130-hexagon-missing-prototypes-v1-8-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/kernel/time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/hexagon/kernel/time.c b/arch/hexagon/kernel/time.c
index febc95714d75..59f00bf54fe9 100644
--- a/arch/hexagon/kernel/time.c
+++ b/arch/hexagon/kernel/time.c
@@ -18,6 +18,7 @@
#include <linux/module.h>
#include <asm/hexagon_vm.h>
+#include <asm/time.h>
#define TIMER_ENABLE BIT(0)