Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp215418lqp; Wed, 20 Mar 2024 20:42:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVzVKOMhzf2qJD4nOEmLwr7ejwPMeAyTqFA+v11l/dItwkV9ZHe3WpQxuAE51bHDVTfO3lHsaSguWFMY3lhuI/xWVSIF25XiMHJKXp5Cw== X-Google-Smtp-Source: AGHT+IFQJCTmzPZadXT8Vjt/FLlHGaiV6G1BnKy4wPVJawICTDoiAZHGYL12okPMPGwEVbeMhYB7 X-Received: by 2002:a05:6a00:234c:b0:6e6:ade7:acec with SMTP id j12-20020a056a00234c00b006e6ade7acecmr22966817pfj.31.1710992572365; Wed, 20 Mar 2024 20:42:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710992572; cv=pass; d=google.com; s=arc-20160816; b=dj6+KMj3igQhHZe2EGufjXu+jNZt68DMie1nBIT1bU3OacKj8SN9AgqmICFl+OW9j5 BRpWHLK8v9F2kki00h+V7i7N4gUuxbo7RcQQBuO3YUdI+VD/bj+01N+TEYeUODF5h488 ELiaEx5C6PthCna40FZEHW9mW7jwJqjXpNMDdXEOoNLT1y9DQe0sRQ6DHvC90IEAlhK2 MGLS5SOLlFjwXmXzjuUejtv0XJ7YmhoVSK5cBGmSLoOL4D3eKYVGdqoAsKbFbdaOgcbs gOP2Ml9kEyvOPepQbza5BzZweplvsN9UNMNf1GLY8zCE4RlP5ekFBhLhUedJ9dOgLWIO fU3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=AuTy0DBYYdG/QKWrIh0uagTUXUFOgXWy8+vXQ7SNEJg=; fh=bUX/u1bFaO4oyyaEQdqBNqwa+u+rMIQADyjHnGTseLY=; b=Z2NKkNGErY/g08nkqX0TVlbOyNd/JbTsuuKesQZA8sQi2MrSB3nrxw2JlaaAE6kaEt aJrx8nMuO8U15AcUenq+B0ChRVTustK6ll+O29CvQXlYHwrm63ad7Y8zXosOz7zdjtsd +u36rxnkvmJbs/xieqcPl7Z2b9lW1frAP1q1h6tZTFCkdy23UfMJYZL7NK4Jr0pI1yGn J3UNcZ9LjWkLAlKZTMfqq0moY8EYz52JsP+DZta8LPYN8a5qnCynkheDev+NbYXqtqZn j1cm9Dnm9BTG4VP5e0PXZG2esSDf2VgsdjSe0X55EUYDWgWJTSSxunsbckg4TLq3KbvS m88w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=HyiVzWJU; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-109505-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109505-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bw5-20020a056a02048500b005dc97ac8afcsi15753577pgb.125.2024.03.20.20.42.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 20:42:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109505-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=@infradead.org header.s=casper.20170209 header.b=HyiVzWJU; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-109505-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109505-linux.lists.archive=gmail.com@vger.kernel.org" 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 4494F283D7C for ; Thu, 21 Mar 2024 00:04:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF2C6653; Thu, 21 Mar 2024 00:04:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="HyiVzWJU" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 2C8B4EC3; Thu, 21 Mar 2024 00:04:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710979462; cv=none; b=Mx+j/Ec9/c+yErfvSyya5se0RkvM6jegZBfaq4UfdFGUvyl2/PvLNPWY05NW7JuLTmUjf4VF5Tapna+wIZh5ieRaruGFO8Y98NHH1y9Qt3WmpQXGlQ2wZJEqp+LGGv1Vvp5g49PMqQ0/F5MDWnDXZks3rl3PgmPFn02NJGxc+Ws= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710979462; c=relaxed/simple; bh=ipxsqMwMInyb4v842p8SuYV8PcroMNKWjBSmmFM49EM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LdifEZcr5xBA1O5rFB814fIY85TmhdTjWTvqw4Sp28GboI1zg+Uzpw2ugiJ1C9wSWuOZpzRXgGtghGROCmNg678Va8Tsx+i66HNMJUKmL8fV73NjDgiBXl2JG1cyZX8f+MtI1L1O//Zm/kufSj/6KnOhfEA0jSentYFYfUfzVxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=HyiVzWJU; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description; bh=AuTy0DBYYdG/QKWrIh0uagTUXUFOgXWy8+vXQ7SNEJg=; b=HyiVzWJUKN7zEobwCSfi5HSpo8 +qncGtgXNEe8ND8EP7iESrJwebcnFQ7UO1NaP1y9w+ggyVBvnSTRIs00CKQaYz1qUrjQavuym+Q59 ErKVvwWvs9RGnWA16WZEpMfAWrbH/A9I99bRvzob1FvUmd7/y9seJi9FkoS+diObsYDI4molelB8i TVJ/4N3YosCxpq6guZAnN8IxTbdoI5qRiegSVQuOsoo0hOukfbPQm2eiJYwu2iin6IoLpdeTOPVh4 7fK+ahU5aAULDrKaXfML1vgGvgSLoXAmCs2hti2cszJa8BcR8lywPlSJV/dxjq1QlJ2CYf5slz5xS 4Sf0bblw==; Received: from fpd2fa7e2a.ap.nuro.jp ([210.250.126.42] helo=[192.168.1.8]) by casper.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rn5uG-00000005TT9-33Nm; Thu, 21 Mar 2024 00:03:41 +0000 Message-ID: <5a40e58c-b38d-4bbd-8376-ebdc0c2cc47b@infradead.org> Date: Thu, 21 Mar 2024 09:03:29 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] powerpc: ps3: mark ps3_notification_device static for stack usage Content-Language: en-US To: Arnd Bergmann , Michael Ellerman , Nathan Chancellor , Paul Mackerras , Geert Uytterhoeven Cc: Arnd Bergmann , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , Nick Desaulniers , Bill Wendling , Justin Stitt , Kevin Hao , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev References: <20240320180333.151043-1-arnd@kernel.org> From: Geoff Levand In-Reply-To: <20240320180333.151043-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 3/21/24 03:03, Arnd Bergmann wrote: > From: Arnd Bergmann > > The device is way too large to be on the stack, causing a warning for > an allmodconfig build with clang: > > arch/powerpc/platforms/ps3/device-init.c:771:12: error: stack frame size (2064) exceeds limit (2048) in 'ps3_probe_thread' [-Werror,-Wframe-larger-than] > 771 | static int ps3_probe_thread(void *data) > > There is only a single thread that ever accesses this, so it's fine to > make it static, which avoids the warning. > > Fixes: b4cb2941f855 ("[POWERPC] PS3: Use the HVs storage device notification mechanism properly") > Signed-off-by: Arnd Bergmann > --- > arch/powerpc/platforms/ps3/device-init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/platforms/ps3/device-init.c b/arch/powerpc/platforms/ps3/device-init.c > index 878bc160246e..ce99f06698a9 100644 > --- 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; Seems fine. Acked-by: Geoff Levand