Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1308760ybt; Sun, 14 Jun 2020 18:21:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjcv2FczoWqtk/vspOg08YiMkp1tEfNi5Gshhue/ma/nwpzykU8bjDXKm9Gs/YYm42+H8k X-Received: by 2002:a50:e08c:: with SMTP id f12mr21641412edl.233.1592184070454; Sun, 14 Jun 2020 18:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592184070; cv=none; d=google.com; s=arc-20160816; b=leGtf8FMFHOdYPYKWAS84Ki8Zyvwah5NzYoz+g9o/KLtwZJk5VpvQqG+h0CAPEgTn+ QyOdqAPUGm9KNb8/j3PccdPq01QM2AFDCDQaTPqwhmeJBFjOkXe9eKhTNbdqn5jX6b9C 5nD+SmsB12s0amFXjFjjlLShqe06saFdixEfQawg6q6s10ktYaS8tEPeVA2UTofHhjJ1 TrmBs7rwwnl//d5ft/nxf2PeE93u5q3UyrYrk5dvhVcND2tU/A/2imVrNbX36rlrE8Tb 7vZMX6rlX8O5+TGnEXq5s70CHUuzE2JNVXYSpBXM6oCWRR4BdSLvvC/qNbEpQFg1W1W6 dF+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=W1u+BJ5+ZjF1mJsIS3tGZSneTI6T394M+TeNEPDFY+E=; b=aWEXYjzCAAcat05eFt0SuIMWcs2RVN1J3hulF3fAvEhco6zW8bgnlgYfMX0iIA2+wy LShuHObjwSgaTp5BVkUdZNTnEIUAF/7qBuG2kYvL7Tb1eYzn8efgxaqKQhsYImtIbupv 4IIduec3pzgiQFcqoYvQCYU7gDXUl9E/fsFciwtYtgDlPX53WUYSDGum8WX2/n2kJdpz TiQton2qJX/2pH4Sb/G2BfDVSUH98OwHz8vbebAa5AwavN0fqPh8l7iT0e9Xz29K7PjR jpSg0XwHGYXQxIy/LXwW39TZmhGlJ4zWVozP+liw29TfMjruCP8/vnKwZjBAqxp/nwih VbTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si8053517ejq.493.2020.06.14.18.20.47; Sun, 14 Jun 2020 18:21:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728055AbgFOBTF (ORCPT + 99 others); Sun, 14 Jun 2020 21:19:05 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:42246 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727969AbgFOBTF (ORCPT ); Sun, 14 Jun 2020 21:19:05 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 334B27D8576459A523DB; Mon, 15 Jun 2020 09:19:03 +0800 (CST) Received: from [127.0.0.1] (10.166.213.7) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Mon, 15 Jun 2020 09:19:01 +0800 Subject: Re: [PATCH] powerpc/fsl_booke/32: fix build with CONFIG_RANDOMIZE_BASE To: Arseny Solokha , Michael Ellerman , CC: Scott Wood , Christophe Leroy , , References: <20200613162801.1946619-1-asolokha@kb.kras.ru> From: Jason Yan Message-ID: <48e8cd6c-9128-e8f0-6fd6-0f93b84629ca@huawei.com> Date: Mon, 15 Jun 2020 09:19:00 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <20200613162801.1946619-1-asolokha@kb.kras.ru> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.166.213.7] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2020/6/14 0:28, Arseny Solokha ะด??: > 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(+) > Reviewed-by: Jason Yan