All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
To: Borislav Petkov <bp@alien8.de>
Cc: <tglx@linutronix.de>, <mingo@redhat.com>, <hpa@zytor.com>,
	<tony.luck@intel.com>, <slaoub@gmail.com>, <luto@amacapital.net>,
	<x86@kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-edac@vger.kernel.org>
Subject: Re: [PATCH V3 1/2] x86, mce, severities: Add AMD severities function
Date: Tue, 24 Mar 2015 10:02:33 -0500	[thread overview]
Message-ID: <55117C89.6080609@amd.com> (raw)
In-Reply-To: <20150324083039.GA11525@pd.tnic>

On 3/24/2015 3:30 AM, Borislav Petkov wrote:
> On Mon, Mar 23, 2015 at 10:42:52AM -0500, Aravind Gopalakrishnan wrote:
>>   
>> +/* keeping mce_severity_amd in sync with AMD error scope heirarchy table */
> Which table do you mean?
>
> I changed it to:
>
> /*
>   * See AMD Error Scope Hierarchy table in a newer BKDG. For example
>   * 49125_15h_Models_30h-3Fh_BKDG.pdf, section "RAS Features"
>   */

Yes, this is the one I meant.
Thanks.

> to explicitly name it.
>
>> +static int mce_severity_amd(struct mce *m, enum context ctx)
>> +{
>> +	enum context ctx = error_context(m);
> arch/x86/kernel/cpu/mcheck/mce-severity.c: In function ‘mce_severity_amd’:
> arch/x86/kernel/cpu/mcheck/mce-severity.c:192:15: error: ‘ctx’ redeclared as different kind of symbol
>    enum context ctx = error_context(m);
>                 ^
> arch/x86/kernel/cpu/mcheck/mce-severity.c:190:57: note: previous definition of ‘ctx’ was here
>   static int mce_severity_amd(struct mce *m, enum context ctx)
>                                                           ^
> make[4]: *** [arch/x86/kernel/cpu/mcheck/mce-severity.o] Error 1
> make[3]: *** [arch/x86/kernel/cpu/mcheck] Error 2
> make[2]: *** [arch/x86/kernel/cpu] Error 2
> make[1]: *** [arch/x86/kernel] Error 2
> make: *** [arch/x86] Error 2
> make: *** Waiting for unfinished jobs....
>
> I fixed it up.

Sorry about that.
That line should be in [patch 2/2] and I mistakenly committed it as part 
of this patch.

It didn't show up on my builds as I had build tested after applying both 
patches.

But there is a different problem now.
The second patch won't apply cleanly on top of your fix-

error: while searching for:
}

/* keeping mce_severity_amd in sync with AMD error scope heirarchy table */
static int mce_severity_amd(struct mce *m, enum context ctx)
{
         enum context ctx = error_context(m);
         /* Processor Context Corrupt, no need to fumble too much, die! */

error: patch failed: arch/x86/kernel/cpu/mcheck/mce-severity.c:187

I think the clean way to fix this would be to move the line to [patch 2/2].
Besides, we would need a new patch 2 anyway as the patch application 
would fail due to changes to the comment line.

Shall I do that and resend?

Thanks,
-Aravind.


  reply	other threads:[~2015-03-24 15:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23 15:42 [PATCH V3 0/2] Rework mce_severity Aravind Gopalakrishnan
2015-03-23 15:42 ` [PATCH V3 1/2] x86, mce, severities: Add AMD severities function Aravind Gopalakrishnan
2015-03-24  8:30   ` Borislav Petkov
2015-03-24 15:02     ` Aravind Gopalakrishnan [this message]
2015-03-24 15:18       ` Borislav Petkov
2015-03-24 15:23         ` Aravind Gopalakrishnan
2015-03-24 16:03           ` Borislav Petkov
2015-03-23 15:42 ` [PATCH V3 2/2] x86, mce, severities: Define mce_severity function pointer Aravind Gopalakrishnan
2015-03-23 21:54 ` [PATCH V3 0/2] Rework mce_severity Luck, Tony

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55117C89.6080609@amd.com \
    --to=aravind.gopalakrishnan@amd.com \
    --cc=bp@alien8.de \
    --cc=hpa@zytor.com \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=mingo@redhat.com \
    --cc=slaoub@gmail.com \
    --cc=tglx@linutronix.de \
    --cc=tony.luck@intel.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.