linux-mips
[Top] [All Lists]

[PATCH] MIPS: SmartMIPS: Fix build

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] MIPS: SmartMIPS: Fix build
From: Thierry Reding <thierry.reding@gmail.com>
Date: Mon, 7 Oct 2013 17:10:42 +0200
Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=k4hR0ttyb8kXWKkGgZFOwdhnBpcCrLaI5OCcmSdDOb4=; b=d8EMv7Kg7QmiOsVTRKMedmwEV3rYyPw3YGkWx0BDCuFEh04SZcz80MQ0ERi+2ANdm4 4jVgXeSyT+vG1WBDWyo8zris2OrEEB0w4PVpFx0L8KUIIF7jw7ssGg7qolXy/ZoZ5qoY M3bXX5/9pw7oUEELTeTrc1LLMp6r5NqYE0siuO+/AE+BYmdZh4gISgBV1zVkAk2GZSrV zGN5D7/tevma4biZ/mb4eYjyYZuwIussf0GnAWVo4PePJODQOWZRrfydvWUgMyKgyeF1 f7yXo0dxXngLANTQtE0a2InqMbQ1F5H7S4DgWZkK/VyGrnABHhfwbGsJGrYlGrukMX9K vgsw==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
All CONFIG_CPU_HAS_SMARTMIPS #ifdefs have been removed from code, but
the ACX register declaration in struct pt_regs is still protected by it,
causing builds to fail. Remove the #ifdef protection and always declare
the register.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 arch/mips/include/asm/ptrace.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/mips/include/asm/ptrace.h b/arch/mips/include/asm/ptrace.h
index 7bba9da..d47bdce 100644
--- a/arch/mips/include/asm/ptrace.h
+++ b/arch/mips/include/asm/ptrace.h
@@ -33,9 +33,7 @@ struct pt_regs {
        unsigned long cp0_status;
        unsigned long hi;
        unsigned long lo;
-#ifdef CONFIG_CPU_HAS_SMARTMIPS
        unsigned long acx;
-#endif
        unsigned long cp0_badvaddr;
        unsigned long cp0_cause;
        unsigned long cp0_epc;
-- 
1.8.4


<Prev in Thread] Current Thread [Next in Thread>