From patchwork Fri Oct 9 08:51:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaoming Ni X-Patchwork-Id: 293162 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 766F0C433E7 for ; Fri, 9 Oct 2020 08:51:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1EEF922275 for ; Fri, 9 Oct 2020 08:51:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732839AbgJIIvV (ORCPT ); Fri, 9 Oct 2020 04:51:21 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56292 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730726AbgJIIvV (ORCPT ); Fri, 9 Oct 2020 04:51:21 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6E0C5FED773E5BDD649E; Fri, 9 Oct 2020 16:51:19 +0800 (CST) Received: from use12-sp2.huawei.com (10.67.189.174) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Fri, 9 Oct 2020 16:51:09 +0800 From: Xiaoming Ni To: , , CC: , Subject: [PATCH] efi:mokvar-table: fix build error Date: Fri, 9 Oct 2020 16:51:06 +0800 Message-ID: <20201009085106.125079-1-nixiaoming@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Originating-IP: [10.67.189.174] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org drivers/firmware/efi/mokvar-table.c:139:5: error: implicit declaration of function 'early_memunmap'; did you mean 'devm_memunmap'? [-Werror=implicit-function-declaration] drivers/firmware/efi/mokvar-table.c:148:9: error: implicit declaration of function 'early_memremap'; did you mean 'devm_memremap'? [-Werror=implicit-function-declaration] add #include to fix this build error Signed-off-by: Xiaoming Ni --- drivers/firmware/efi/mokvar-table.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/efi/mokvar-table.c b/drivers/firmware/efi/mokvar-table.c index 72a9e1736fef..c23d3686f1c7 100644 --- a/drivers/firmware/efi/mokvar-table.c +++ b/drivers/firmware/efi/mokvar-table.c @@ -39,6 +39,7 @@ #include #include #include +#include /* * The LINUX_EFI_MOK_VARIABLE_TABLE_GUID config table is a packed