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
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();