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: 148028 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp5645607lji; Tue, 2 Oct 2018 14:17:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV639wtleauFO0Fzb+v76wa4sY3k7/Z94YZNDV5Xl6jaZfFOfxCxXwZer1gJQ/vim+ZrjlSqH X-Received: by 2002:a63:a745:: with SMTP id w5-v6mr15840197pgo.374.1538515031603; Tue, 02 Oct 2018 14:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538515031; cv=none; d=google.com; s=arc-20160816; b=GEN56LGvWF90oMHTSjRXVDUbcTuzC6tnFBB4cRs4LnSjFnIvhFQMnafSqsG+6v7iqz WoUSr9ZNg9NBOmHEhxeQRBNUdY6PSwL0U87iTRQ5cSiDZc4oAxDvK3MP12rMAtcjeR8g ZynHN6zwwz09U5AsPbyx9VRruGVMRZjXqkTzcyATdCZjsoPAmgZBD6ZgSoceXtxpTYCQ /Z+5NO19MUrBemswMuWnAiyfcUC1bme0QsZGdZThsl2cdszoojGBCzxIohejT+Sdggkj dJuWHQJEH9PKfzCdBna9n3xnQoEGRwt6O8cu0+XxEapfZ89AsBCgwED156lfqp5GouhG AD8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=WBSfaOQ5bU38cNk9z09nZlL1qcyzb80Munjzu6TnqEk=; b=VBt8W2MVMVvZqej55x/ZO+/P7gbrCGPfXNbdtBbxhRxi/oqlC0N/ydKSYgr7CPYSgl 0JTyfWOn9xR85zHx1/yJJd7mm8gZt7h/XOGCykx3nic3wjxsd0jVT3UdJST62gomyCJ+ RvyCKrcHtBtyjCijPugtUbGL9Qt5Wz+XFgZzIw3YrYKvvzgSj8jLgApAvRcXP3bF/KqQ 4GxCh7yA1QQ3IT5QfPgSo1Mngc2bO4IlaGqT1J60Het1dnyRsfK91vnphBEY6YVFpTM5 ove0AgxYtrLNx/iJ7paP1jmDES25jwiaHKUAGJI1rj2GF5798iyiB8xyQJFf5IFTQZko gm5A== 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 x32-v6si17736488pld.323.2018.10.02.14.17.11; Tue, 02 Oct 2018 14:17:11 -0700 (PDT) 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 S1728493AbeJCEC2 (ORCPT + 32 others); 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.18.0 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"