summaryrefslogtreecommitdiffstats
path: root/arch/hexagon/include/asm
diff options
context:
space:
mode:
authorSid Manning <sidneym@codeaurora.org>2021-04-23 15:06:58 -0500
committerBrian Cain <bcain@codeaurora.org>2021-05-03 11:04:18 -0500
commit788dcee0306e1bdbae1a76d1b3478bb899c5838e (patch)
tree18cfd6a6d60418918b5106678f27e172a157657a /arch/hexagon/include/asm
parent9ccce092fc64d19504fa54de4fd659e279cc92e7 (diff)
downloadlinux-788dcee0306e1bdbae1a76d1b3478bb899c5838e.tar.gz
linux-788dcee0306e1bdbae1a76d1b3478bb899c5838e.tar.bz2
linux-788dcee0306e1bdbae1a76d1b3478bb899c5838e.zip
Hexagon: fix build errors
Fix type-o in ptrace.c. Add missing include: asm/hexagon_vm.h Remove superfluous cast. Replace 'p3_0' with 'preds'. Signed-off-by: Sid Manning <sidneym@codeaurora.org> Add -mlong-calls to build flags. Signed-off-by: Brian Cain <bcain@codeaurora.org> Tested-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'arch/hexagon/include/asm')
-rw-r--r--arch/hexagon/include/asm/timex.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/hexagon/include/asm/timex.h b/arch/hexagon/include/asm/timex.h
index 78338d8ada83..8d4ec76fceb4 100644
--- a/arch/hexagon/include/asm/timex.h
+++ b/arch/hexagon/include/asm/timex.h
@@ -8,6 +8,7 @@
#include <asm-generic/timex.h>
#include <asm/timer-regs.h>
+#include <asm/hexagon_vm.h>
/* Using TCX0 as our clock. CLOCK_TICK_RATE scheduled to be removed. */
#define CLOCK_TICK_RATE TCX0_CLK_RATE
@@ -16,7 +17,7 @@
static inline int read_current_timer(unsigned long *timer_val)
{
- *timer_val = (unsigned long) __vmgettime();
+ *timer_val = __vmgettime();
return 0;
}