summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2017-08-23 20:17:45 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-08-29 15:21:54 +0200
commit2904cdba3e621d4ca0effe61720a04ed9d272c07 (patch)
tree452080f3e6813a0e42575ecf2105f4547346d810 /arch
parentMIPS: generic: Include asm/bootinfo.h for plat_fdt_relocated() (diff)
downloadlinux-2904cdba3e621d4ca0effe61720a04ed9d272c07.tar.xz
linux-2904cdba3e621d4ca0effe61720a04ed9d272c07.zip
MIPS: generic: Include asm/time.h for get_c0_*_int()
arch/mips/generic/irq.c provides implementations of the get_c0_compare_int() & get_c0_perfcount_int() functions, but doesn't include the asm/time.h header which declares them. This leads to warnings from sparse: arch/mips/generic/irq.c:36:5: warning: symbol 'get_c0_perfcount_int' was not declared. Should it be static? arch/mips/generic/irq.c:52:14: warning: symbol 'get_c0_compare_int' was not declared. Should it be static? Fix this by including asm/time.h to get the declarations of get_c0_compare_int() & get_c0_perfcount_int(). Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: linux-mips@linux-mips.org Cc: trivial@kernel.org Patchwork: https://patchwork.linux-mips.org/patch/17167/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/generic/irq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/generic/irq.c b/arch/mips/generic/irq.c
index 14064bdd91dd..efe359ce2576 100644
--- a/arch/mips/generic/irq.c
+++ b/arch/mips/generic/irq.c
@@ -16,6 +16,7 @@
#include <linux/types.h>
#include <asm/irq.h>
+#include <asm/time.h>
int get_c0_fdc_int(void)
{