Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1389752lqp; Fri, 22 Mar 2024 13:24:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVeLey3YG9ZSa0MiZvZ6uN4puWh1J4lRdN3EeUYfKlFzUh9P9IsegC32pMcimxDfcsMKrMHMlpK7hNyG8+J8wkBgs4TtbHPbhhauvTQ+g== X-Google-Smtp-Source: AGHT+IHdwukPY/I2wDJF21INkdeV0MKY1/4DdAaSWO4ILVGfqLmNOPDNW+s3hJYA8ygqbx/gTnJQ X-Received: by 2002:a17:902:ecd1:b0:1dd:7c2e:a31c with SMTP id a17-20020a170902ecd100b001dd7c2ea31cmr849945plh.50.1711139086239; Fri, 22 Mar 2024 13:24:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711139086; cv=pass; d=google.com; s=arc-20160816; b=xhl1J4rg7ah8e2+Mu5D2kBvSvhn5Kb6wl6jKy5M52pR1HFbKoVJ4z9bE+aG6u/fGrW 6KuEYizxhKYaPsvZvcSBRn44n18UacdM7ROGvm3LIfMj4hxTiPp+TpY+douZ+gCGix4y wwiJgtrVjJ+82AYKU2ZTViZ2QRSnRU4KvrFry4kYh94mhDYXNG3pOgZOlpHXIDvsDwMP i2b80DcagG2IigXfDYcxkXdvX+AGBsavJwgjwpIJehLEnj7S2en+eJyn2v67qSgohhaS HyYgVjUj+09xqQlMnIoaEyMlelIf1bIEzn+NG8MMDjvDDQj4uCwMkUAnUZg56V9QWmrv nHZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=v/zZxMEUwyrsOu50oZW1RGy+/TjNPs8E2T2TvPN/4J4=; fh=yGRNa+jt6EC/KF9a6LqRwZKLnfp6e0l+oP/rnTjElEU=; b=grRtuWFzLNq2sFwPkYyW8HgODcF0SRrynXtA5JJDl9Jjt3UA88F03gLkO9uRm6HDFY C2oXycrBrB4xWzwc6Z6NjipxdxcTroBddhw5Q1nD3/ahAxqBofMoG+/EK28fcvGzBp2S vt8C7iDec2/Jk5FaHcnS8XeO+HVevTFE/cSD0oel2k5n7HlMM3wfywQFzsDso50x9Hkh tunEQlbTBTmB+dJYXpGrRV8HlxZw0p/uSS5I3U+zNYjK1gUM5fPt4KInVYE+mQN6FTNI ytfEXD5M4tyFamBsYMRBvf2zZWhirwGxxsBlYrZKftrQnpppIDX5ZP2gCWNj1WCDDJn9 O4qA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b="kM/Mma5t"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ZEqFDuPW; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-112013-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e9-20020a170903240900b001e034d6a133si221126plo.486.2024.03.22.13.24.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 13:24:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112013-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b="kM/Mma5t"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ZEqFDuPW; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-112013-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BA8A8283963 for ; Fri, 22 Mar 2024 20:24:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F9407F7D4; Fri, 22 Mar 2024 20:24:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="kM/Mma5t"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZEqFDuPW" Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBA6E7E766 for ; Fri, 22 Mar 2024 20:24:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711139082; cv=none; b=JvqOW7S0b00dD5hUh9z+acrhtogzPt2O/Ntrf33N6v3omRBB8J0PsjBqSdSoHzhuU62XSn1KO1c/0MTJHwyEk2lvF+2zZcKXMP6oRoaKDQaoKlfLUcn1e2EOMOPs8x3zI9kl1+JHKRtA3DYW5sMzlupzjBhM9IyMHI7sUSYpy+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711139082; c=relaxed/simple; bh=GOa+p5rfQcsXcyuHjZYb1wXBDRY1vtpAWNC7xXOLWT4=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=sgIHDn2UDyBkF1G3ZN6cXeZULjdIkHbAxVCGZmnLcHBqBrr//3V0ANVkR+mlwMyE00WDE8rANijnvADvzv8NBPiJv3unuGeMi0K2DgUIlK71oot70E36XugNZP1bsdr+eH0hRwIahH7jrEpfjNUmVFxiCWJf8/kwmVA1Z1edV2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=kM/Mma5t; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ZEqFDuPW; arc=none smtp.client-ip=64.147.123.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id CA69732000CC; Fri, 22 Mar 2024 16:24:38 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 22 Mar 2024 16:24:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1711139078; x=1711225478; bh=v/zZxMEUwy rsOu50oZW1RGy+/TjNPs8E2T2TvPN/4J4=; b=kM/Mma5taCEDtcFsIAKJ/4bAcV 8csomuDgZ/yXneFO//9V/Ul8XlY0Tg5NLKjpkVe4UjrbfUvt52G6qUu4LIsCX5oa 7U6y8K9eGoCTq1Y93ULqrt96Yrnr0XIbL4tVPN4CIXxZw78A2KYyuRKxb3n7MSqK Xdkv+rwKuvgQh+nuXX0nKrfeEt392iw+sPOuXPA+KQs5D0JHLq6pqUQnXLXZ/Pp1 KfvXbHBoGgBtoD1S7RKrb9r8aXkHPQqdsQlAuZz3Ynsw5xlZVUUOiAlso1PZmxWT fwew/FTqYbDBAmz6hwf8s/8wXvFE5Qc2LH8+n3pvBNopWG67JAvYXFHheeLQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1711139078; x=1711225478; bh=v/zZxMEUwyrsOu50oZW1RGy+/TjN Ps8E2T2TvPN/4J4=; b=ZEqFDuPWXya0h9zVZrULnxwUduLk1b1Qmzy513+P3YBc u54DZDez4AYp0gY6Fic83TtGzegqn+2SXJqiWMknWD9/pRB/f6vvpW1eVcuGvN/t q1M0iuDfMDzWsmUWuLwTFpOxvNsm6M/dOygrMn/ALn9ifeyN6QpznZ5gXnM0Tk9u X+rVmGTuIV0OD2NP7uQ3l366kO/osRgQsPu6Kc55focmKsfKv8afVPnqLutai5gX yeUq081AQTdrl5GKLnO1/pwiuhDDN6IkXwjUI/kr4+lnyysbsa4PIXYxf52KsGIJ khoGrYmuPvCwMwqltpWj2gY0gzE2TVVWNPQaH5LyHA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddtvddgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 520FDB6008D; Fri, 22 Mar 2024 16:24:37 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-332-gdeb4194079-fm-20240319.002-gdeb41940 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <7f854130-e92f-488f-9c56-a65f86b95567@app.fastmail.com> In-Reply-To: <87f6365f-a40e-4606-baff-170cb8fc48f3@infradead.org> References: <20240320180333.151043-1-arnd@kernel.org> <87f6365f-a40e-4606-baff-170cb8fc48f3@infradead.org> Date: Fri, 22 Mar 2024 21:24:13 +0100 From: "Arnd Bergmann" To: "Geoff Levand" , "Geert Uytterhoeven" , "Arnd Bergmann" Cc: llvm@lists.linux.dev, "Kevin Hao" , "Aneesh Kumar K.V" , "Nick Desaulniers" , linux-kernel@vger.kernel.org, "Nathan Chancellor" , "Nicholas Piggin" , "Justin Stitt" , "Naveen N. Rao" , linuxppc-dev@lists.ozlabs.org, "Bill Wendling" Subject: Re: [PATCH] powerpc: ps3: mark ps3_notification_device static for stack usage Content-Type: text/plain On Fri, Mar 22, 2024, at 09:34, Geoff Levand wrote: > On 3/21/24 17:32, Geert Uytterhoeven wrote: >> --- a/arch/powerpc/platforms/ps3/device-init.c >>> +++ b/arch/powerpc/platforms/ps3/device-init.c >>> @@ -770,7 +770,7 @@ static struct task_struct *probe_task; >>> >>> static int ps3_probe_thread(void *data) >>> { >>> - struct ps3_notification_device dev; >>> + static struct ps3_notification_device dev; >>> int res; >>> unsigned int irq; >>> u64 lpar; >> >> Making it static increases kernel size for everyone. So I'd rather >> allocate it dynamically. The thread already allocates a buffer, which >> can be replaced at no cost by allocating a structure containing both >> the ps3_notification_device and the buffer. I didn't think it mattered much, given that you would rarely have a kernel with PS3 support along with other platforms. I suppose it does increase the size for a PS3-only kernel as well, while your version makes it smaller. > Here's what I came up with. It builds for me without warnings. > I haven't tested it yet. A review would be appreciated. It seems a little complicated but looks all correct to me and reduces both stack and .data size, so Acked-by: Arnd Bergmann