Received: by 10.223.176.5 with SMTP id f5csp482591wra; Wed, 7 Feb 2018 02:33:22 -0800 (PST) X-Google-Smtp-Source: AH8x227VnJzh5dUyQlvSXqybzB3opo6yJEdlyAK+CSUUPO61P/oCNqihmNklOY+WEyyJxVwMwg8I X-Received: by 10.101.80.130 with SMTP id r2mr4486119pgp.107.1517999602127; Wed, 07 Feb 2018 02:33:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517999602; cv=none; d=google.com; s=arc-20160816; b=RsdtgHYfKRJOg3VIuU4IMIPDhBiixGnbUkp2NuRaSVpq+W4rIka4ZP2915GpEMDHep gZBRdv8x/MmIr8E5jWUIGdgawbZbSvahZ5V1oJav0/Io5IVhWG1HMwpft3p8ClDlGT4M ObaHdAa5/nmubj7KZbhnCaQywNBCBCRBjXQ82L7o4F8cvNQG/Orw1+9+f0IMkSq8INFH kSDJOxUZdEQ5mOo2HG224sANq7C2hmJj2bMjQ9Mxm69CN4Ye8OTJUNfRRyO4R0bl9mMx 9kUVTno0slW7oOjcl3rJ7vIb0tdLOyOt5AU46d94aU8zePvzYZ6ZjqkqtSa9qbSGhrTy Y+aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=4Gu2Gpv1bJXDPTQ9s+5nLlNLuCQnlZ+23ZRmT++CGEM=; b=NLrFXSgsciy4Am83UlfUHDFpB94pmJ2E/to20qy5zQ9FtUZxdUbDfusTJHIB9VxTBO FnJVjoUha4oVS5l/zLlkXX5Po+NB1qPT0ZK9s5yRVwYg5j3EqMoM40duNjER2RcxriZv B3t/dF6hasw4E4cgX8iEWNSfCGsRia4fOJjBgYXFi4JUtISb4JzGM3sWNH0T0RNqARYJ fHJb8bK2dEFHJGDcUZowSBbIej4EldfxugvGDDKTVye1E0CLLYNPuzG9+IwJtJxEx6T3 lODH+s//XWpttERXrnTre/gSHeEv+yqPt6Xz5pp0UVppHVW6lX7ioeom5Ijo4a/8qzQ+ n6Tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7-v6si890148plo.380.2018.02.07.02.33.08; Wed, 07 Feb 2018 02:33:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753957AbeBGKcJ (ORCPT + 99 others); Wed, 7 Feb 2018 05:32:09 -0500 Received: from mx2.suse.de ([195.135.220.15]:54274 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753794AbeBGKcG (ORCPT ); Wed, 7 Feb 2018 05:32:06 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 100F9ABE9; Wed, 7 Feb 2018 10:32:05 +0000 (UTC) Date: Wed, 7 Feb 2018 11:31:46 +0100 From: Borislav Petkov To: Xie XiuQi Cc: catalin.marinas@arm.com, will.deacon@arm.com, mingo@redhat.com, mark.rutland@arm.com, ard.biesheuvel@linaro.org, james.morse@arm.com, Dave.Martin@arm.com, takahiro.akashi@linaro.org, tbaicar@codeaurora.org, stephen.boyd@linaro.org, julien.thierry@arm.com, shiju.jose@huawei.com, zjzhang@codeaurora.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, wangxiongfeng2@huawei.com, zhengqiang10@huawei.com, gengdongjiu@huawei.com, huawei.libin@huawei.com, wangkefeng.wang@huawei.com, lijinyue@huawei.com, guohanjun@huawei.com, hanjun.guo@linaro.org, cj.chengjian@huawei.com Subject: Re: [PATCH v5 2/3] GHES: add a notify chain for process memory section Message-ID: <20180207103145.GC8944@pd.tnic> References: <1516969885-150532-1-git-send-email-xiexiuqi@huawei.com> <1516969885-150532-3-git-send-email-xiexiuqi@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1516969885-150532-3-git-send-email-xiexiuqi@huawei.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 26, 2018 at 08:31:24PM +0800, Xie XiuQi wrote: > Add a notify chain for process memory section, with > which other modules might do error recovery. > > Signed-off-by: Xie XiuQi > Tested-by: Wang Xiongfeng > Tested-by: Tyler Baicar > --- > drivers/acpi/apei/ghes.c | 10 ++++++++++ > include/acpi/ghes.h | 8 ++++++++ > 2 files changed, 18 insertions(+) > > diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c > index cff671d..1f0ebfb 100644 > --- a/drivers/acpi/apei/ghes.c > +++ b/drivers/acpi/apei/ghes.c > @@ -109,6 +109,9 @@ static inline bool is_hest_type_generic_v2(struct ghes *ghes) > static LIST_HEAD(ghes_hed); > static DEFINE_MUTEX(ghes_list_mutex); > > +ATOMIC_NOTIFIER_HEAD(ghes_mem_err_chain); > +EXPORT_SYMBOL(ghes_mem_err_chain); Definitely not EXPORT_SYMBOL. And certainly not export the notifier head. Have register and unregister functions instead. That is, *if* you can't solve it differently with James. Notifiers should be avoided if possible. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --