From patchwork Tue Nov 15 16:41:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xie XiuQi X-Patchwork-Id: 13043985 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2569C433FE for ; Tue, 15 Nov 2022 16:24:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jaZ+e2iAliUg5q1x801LAPcFQZ+Tvffr8ygmQpn+Zdo=; b=MpCQuG0ERyqWA0 PufK0RzHrYH3xKkQiS96gaIwu/tCUBXEAIjtDyXva9Y+zHvF9zSMCdU8OCd2LKmxjF/RuSA6NVZZI rFYXA66h6FvZByUeAelTFXk0+euiCjeE+vAXXVFyh9sXwEX53BE0Tp5rxeFLAKItT+OTTzyCk892z DhXwuG8vKVUkpACLxzxth/eqKLcrCPpwR5iMS65DXeveIBHsUHk7zcxI1PpzM2GoFL6bDagdbkSJv 0gF6bDt/z88UfHlswEPgIDNJETtkE0c/bKKjEce/24SeYaLA7VBKwveSlU9JaD5kLirL81F5f9ZYb ype2Y40rv/zTat0BFVlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouyip-00CiGl-3R; Tue, 15 Nov 2022 16:23:39 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouyil-00CiDv-BM for linux-arm-kernel@lists.infradead.org; Tue, 15 Nov 2022 16:23:37 +0000 Received: from canpemm500001.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NBWbb6wdvzqSMt; Wed, 16 Nov 2022 00:19:39 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by canpemm500001.china.huawei.com (7.192.104.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 16 Nov 2022 00:23:26 +0800 From: Xie XiuQi To: , , , , , , , , , , CC: , , Subject: [PATCH v2 1/2] ACPI: APEI: include missing acpi/apei.h Date: Wed, 16 Nov 2022 00:41:45 +0800 Message-ID: <20221115164146.106005-2-xiexiuqi@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221115164146.106005-1-xiexiuqi@huawei.com> References: <20221115164146.106005-1-xiexiuqi@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500001.china.huawei.com (7.192.104.163) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221115_082335_599957_E658E3E1 X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org kernel test robot reported this warning with 'make W=1': drivers/acpi/apei/apei-base.c:763:12: warning: no previous prototype for 'arch_apei_enable_cmcff' [-Wmissing-prototypes] 763 | int __weak arch_apei_enable_cmcff(struct acpi_hest_header *hest_hdr, | ^~~~~~~~~~~~~~~~~~~~~~ drivers/acpi/apei/apei-base.c:770:13: warning: no previous prototype for 'arch_apei_report_mem_error' [-Wmissing-prototypes] 770 | void __weak arch_apei_report_mem_error(int sev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Include missing acpi/apei.h to avoid this warning. Reported-by: kernel test robot Fixes: 9dae3d0d9e64 ("apei, mce: Factor out APEI architecture specific MCE calls") Signed-off-by: Xie XiuQi --- drivers/acpi/apei/apei-base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/apei/apei-base.c b/drivers/acpi/apei/apei-base.c index f372cf872125..3387372bb911 100644 --- a/drivers/acpi/apei/apei-base.c +++ b/drivers/acpi/apei/apei-base.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include "apei-internal.h"