Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4849969iob; Mon, 9 May 2022 03:09:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8nbI7sOpSCGqvZqT2h51+KQThtRIQv/XONsgEnEfuaM0ZVg+eeGmm6RBS32uQrES3sKjP X-Received: by 2002:a05:6e02:1b09:b0:2cf:3d9f:c3b7 with SMTP id i9-20020a056e021b0900b002cf3d9fc3b7mr6118868ilv.12.1652090960640; Mon, 09 May 2022 03:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652090960; cv=none; d=google.com; s=arc-20160816; b=vt9KNPNVkBweLE75E5E72RD5njn8ZxsSOYqY4jSD27Z/CD0633HNmZL4k269M1G0L7 5nFvQUlFjHI2rWHos6qd9i4IbBHJr1lh+CSpQTErqMWSumrgppwsXEusMDEJgWWEuVlA IzPzTziJh8yqTGCx7fOVFDZTC9V9wV3K13RxMsTyDOPEvIRt7AQw7U9M1/DwbVGfraiA t84IhRDUM+pLzuuDvUTkhzGBQPaqt4NFgBus4hXghPe86Nq5O4L0mJOt2jALqXe5dvWv 4zV4F6dk4zwvuzbDMrKlqH9BySBPdipJdMR9I2azl5Cue50r0GcJyLhDtWG+Ndyy2c1O mtWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=l12WE5mp9PhO1IPRjTjpwmDGOQ7wb/4a5m9y3nBGeOA=; b=w0ntld3luqGIVKQOfEMCrqlCfGlW+x9HvGjp8cHSg2kufKb9dQVmQPVig4DUe/byPz bUaYjuYJdeSCIUjJxroT8B8xRGh9K5kz0vgfQD76kh2tu35ryG2IzPDnEp1igEasz1Ti nBHzN6IzddISXP7kBmbyYwDnixJ87AX7c3D390PRf2bLHYQ5tW1DMYy6NIv5ZBUAFfOm 2iRkteOX/VXq4V5oFCkskHRIQ1iuxRoIcQATXQ4HRXt6F9sAijj/DyNZ5/D8E40eojiA Dgk0TLefsS4N8X4kOxvZ5lZYMpZ4u4mqp8ViIgP73+WA5JGbcXr/DScbbsLaO8aMnLnU BwFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=pvxaieyw; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j7-20020a92ca07000000b002cf2ecd85a9si5876043ils.72.2022.05.09.03.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:09:20 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=pvxaieyw; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B145B235C2B; Mon, 9 May 2022 02:49:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234992AbiEID71 (ORCPT + 99 others); Sun, 8 May 2022 23:59:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234509AbiEID4k (ORCPT ); Sun, 8 May 2022 23:56:40 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DD6A1AF28 for ; Sun, 8 May 2022 20:52:06 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id k126-20020a1ca184000000b003943fd07180so7526025wme.3 for ; Sun, 08 May 2022 20:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l12WE5mp9PhO1IPRjTjpwmDGOQ7wb/4a5m9y3nBGeOA=; b=pvxaieywYUVpcXk0gT3Q+TKVFmt3IoMc62S6eEy129dttwYSJqT9gWsXPzLeg+zFPI PLe7o1fK9XGaF1Qesmimu/v+hehti1bDynbD4bKR/jpI1CYfNzYt6QF2rR7GxoW4FJ9t 0kHZGsLEq7+bVTe4bIW5WVDYJL3zfzvAl63bDcfyCH/k73KZYhfI5iQeSZkRXci8yJCi mS1IfKYGnAxTSiGDmgemHWf/sStPKQ4nK5xMhXbQTNxlK0z2CaBgcTbNJJ3WQ/p4E6hh QjQGB47vH+kz7OiQHuN41JmNpw6cK7sULCd4ksimYRZehABS2BXGakngjKeoHtaH4av5 AklQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l12WE5mp9PhO1IPRjTjpwmDGOQ7wb/4a5m9y3nBGeOA=; b=ru5QqPtDYYJl/5a7sSgpdtoSjHHuLsYfZ4Bh7L/n3e6lWy5xeR5o0mD/FKbc7kvPRE vhegORkaioleG1//KdZ7TPbAvhPg6rnbFQ1xwCMVvjFYFTG7PNayrOHtNbe4I/VhbwOe YttMeldXTkqdpV8c6EYFGO9hL4Y6FU6cwEuI0J9yb/rAGDqx1gB4ShYPXqHQ9i0mWvI6 HaSJhpahcUOEOswLCI/bmwY/5G+akzL7ZiTkElW/psmbnxy4Hv1tC5PTfUU1vNEi+l8R 38hv3iD+IHPe3Ms01v/pljPhjiLsaw5Yi0ZAXDDDpZUuVCtdgPY79eWG/Do9zNkEM0dH FawQ== X-Gm-Message-State: AOAM533O2ElYSHm6i5JI01wTHBIAc/8YWxszkpdViwVvt4/Yn/E8ZVy1 6BWTVmm1grHTaumFUAa0xoIlbsLlw7XF1TLTEv8sgg== X-Received: by 2002:a05:600c:4fd5:b0:394:55ae:32c7 with SMTP id o21-20020a05600c4fd500b0039455ae32c7mr20677459wmq.73.1652068323237; Sun, 08 May 2022 20:52:03 -0700 (PDT) MIME-Version: 1.0 References: <20220508160749.984-1-jszhang@kernel.org> <20220508160749.984-2-jszhang@kernel.org> In-Reply-To: <20220508160749.984-2-jszhang@kernel.org> From: Anup Patel Date: Mon, 9 May 2022 09:21:52 +0530 Message-ID: Subject: Re: [PATCH v2 1/4] riscv: mm: init: make pt_ops_set_[early|late|fixmap] static To: Jisheng Zhang Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Alexandre Ghiti , linux-riscv , "linux-kernel@vger.kernel.org List" , kasan-dev@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 8, 2022 at 9:46 PM Jisheng Zhang wrote: > > These three functions are only used in init.c, so make them static. > Fix W=1 warnings like below: > > arch/riscv/mm/init.c:721:13: warning: no previous prototype for function > 'pt_ops_set_early' [-Wmissing-prototypes] > void __init pt_ops_set_early(void) > ^ > > Signed-off-by: Jisheng Zhang Looks good to me. Reviewed-by: Anup Patel Regards, Anup > --- > arch/riscv/mm/init.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c > index 05ed641a1134..5f3f26dd9f21 100644 > --- a/arch/riscv/mm/init.c > +++ b/arch/riscv/mm/init.c > @@ -849,7 +849,7 @@ static void __init create_fdt_early_page_table(pgd_t *pgdir, uintptr_t dtb_pa) > * MMU is not enabled, the page tables are allocated directly using > * early_pmd/pud/p4d and the address returned is the physical one. > */ > -void __init pt_ops_set_early(void) > +static void __init pt_ops_set_early(void) > { > pt_ops.alloc_pte = alloc_pte_early; > pt_ops.get_pte_virt = get_pte_virt_early; > @@ -871,7 +871,7 @@ void __init pt_ops_set_early(void) > * Note that this is called with MMU disabled, hence kernel_mapping_pa_to_va, > * but it will be used as described above. > */ > -void __init pt_ops_set_fixmap(void) > +static void __init pt_ops_set_fixmap(void) > { > pt_ops.alloc_pte = kernel_mapping_pa_to_va((uintptr_t)alloc_pte_fixmap); > pt_ops.get_pte_virt = kernel_mapping_pa_to_va((uintptr_t)get_pte_virt_fixmap); > @@ -889,7 +889,7 @@ void __init pt_ops_set_fixmap(void) > * MMU is enabled and page table setup is complete, so from now, we can use > * generic page allocation functions to setup page table. > */ > -void __init pt_ops_set_late(void) > +static void __init pt_ops_set_late(void) > { > pt_ops.alloc_pte = alloc_pte_late; > pt_ops.get_pte_virt = get_pte_virt_late; > -- > 2.34.1 >