]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
arm64: fix compiler warning in traps.c
authorBo Yan <byan@nvidia.com>
Wed, 29 Oct 2014 18:17:01 +0000 (11:17 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Wed, 18 Mar 2015 23:11:49 +0000 (16:11 -0700)
The local variable serr_status is only used when built for Denver,
so define it only for Denver.

Change-Id: I012403690b23f85e403f5164451d74eb2f290a91
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/591338
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peng Du <pdu@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
GVS: Gerrit_Virtual_Submit

arch/arm64/kernel/traps.c

index 13b6cde0b94cc0296329362fece228499b138fee..37dc7322f5cc5f217439e9835474e42eb2a883a1 100644 (file)
@@ -479,7 +479,9 @@ misc1:0x%016lx, misc2:0x%016lx\n",
 asmlinkage void bad_mode(struct pt_regs *regs, int reason, unsigned int esr)
 {
        siginfo_t info;
+#ifdef CONFIG_DENVER_CPU
        unsigned long serr_status;
+#endif
        void __user *pc = (void __user *)instruction_pointer(regs);
        console_verbose();