From patchwork Tue Aug 6 13:58:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 13754927 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 444D2C3DA64 for ; Tue, 6 Aug 2024 14:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PjmD+pvCazxhFg9yepi1EC7HfUMo2AoHsx89mnn3awk=; b=KygyAtxjjAlx2KdyFlCbgvX/TE 7l4LLR5BwWhjjCDs3DjgjmgEbLDi2qnjbAVScurpYM4Q8NDqbHFmWb+allHm4xBm4QiEK25TiF8I4 i8VMyyjqXs8sjo42qj+uR+iByHiuWavwnFQ9on9WYgosh+JRZfnsYbhQnBvcfmMeUhocmuocep8yd PUsVq2miMPJax1MzZQL0IDJI7rdJYczXcvlSDpBoMaty4L2N5ea//L++YZ+rR36rxcBKH4q5l3ic+ kDqe+INCpZ8ulWG6nkLm2KHV60mW/K19wb190Von6etGTzHwz+A6/GRMRMz2JP7B2QrrPPRZzb+BB RvluFgwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKjx-00000001tZx-0efw; Tue, 06 Aug 2024 14:00:41 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKhy-00000001sxS-1tEJ for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2024 13:58:39 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 92D9A60FC7; Tue, 6 Aug 2024 13:58:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D57DC32786; Tue, 6 Aug 2024 13:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722952717; bh=bpFwOW/Idgv4HfSu/INdfs1drz/1nc8HjbwYZGkDWcs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=uHkxk6lC5/XZGrJy8/XTdn1Qu/XhDeecfgk2EwXEF+oylzTxjKNPEdTikfDdNXA6b UxkbukVT/mXCMln7LcnLJfJnBT8HtXeEvTzBS1lIRTQFuC0Q7K4jlhsPFpXwNWOLrf p7R9Zivjnf+gIgBskWFDE26A+hCM4El/F8I8CeaVbJD2LYogsBfKa5MXKE2GoLNulZ mZsrN4uWamzkHOcQd+kvx/4yOCgMMmfcbWI/MFkJfoHGOR1FFytq1ZZ/UutUPxG2+P gkQIdoufRAHzEXHb7MnIuCOLDp4UgJIjelm6lJDr60PMYRk1v7cS+6g9pAfBmfurg/ zhRqkWu5zPIUA== From: "Rob Herring (Arm)" Date: Tue, 06 Aug 2024 07:58:24 -0600 Subject: [PATCH 3/6] cpufreq: armada-8k: Avoid excessive stack usage MIME-Version: 1.0 Message-Id: <20240806-dt-api-cleanups-v1-3-459e2c840e7d@kernel.org> References: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> In-Reply-To: <20240806-dt-api-cleanups-v1-0-459e2c840e7d@kernel.org> To: "Rafael J. Wysocki" , Viresh Kumar , Kevin Hilman , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Nishanth Menon , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.15-dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_065838_586227_17BF58DD X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In some build configurations (e.g. x86 allmodconfig), 2 cpu_mask variables exceeds the max stack frame size: drivers/cpufreq/armada-8k-cpufreq.c:203:1: error: the frame size of 2128 bytes is larger than 2048 bytes Fix it by making "cpus" static which is fine given that module init is only called once. Signed-off-by: Rob Herring (Arm) --- drivers/cpufreq/armada-8k-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/armada-8k-cpufreq.c b/drivers/cpufreq/armada-8k-cpufreq.c index ce5a5641b6dd..7a979db81f09 100644 --- a/drivers/cpufreq/armada-8k-cpufreq.c +++ b/drivers/cpufreq/armada-8k-cpufreq.c @@ -132,7 +132,7 @@ static int __init armada_8k_cpufreq_init(void) int ret = 0, opps_index = 0, cpu, nb_cpus; struct freq_table *freq_tables; struct device_node *node; - struct cpumask cpus; + static struct cpumask cpus; node = of_find_matching_node_and_match(NULL, armada_8k_cpufreq_of_match, NULL);