PKGBUILDs/core/linux-odroid-xu3/0001-exynos-ss-GCC6-compatibility.patch
2016-12-09 03:02:38 +00:00

44 lines
1.3 KiB
Diff

From 4e2d23b7c5160e772b3a787bb164fe1bca0cc0c7 Mon Sep 17 00:00:00 2001
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Thu, 8 Dec 2016 19:58:12 -0700
Subject: [PATCH 1/2] exynos-ss GCC6 compatibility
---
arch/arm/mach-exynos/exynos-ss.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/arch/arm/mach-exynos/exynos-ss.c b/arch/arm/mach-exynos/exynos-ss.c
index 9ede727..e8c7836 100644
--- a/arch/arm/mach-exynos/exynos-ss.c
+++ b/arch/arm/mach-exynos/exynos-ss.c
@@ -238,6 +238,13 @@ struct exynos_ss_interface {
struct exynos_ss_hook info_hook;
};
+enum ess_cause_emerg_events {
+ CAUSE_INVALID_DUMP = 0x00000000,
+ CAUSE_KERNEL_PANIC = 0x00000001,
+ CAUSE_FORCE_DUMP = 0x0000000D,
+ CAUSE_FORCE_REBOOT = 0x000000FF,
+};
+
extern void (*arm_pm_restart)(char str, const char *cmd);
#if LINUX_VERSION_CODE <= KERNEL_VERSION(3,5,00)
extern void register_hook_logbuf(void (*)(const char));
@@ -493,13 +500,6 @@ static inline void exynos_ss_hook_logbuf(const char *buf, u64 ts_nsec, size_t si
}
#endif
-enum ess_cause_emerg_events {
- CAUSE_INVALID_DUMP = 0x00000000,
- CAUSE_KERNEL_PANIC = 0x00000001,
- CAUSE_FORCE_DUMP = 0x0000000D,
- CAUSE_FORCE_REBOOT = 0x000000FF,
-};
-
static void exynos_ss_scratch_reg(unsigned int val)
{
__raw_writel(val, S5P_VA_SS_SCRATCH);
--
2.10.2