From patchwork Tue Oct 2 21:16:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10624045 X-Patchwork-Delegate: andy.shevchenko@gmail.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B263B14BD for ; Tue, 2 Oct 2018 21:17:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1ACB283CF for ; Tue, 2 Oct 2018 21:17:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9502028451; Tue, 2 Oct 2018 21:17:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37A40283CF for ; Tue, 2 Oct 2018 21:17:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725976AbeJCEC2 (ORCPT ); Wed, 3 Oct 2018 00:02:28 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:59183 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbeJCEC1 (ORCPT ); Wed, 3 Oct 2018 00:02:27 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MD9Ox-1fyLMj0RiD-0096jp; Tue, 02 Oct 2018 23:16:52 +0200 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MD9Ox-1fyLMj0RiD-0096jp; Tue, 02 Oct 2018 23:16:52 +0200 From: Arnd Bergmann To: Stuart Hayes , Darren Hart , Andy Shevchenko Cc: Arnd Bergmann , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] firmware: dcdbas: include linux/io.h Date: Tue, 2 Oct 2018 23:16:42 +0200 Message-Id: <20181002211651.2804717-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:YUpQ2hynRTLDMh3eETcXmDqRdExw19YSARWVjOOKA7HKYcjxxWC 5XjZxGoo5SOeHuAV8oKOYGGtknMq1ZCgfzZN7bkhcEQEp9eGqrOv13EW3sY6ld6TGRPjvPz wlHLQfxZTAFSgzGvh+EMm0u3rBgSCf3bbpFgz2ESOBe71AbG9BnvrSOFDa4ikTTg6YVyTEw JEd9SWmXZrmMddyXaVbPA== X-UI-Out-Filterresults: notjunk:1;V01:K0:QMDZ1k1GCGc=:VbbCinFo10uuikBO6LAfXm wFhwa0ppvTsW+V6uiDSfoFdqyI1VUDOPxeWK2N1dE/J1Z9SCRfkuVuakCjl4iMQs5DhM6pn5m whO7DphvS2cQXmsguAp6QsDx7/gP0LU8jakDKdlnJM/EpUU8hVfptp4iuVYzFYIiV7s+SnuDR 1OlJUJsm+3KOFSuj5MPsaAtosK35pCUy5mNUNFECAdonNnx2/NFprFlTQNeMuhjsFSzlo8mfg gJkxgoTHQP1qxQR2qRBgSGJkfjjeTSLKjJwmSQTeN97QeTkeC1UxPw5kdbCJf02RXP5t9Jbyz +BpTF1lv1cxQmJ+4ElWPsjb0scexxLYluy9P7/+MKSbDRCbVhAsH5RCPOIvBkrqnxjRHo7UN1 vy/QKJ+4nabwIayFOP2HpekNQguVQElhqcmV+ognJp6XTvdJyw+Dp5s3lj9hiKGKj+ePKGSA7 dhk2jVO928p/jum2kqQwhgtCyt2EMyjhvpkg6TACNPFwLPdip7gj2I50EmZvfd0nzSWrbj0Vy 9ZQKjXA6w7qCjvfWFpujs59YZe+c64fBGwcl+Dnnpp7UlwD3mi5Wku3FUAgGOPDhz2W+nI7vM KZUZl6BtRwVUp6AbAMkXPmMH4dKJhzAbYXtQiFxPg3QBZD8edWeMubypjqK2L5fYtXMIP5EI0 EhHdFxKs/2C0AoJ6gFsTC6alVAEEXAC09Le35T49doe+lhfuL5Bz5vORWD4Nh2GHCYrU= Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP memremap() is declared in linux/io.h, not in asm/io.h, so we should include that header to avoid build errors: drivers/platform/x86/dcdbas.c: In function 'dcdbas_check_wsmt': drivers/platform/x86/dcdbas.c:572:15: error: implicit declaration of function 'memremap'; did you mean 'ioremap'? [-Werror=implicit-function-declaration] eps_buffer = memremap(eps->smm_comm_buff_addr, remap_size, MEMREMAP_WB); ^~~~~~~~ ioremap drivers/platform/x86/dcdbas.c:572:61: error: 'MEMREMAP_WB' undeclared (first use in this function) eps_buffer = memremap(eps->smm_comm_buff_addr, remap_size, MEMREMAP_WB); ^~~~~~~~~~~ drivers/platform/x86/dcdbas.c:572:61: note: each undeclared identifier is reported only once for each function it appears in drivers/platform/x86/dcdbas.c: In function 'dcdbas_exit': drivers/platform/x86/dcdbas.c:748:3: error: implicit declaration of function 'memunmap'; did you mean 'vm_munmap'? [-Werror=implicit-function-declaration] Fixes: 12c956c4f32e ("firmware: dcdbas: Add support for WSMT ACPI table") Signed-off-by: Arnd Bergmann --- drivers/platform/x86/dcdbas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/dcdbas.c b/drivers/platform/x86/dcdbas.c index ae28e48ff7dc..daa7e3574568 100644 --- a/drivers/platform/x86/dcdbas.c +++ b/drivers/platform/x86/dcdbas.c @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include "dcdbas.h"