Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2742465rwd; Fri, 26 May 2023 10:30:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7iRw+H53+nmx9bkLgS7IQ5zq0fe/fxujlptYlB8x/cS8XblpJJbAd4z9u6bFMlXVYITgHg X-Received: by 2002:a05:6a00:190f:b0:64d:2841:8380 with SMTP id y15-20020a056a00190f00b0064d28418380mr4217808pfi.22.1685122235174; Fri, 26 May 2023 10:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685122235; cv=none; d=google.com; s=arc-20160816; b=pt854Rmq5qtkYhzvojB+tKaFKRofoMEYPYPoPdqPJCjPuyVs6ykJJm/qEgSqfeUelC WmUO+aOe8jxCAnqS3vcX77J7T+OmbIgxZSb0khjCE6aCgLpCATS4NemPaPCi+ar90m4C e8F9CjGPAoIsa8gQiC+WCbrxgtPKMJO2LzY2kN9LRHaxCxY2sjETrAT2PTsqXNLNUsT3 7TQnTtBUjO1CCKbaGs2oMRvjcqC5E1uF0FN7yfSQk1iqSGClRWiKiSZNhkp3M9vFs9Jm ZRVv0XJRFhmbSDxshCSQ2bIBl3NGJZ3FtXgtwVroKHbTGD9jpawRnC/MqdnPQNhniU7w Tdjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XA8uY+Bv8GGDUgKb1/44wkz56D3q+yBzWYH5Y+MFfgs=; b=LG+/Cm7MMHKF2lCJbskUhMVnL7x5TYv4chg37GIEGFOC71OB37xSF5cpMInRnrNqMn 3AkFgznNWNpKfl11E8Ko4kVC3xDIgO1Gj78cl8HfMFe0tfWPOnHie8BEkPSbMqLW43ka Vcc78B2E9k2gpHpyjX0ICQBR6HyGw0omeZhfbdXdWHFqCXpCmPuoz1LuDs/DdQFzxwTC 4wzCGpkhrFKDxHIEU7xs07l6qoQqhM1wUfNkdcJi4r6Jj78n3Xib91O36xKCOYrh3pga KDKJ3y+Mlk5LJ23KqKC2m691XgOPkXrBf64t9325nLjdnr3bqdF4GiWayLQB2onUxREw iEnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=inb6fwAe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d29-20020a63735d000000b005321c71cab1si3820290pgn.455.2023.05.26.10.30.22; Fri, 26 May 2023 10:30:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=inb6fwAe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242425AbjEZRL0 (ORCPT + 99 others); Fri, 26 May 2023 13:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242337AbjEZRLS (ORCPT ); Fri, 26 May 2023 13:11:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 926F8E55 for ; Fri, 26 May 2023 10:11:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 29AB261648 for ; Fri, 26 May 2023 17:11:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 374DBC433D2; Fri, 26 May 2023 17:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685121074; bh=xGXWKrOp0g9viGaeP46hlIuMnd4eCZ7qokxGpnJ/fzc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=inb6fwAeTMyK2wSbEr0nuGmmPotGctpAFAas68FOu4FXw2az1r0gk6rZbi+5aV0h5 m4OTi/vkC0xVo5GTCgTkRkG73mXt852HxHcds0NLIr1prkeDvnwR35p44PQEvIl6cy yiSGbH8nOzCslfwRqUU068U0GxfMvlzcryYaJZugLD0oW6QzFdR4E6aOzmTF8JuRDS 2E4BuuxBKV+OGh4lFzfjSK7OfQQmJG6g09pKeZsR9d5KkR2MBKUakQsKttJ8oqYShU j0wk75Exd01x45Uaxs8towiqvb/su72IxbpAqoT33JD5OogB3dtjS4/aCddv+IDty7 ib60VxxrBdFdw== From: Jisheng Zhang To: Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Catalin Marinas Subject: [PATCH 2/6] riscv: mm: mark CBO relate initialization funcs as __init Date: Sat, 27 May 2023 00:59:54 +0800 Message-Id: <20230526165958.908-3-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230526165958.908-1-jszhang@kernel.org> References: <20230526165958.908-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 The two functions cbo_get_block_size() and riscv_init_cbo_blocksizes() are only called during booting, mark them as __init. Signed-off-by: Jisheng Zhang --- arch/riscv/mm/cacheflush.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/riscv/mm/cacheflush.c b/arch/riscv/mm/cacheflush.c index fca532ddf3ec..fbc59b3f69f2 100644 --- a/arch/riscv/mm/cacheflush.c +++ b/arch/riscv/mm/cacheflush.c @@ -104,9 +104,9 @@ EXPORT_SYMBOL_GPL(riscv_cbom_block_size); unsigned int riscv_cboz_block_size; EXPORT_SYMBOL_GPL(riscv_cboz_block_size); -static void cbo_get_block_size(struct device_node *node, - const char *name, u32 *block_size, - unsigned long *first_hartid) +static void __init cbo_get_block_size(struct device_node *node, + const char *name, u32 *block_size, + unsigned long *first_hartid) { unsigned long hartid; u32 val; @@ -126,7 +126,7 @@ static void cbo_get_block_size(struct device_node *node, } } -void riscv_init_cbo_blocksizes(void) +void __init riscv_init_cbo_blocksizes(void) { unsigned long cbom_hartid, cboz_hartid; u32 cbom_block_size = 0, cboz_block_size = 0; -- 2.40.1