mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
e2aa0c3f8b
Refreshed all patches Dropped upstreamed patches: 522-PCI-aardvark-fix-logic-in-PCI-configuration-read-write-functions.patch 523-PCI-aardvark-set-PIO_ADDR_LS-correctly-in-advk_pcie_rd_conf.patch 525-PCI-aardvark-use-isr1-instead-of-isr0-interrupt-in-legacy-irq-mode.patch 527-PCI-aardvark-fix-PCIe-max-read-request-size-setting.patch updated patches: 524-PCI-aardvark-set-host-and-device-to-the-same-MAX-payload-size.patch 030-USB-serial-option-fix-dwm-158-3g-modem-interface.patch Added new ARM64 symbol: CONFIG_ARM64_ERRATUM_1024718 Compile-tested on: cns3xxx, imx6, mvebu (arm64), x86_64 Runtime-tested on: cns3xxx, imx6, x86_64 Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
43 lines
1.6 KiB
Diff
43 lines
1.6 KiB
Diff
From ac3a5ee699f3baa7654c93a3ffda46be82443344 Mon Sep 17 00:00:00 2001
|
|
From: Markos Chandras <markos.chandras@imgtec.com>
|
|
Date: Wed, 21 Aug 2013 11:47:22 +0100
|
|
Subject: [PATCH 12/27] MIPS: ath79: Avoid using unitialized 'reg' variable
|
|
|
|
Fixes the following build error:
|
|
arch/mips/include/asm/mach-ath79/ath79.h:139:20: error: 'reg' may be used
|
|
uninitialized in this function [-Werror=maybe-uninitialized]
|
|
arch/mips/ath79/common.c:62:6: note: 'reg' was declared here
|
|
In file included from arch/mips/ath79/common.c:20:0:
|
|
arch/mips/ath79/common.c: In function 'ath79_device_reset_clear':
|
|
arch/mips/include/asm/mach-ath79/ath79.h:139:20:
|
|
error: 'reg' may be used uninitialized in this function
|
|
[-Werror=maybe-uninitialized]
|
|
arch/mips/ath79/common.c:90:6: note: 'reg' was declared here
|
|
|
|
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
|
|
Acked-by: Gabor Juhos <juhosg@openwrt.org>
|
|
---
|
|
arch/mips/ath79/common.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/arch/mips/ath79/common.c
|
|
+++ b/arch/mips/ath79/common.c
|
|
@@ -106,7 +106,7 @@ void ath79_device_reset_set(u32 mask)
|
|
else if (soc_is_qca955x())
|
|
reg = QCA955X_RESET_REG_RESET_MODULE;
|
|
else
|
|
- BUG();
|
|
+ panic("Reset register not defined for this SOC");
|
|
|
|
spin_lock_irqsave(&ath79_device_reset_lock, flags);
|
|
t = ath79_reset_rr(reg);
|
|
@@ -134,7 +134,7 @@ void ath79_device_reset_clear(u32 mask)
|
|
else if (soc_is_qca955x())
|
|
reg = QCA955X_RESET_REG_RESET_MODULE;
|
|
else
|
|
- BUG();
|
|
+ panic("Reset register not defined for this SOC");
|
|
|
|
spin_lock_irqsave(&ath79_device_reset_lock, flags);
|
|
t = ath79_reset_rr(reg);
|