Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7226064rwd; Mon, 19 Jun 2023 20:59:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ44juM208Q2I1WPPKd2yA++BqsBD7ls84t0o1N4Xo/pJgL2gV/q53I8CyatWKQD8WFzoJKt X-Received: by 2002:a05:622a:148c:b0:3fd:e99d:9826 with SMTP id t12-20020a05622a148c00b003fde99d9826mr10278237qtx.33.1687233553091; Mon, 19 Jun 2023 20:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687233553; cv=none; d=google.com; s=arc-20160816; b=vVGtyKsuvhr8s3kjx8dZm+OywkTHJcJ9CizKyvFeijGHKe6NkqhZR2byXmtcrBJla0 OY98ovqwd4NMRkOSRKE0IgfUvTLDBI64VFVqzNjLSmCUaI8lpbhuXWoOUjwc0zXlq0oD IgGlTqppCarMBqlKE4V55bme1MKHV1U6gKL3LBpzfBH8ELH2NhvN3Uc18rsU4a4XWa2P 6Cxr1nWoiVPucqQC6JFTpsn1yAl4zs/UB0w+iBmHON9n67eYfl0VD+e3BrMWXWsdPKH6 ebgDm3SHeEyPMyI6uG6qhzLGxzIrJDvDjxPNfGGJTdUZySYhoH7seb6cxHA6p4hKuLZB mY5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=wAbBFOp61m12HAxaorRKJ30PJDBWTeNmnt4zv7LIA3Q=; b=YLGz0p4Iecw511wnTSrhH7LKA6ajlngMnzEOA5AxzOPWRZCzgnwJgwOQpRLCY3foML FPy5I/qOktu8Kd+J/nC1snfcdn1lI080ajmgHfsUeC+oaAyF276kx1jUMjdIH2X9MD2T Z8vA8GA6YUObhGKqMcQurzLxk0e/wBkjPBfAJaHaHw+Zg0H4XZbgps70Js4FpfukNu4W AOX+SYkVSIboEgS6xBvv3fsjDp1cPBzEfs3B7J3+w/SdGWP+0sB9e2iTJPLCsVYpnQEm TbF4iPy+yJNUaO18rbJhkVo8NbWlGWM81weErXiJpVR0NYRmlpIZs1fez6GjyxuHicaO cBPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a626507000000b00666ef9c4ccasi767586pfb.218.2023.06.19.20.59.00; Mon, 19 Jun 2023 20:59:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230142AbjFTDnn (ORCPT + 99 others); Mon, 19 Jun 2023 23:43:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230087AbjFTDni (ORCPT ); Mon, 19 Jun 2023 23:43:38 -0400 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EBA110CB; Mon, 19 Jun 2023 20:43:35 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0Vla4QdS_1687232610; Received: from 30.240.115.170(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0Vla4QdS_1687232610) by smtp.aliyun-inc.com; Tue, 20 Jun 2023 11:43:31 +0800 Message-ID: <638b32ce-d2a8-2686-dda1-26abb0778bae@linux.alibaba.com> Date: Tue, 20 Jun 2023 11:43:29 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH] ACPI: APEI: mark some functions __init To: Miaohe Lin , rafael@kernel.org Cc: lenb@kernel.org, james.morse@arm.com, tony.luck@intel.com, bp@alien8.de, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230617080708.2002287-1-linmiaohe@huawei.com> Content-Language: en-US From: Shuai Xue In-Reply-To: <20230617080708.2002287-1-linmiaohe@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/6/17 16:07, Miaohe Lin wrote: > hest_esrc_len() and apei_hest_parse() are only called inside __init > section. So mark them __init too. Hi, Miaohe, should ghes_estatus_pool_init also be marked with __init? Thanks. Best Regards, Shuai > > Signed-off-by: Miaohe Lin > --- > drivers/acpi/apei/hest.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/acpi/apei/hest.c b/drivers/acpi/apei/hest.c > index 6aef1ee5e1bd..2d78e808ab8b 100644 > --- a/drivers/acpi/apei/hest.c > +++ b/drivers/acpi/apei/hest.c > @@ -55,7 +55,7 @@ static inline bool is_generic_error(struct acpi_hest_header *hest_hdr) > hest_hdr->type == ACPI_HEST_TYPE_GENERIC_ERROR_V2; > } > > -static int hest_esrc_len(struct acpi_hest_header *hest_hdr) > +static int __init hest_esrc_len(struct acpi_hest_header *hest_hdr) > { > u16 hest_type = hest_hdr->type; > int len; > @@ -88,7 +88,7 @@ static int hest_esrc_len(struct acpi_hest_header *hest_hdr) > > typedef int (*apei_hest_func_t)(struct acpi_hest_header *hest_hdr, void *data); > > -static int apei_hest_parse(apei_hest_func_t func, void *data) > +static int __init apei_hest_parse(apei_hest_func_t func, void *data) > { > struct acpi_hest_header *hest_hdr; > int i, rc, len;