From nobody Sun May 10 09:55:34 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7DCBC433F5 for ; Tue, 17 May 2022 09:49:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242609AbiEQJtR (ORCPT ); Tue, 17 May 2022 05:49:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234150AbiEQJtO (ORCPT ); Tue, 17 May 2022 05:49:14 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B707AE for ; Tue, 17 May 2022 02:49:13 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4L2WX76253zcmxx; Tue, 17 May 2022 17:48:23 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 17 May 2022 17:49:11 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH -next] powerpc/kaslr_booke: Fix build error Date: Tue, 17 May 2022 17:49:00 +0800 Message-ID: <20220517094900.14900-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/powerpc/mm/nohash/kaslr_booke.c: In function =E2=80=98kaslr_get_cmdlin= e=E2=80=99: arch/powerpc/mm/nohash/kaslr_booke.c:46:2: error: implicit declaration of f= unction =E2=80=98early_init_dt_scan_chosen=E2=80=99; did you mean =E2=80=98= early_init_mmu_secondary=E2=80=99? [-Werror=3Dimplicit-function-declaration] early_init_dt_scan_chosen(boot_command_line); ^~~~~~~~~~~~~~~~~~~~~~~~~ early_init_mmu_secondary arch/powerpc/mm/nohash/kaslr_booke.c: In function =E2=80=98get_initrd_range= =E2=80=99: arch/powerpc/mm/nohash/kaslr_booke.c:210:10: error: implicit declaration of= function =E2=80=98of_read_number=E2=80=99; did you mean =E2=80=98seq_read_= iter=E2=80=99? [-Werror=3Dimplicit-function-declaration] start =3D of_read_number(prop, len / 4); ^~~~~~~~~~~~~~ seq_read_iter Add missing include files to fix this. Signed-off-by: YueHaibing --- arch/powerpc/mm/nohash/kaslr_booke.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/mm/nohash/kaslr_booke.c b/arch/powerpc/mm/nohash/= kaslr_booke.c index 5da604cd2be6..1f3f9fedf1bc 100644 --- a/arch/powerpc/mm/nohash/kaslr_booke.c +++ b/arch/powerpc/mm/nohash/kaslr_booke.c @@ -14,6 +14,8 @@ #include #include #include +#include +#include #include #include #include --=20 2.17.1