[PATCH v5 1/2] acpi: apei: remove the unused dead-code for SEA/NMI notification type

Tyler Baicar tbaicar at codeaurora.org
Tue Oct 17 07:06:39 PDT 2017


On 10/17/2017 4:02 AM, Dongjiu Geng wrote:
> For the SEA notification, the two functions ghes_sea_add() and
> ghes_sea_remove() are only called when CONFIG_ACPI_APEI_SEA
> is defined. If not, it will return errors in the ghes_probe()
> and not continue. If the probe is failed, the ghes_sea_remove()
> also has no chance to be called. Hence, remove the unnecessary
> handling when CONFIG_ACPI_APEI_SEA is not defined.
>
> For the NMI notification, it has the same issue as SEA notification,
> so also remove the unused dead-code for it.
>
> Cc: Tyler Baicar <tbaicar at codeaurora.org>
> Cc: James Morse <james.morse at arm.com>
> Signed-off-by: Dongjiu Geng <gengdongjiu at huawei.com>
Tested-by: Tyler Baicar <tbaicar at codeaurora.org>

I've verified v5 of this series testing the SEA path.

Thanks,
Tyler



More information about the linux-arm-kernel mailing list