From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932093AbdJUMPZ (ORCPT ); Sat, 21 Oct 2017 08:15:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:44154 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932067AbdJUMPY (ORCPT ); Sat, 21 Oct 2017 08:15:24 -0400 Date: Sat, 21 Oct 2017 14:15:11 +0200 From: Borislav Petkov To: Dongjiu Geng Cc: rjw@rjwysocki.net, lenb@kernel.org, tbaicar@codeaurora.org, will.deacon@arm.com, prarit@redhat.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7] acpi: apei: remove the unused dead-code for SEA/NMI notification type Message-ID: <20171021121511.mr2u7etyfj5t2xra@pd.tnic> References: <20171021103503.23598-1-gengdongjiu@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171021103503.23598-1-gengdongjiu@huawei.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 21, 2017 at 06:35:03PM +0800, 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 > Cc: James Morse > Signed-off-by: Dongjiu Geng > Tested-by: Tyler Baicar > Signed-off-by: Borislav Petkov I gave you Reviewed-by, not Signed-off-by. Before you send more patches, read this: Documentation/process/submitting-patches.rst You can read the whole document but do especially concentrate on sections 11-13, in order to get an idea how the SOB chain and all that patch tagging works. Thx. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --