[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <19755019addc4fc3bbac5238157dee2c@huawei.com>
Date: Tue, 21 Apr 2020 15:18:04 +0000
From: Shiju Jose <shiju.jose@...wei.com>
To: Dan Carpenter <dan.carpenter@...cle.com>
CC: "linux-acpi@...r.kernel.org" <linux-acpi@...r.kernel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"rjw@...ysocki.net" <rjw@...ysocki.net>,
"bp@...en8.de" <bp@...en8.de>,
"james.morse@....com" <james.morse@....com>,
"helgaas@...nel.org" <helgaas@...nel.org>,
"lenb@...nel.org" <lenb@...nel.org>,
"tony.luck@...el.com" <tony.luck@...el.com>,
"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"zhangliguang@...ux.alibaba.com" <zhangliguang@...ux.alibaba.com>,
"tglx@...utronix.de" <tglx@...utronix.de>,
Linuxarm <linuxarm@...wei.com>,
Jonathan Cameron <jonathan.cameron@...wei.com>,
tanxiaofei <tanxiaofei@...wei.com>,
yangyicong <yangyicong@...wei.com>
Subject: RE: [RESEND PATCH v7 4/6] ACPI / APEI: Add callback for ARM HW errors
to the GHES notifier
Hi Dan,
>-----Original Message-----
>From: Dan Carpenter [mailto:dan.carpenter@...cle.com]
>Sent: 21 April 2020 15:14
>To: Shiju Jose <shiju.jose@...wei.com>
>Cc: linux-acpi@...r.kernel.org; linux-pci@...r.kernel.org; linux-
>kernel@...r.kernel.org; rjw@...ysocki.net; bp@...en8.de;
>james.morse@....com; helgaas@...nel.org; lenb@...nel.org;
>tony.luck@...el.com; gregkh@...uxfoundation.org;
>zhangliguang@...ux.alibaba.com; tglx@...utronix.de; Linuxarm
><linuxarm@...wei.com>; Jonathan Cameron
><jonathan.cameron@...wei.com>; tanxiaofei <tanxiaofei@...wei.com>;
>yangyicong <yangyicong@...wei.com>
>Subject: Re: [RESEND PATCH v7 4/6] ACPI / APEI: Add callback for ARM HW
>errors to the GHES notifier
>
>On Tue, Apr 21, 2020 at 02:21:34PM +0100, Shiju Jose wrote:
>> static BLOCKING_NOTIFIER_HEAD(ghes_event_notify_list);
>> @@ -670,12 +692,7 @@ static void ghes_do_proc(struct ghes *ghes,
>> pr_warn(GHES_PFX "ghes event queue full\n");
>> break;
>> }
>> -
>> - if (guid_equal(sec_type, &CPER_SEC_PROC_ARM)) {
>> - struct cper_sec_proc_arm *err =
>acpi_hest_get_payload(gdata);
>> -
>> - log_arm_hw_error(err);
>> - } else {
>> + {
>> void *err = acpi_hest_get_payload(gdata);
>
>This is ugly. Just move the "void *err;" declaration to the top of the function
>so we can delete this block.
Ok. I will change.
>
>>
>> log_non_standard_event(sec_type, fru_id, fru_text,
>> --
>
>regards,
>dan carpenter
Thanks,
Shiju
Powered by blists - more mailing lists