Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752540AbaFXJBm (ORCPT ); Tue, 24 Jun 2014 05:01:42 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:46476 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751360AbaFXJBk (ORCPT ); Tue, 24 Jun 2014 05:01:40 -0400 Message-ID: <53A93E7E.5070103@linaro.org> Date: Tue, 24 Jun 2014 11:01:50 +0200 From: Tomasz Nowicki User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Borislav Petkov CC: rjw@rjwysocki.net, lenb@kernel.org, tony.luck@intel.com, m.chehab@samsung.com, bp@suse.de, linux-edac@vger.kernel.org, x86@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, rric@kernel.org Subject: Re: [PATCH v3 1/5] apei, mce: Factor out APEI architecture specific MCE calls. References: <1402657380-18539-1-git-send-email-tomasz.nowicki@linaro.org> <1402657380-18539-2-git-send-email-tomasz.nowicki@linaro.org> <20140619141758.GD22025@pd.tnic> In-Reply-To: <20140619141758.GD22025@pd.tnic> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19.06.2014 16:17, Borislav Petkov wrote: > On Fri, Jun 13, 2014 at 01:02:56PM +0200, Tomasz Nowicki wrote: >> This commit abstracts MCE calls and provides weak corresponding default >> implementation for those architectures which do not need arch specific >> actions. Each platform willing to do additional architectural actions >> should provides desired function definition. It allows us to avoid wrap >> code into #ifdef in generic code and prevent new platform from introducing >> dummy stub function too. >> >> Initially, there are two APEI arch-specific calls: >> - apei_arch_enable_cmcff() >> - apei_arch_report_mem_error() >> Both interact with MCE driver for X86 architecture. >> >> Signed-off-by: Tomasz Nowicki > > ... > >> diff --git a/arch/x86/kernel/acpi/apei.c b/arch/x86/kernel/acpi/apei.c >> new file mode 100644 >> index 0000000..dca2852 >> --- /dev/null >> +++ b/arch/x86/kernel/acpi/apei.c >> @@ -0,0 +1,56 @@ >> +/* >> + * Arch-specific APEI-related functions. >> + * >> + * This program is free software; you can redistribute it and/or modify >> + * it under the terms of the GNU General Public License as published by >> + * the Free Software Foundation; either version 2 of the License, or >> + * (at your option) any later version. >> + * >> + * This program is distributed in the hope that it will be useful, >> + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> + * GNU General Public License for more details. >> + */ >> + >> +#include >> + >> +#include >> + >> +int apei_arch_enable_cmcff(struct acpi_hest_header *hest_hdr, void *data) > > Arch-specific function names usually use the "arch_" prefix. Otherwise > it looks ok. True, will fix that. Tomasz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/