From patchwork Tue Jun 5 11:50:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10448115 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D63D66024A for ; Tue, 5 Jun 2018 11:53:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C32E42901F for ; Tue, 5 Jun 2018 11:53:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B79022909D; Tue, 5 Jun 2018 11:53:00 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 599B62901F for ; Tue, 5 Jun 2018 11:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=r7hvYD5yv0G5QPmtsBCL3GjACwnhuPedivR2owicfsI=; b=jl+ x5J7/D8MOxt6G75hL0+5mZVCLccMlRxEu13OjacmjtR8dChet0NEI9yUc+Gn/z6TBhaM9rIlPsylF 7V1CccFhNum/7XcOCbwd7FQzSuIk8XyGBQ0KEK4J0EFznBZMeWIpO0TGWjh1T48iBY1XIgY6KUL/3 5uUNgIOlg2ti9AGDMFz6d3bW5tVjy+rvY16yZ7f5QkD3040slSduJDnZSpeRd16Uy/UqtmCQ9UE6f /5+1ouo94QX/e8CTS3MX7I7vbYwEoXaNEgHXKMFZ8InSOZiUj2cUEWMbQ/pF3GuKKOrRXiOtIIQa2 EE/AerSxwUjGIW/Kaczty9LaGpU4QMw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQAWA-00009W-PX; Tue, 05 Jun 2018 11:52:50 +0000 Received: from mout.kundenserver.de ([217.72.192.74]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQAW5-00005b-UL for linux-arm-kernel@lists.infradead.org; Tue, 05 Jun 2018 11:52:48 +0000 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0M09nw-1gI86j0wOK-00uFmb; Tue, 05 Jun 2018 13:52:29 +0200 From: Arnd Bergmann To: Catalin Marinas , Will Deacon Subject: [PATCH] arm64: cpu_errata: include required headers Date: Tue, 5 Jun 2018 13:50:07 +0200 Message-Id: <20180605115227.1621618-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:g3wJ6pLnLlG2xO8vlY3O3nRcSQ+Ics8ht1pA1R1IRSHSMlYk5qu x1BhL0N+fO6M3HyrRdIWT1XmjX7UxjyqNoO+W/mpza73pPl3tgSClgKD29jphIwFgQMahmI HwAhl6TCX3lqiyu/7A4Uu1VM716SKv1fT1EDVWk27XKSurfw/9CwFWhS6ClzfmZV/ykCOiR M7UYbBN0klyaGWjZ5pkhg== X-UI-Out-Filterresults: notjunk:1; V01:K0:vqq2hZigar0=:BEiIM0JodeznDqvtBhpapJ lwWvUJwmknfokmN7qd8mgjoTJ8pmEQ3nZyhupo4nIeI3hPzzgs8nBwW9bfWmqFd5dF1Xyj2uc Lbhvtnai1dAFHjtfDe4zX4RBYH4lrRxnYO1QVo2zPoHVXgnnyFSMCa3dKfzqwd97od6AtRDb2 tCgrGjpUcZx9EXYcxM7FoiP07p8N1r1LfjOilSK+HA6Xl2gqntZZcQFKhzoh8tlSiIiKUxj6Y Poaf07Iybu4unV+40TraRN3yCg3llasmJRngqSpnA0OsnE2VTPMsUuw/3LobAbnEXKtTZHSvT U8H/QvpN73hrGbK0ycRB3vscFo37otnXhxLg4n2kDYlDX0T/bwYtHNyUh21nZqXgL/Gq/ZrYc NC7qG8uPcJcq3xRE6Mpcv0xmaOySHwWwOWZ1KUxkorDiqs0mUP8El71Ke9bOF1Bdw0zZmB6/z 7XzHF7Jimb/n4mEGZPoZX08p+wPpLxztzCPMOCncXND6JXdbcpRtTP/CKPSRt/AXzT77wpyPj mxGv5/fqNACbochHQrL9J+TR2G/ZKBs+1j9TRg7oOHUBx6w4/2XMuHcxLxdR1nVOJYQNPkN5T //2h2iuJU/8gjoxGKo84O1v+F3zpSzJw6+n2GV4yw4M6AyqAtZcrKDSc+NecRwuy5Zal5EdbQ ySp0Fq4h1SbP1SIm48wNbhMvtK+faTcQlvWBCPLgI+W5kqFYncYCZwaaN2TiS2u7IpUo= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180605_045246_301862_EB8B70C6 X-CRM114-Status: GOOD ( 10.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Ard Biesheuvel , Marc Zyngier , Suzuki K Poulose , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Dave Martin , Shanker Donthineni MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Without including psci.h and arm-smccc.h, we now get a build failure in some configurations: arch/arm64/kernel/cpu_errata.c: In function 'arm64_update_smccc_conduit': arch/arm64/kernel/cpu_errata.c:278:10: error: 'psci_ops' undeclared (first use in this function); did you mean 'sysfs_ops'? arch/arm64/kernel/cpu_errata.c: In function 'arm64_set_ssbd_mitigation': arch/arm64/kernel/cpu_errata.c:311:3: error: implicit declaration of function 'arm_smccc_1_1_hvc' [-Werror=implicit-function-declaration] arm_smccc_1_1_hvc(ARM_SMCCC_ARCH_WORKAROUND_2, state, NULL); Signed-off-by: Arnd Bergmann --- This showed up only recently, but I have not bisected what caused it. --- arch/arm64/kernel/cpu_errata.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index 2b9a31a6a16a..1d2b6d768efe 100644 --- a/arch/arm64/kernel/cpu_errata.c +++ b/arch/arm64/kernel/cpu_errata.c @@ -16,6 +16,8 @@ * along with this program. If not, see . */ +#include +#include #include #include #include