From mboxrd@z Thu Jan 1 00:00:00 1970 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=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 736E6C433E1 for ; Sat, 13 Jun 2020 16:36:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5BFEE2074D for ; Sat, 13 Jun 2020 16:36:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726507AbgFMQgU (ORCPT ); Sat, 13 Jun 2020 12:36:20 -0400 Received: from ispman.iskranet.ru ([62.213.33.10]:52816 "EHLO ispman.iskranet.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726335AbgFMQgS (ORCPT ); Sat, 13 Jun 2020 12:36:18 -0400 X-Greylist: delayed 490 seconds by postgrey-1.27 at vger.kernel.org; Sat, 13 Jun 2020 12:36:17 EDT Received: by ispman.iskranet.ru (Postfix, from userid 8) id 1A54882179C; Sat, 13 Jun 2020 23:28:05 +0700 (KRAT) Received: from himel.orionnet.ru (121.253.33.171.ip.orionnet.ru [171.33.253.121]) (Authenticated sender: asolokha@kb.kras.ru) by ispman.iskranet.ru (Postfix) with ESMTPA id 9306982179C; Sat, 13 Jun 2020 23:28:03 +0700 (KRAT) From: Arseny Solokha To: Michael Ellerman , Jason Yan , linuxppc-dev@lists.ozlabs.org Cc: Scott Wood , Christophe Leroy , linux-kernel@vger.kernel.org, Arseny Solokha , stable@vger.kernel.org Subject: [PATCH] powerpc/fsl_booke/32: fix build with CONFIG_RANDOMIZE_BASE Date: Sat, 13 Jun 2020 23:28:01 +0700 Message-Id: <20200613162801.1946619-1-asolokha@kb.kras.ru> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Building the current 5.8 kernel for a e500 machine with CONFIG_RANDOMIZE_BASE set yields the following failure: arch/powerpc/mm/nohash/kaslr_booke.c: In function 'kaslr_early_init': arch/powerpc/mm/nohash/kaslr_booke.c:387:2: error: implicit declaration of function 'flush_icache_range'; did you mean 'flush_tlb_range'? [-Werror=implicit-function-declaration] Indeed, including asm/cacheflush.h into kaslr_booke.c fixes the build. The issue dates back to the introduction of that file and probably went unnoticed because there's no in-tree defconfig with CONFIG_RANDOMIZE_BASE set. Fixes: 2b0e86cc5de6 ("powerpc/fsl_booke/32: implement KASLR infrastructure") Cc: stable@vger.kernel.org Signed-off-by: Arseny Solokha --- arch/powerpc/mm/nohash/kaslr_booke.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/mm/nohash/kaslr_booke.c b/arch/powerpc/mm/nohash/kaslr_booke.c index 4a75f2d9bf0e..bce0e5349978 100644 --- a/arch/powerpc/mm/nohash/kaslr_booke.c +++ b/arch/powerpc/mm/nohash/kaslr_booke.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include -- 2.27.0