From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Adrian Barnaś" <abarnas@google.com>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>,
Michael Ellerman <mpe@ellerman.id.au>,
Nicholas Piggin <npiggin@gmail.com>,
Christophe Leroy <christophe.leroy@csgroup.eu>,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] powerpc: cell: make spu_subsys const
Date: Thu, 18 Sep 2025 18:19:39 +0200 [thread overview]
Message-ID: <2025091830-deeply-crave-728d@gregkh> (raw)
In-Reply-To: <20250918141633.339803-1-abarnas@google.com>
On Thu, Sep 18, 2025 at 02:16:33PM +0000, Adrian Barnaś wrote:
> Because driver core can properly handle constant struct bus_type,
> move the spu_subsys to be a constant structure as well, placing it into
> read-only memory which can not be modified at runtime.
>
> Signed-off-by: Adrian Barnaś <abarnas@google.com>
> ---
> arch/powerpc/platforms/cell/spu_base.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c
> index 2c07387201d0..733b512992c0 100644
> --- a/arch/powerpc/platforms/cell/spu_base.c
> +++ b/arch/powerpc/platforms/cell/spu_base.c
> @@ -464,7 +464,7 @@ void spu_init_channels(struct spu *spu)
> }
> EXPORT_SYMBOL_GPL(spu_init_channels);
>
> -static struct bus_type spu_subsys = {
> +static const struct bus_type spu_subsys = {
> .name = "spu",
> .dev_name = "spu",
> };
> --
> 2.51.0.470.ga7dc726c21-goog
>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
prev parent reply other threads:[~2025-09-18 16:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-18 14:16 [PATCH] powerpc: cell: make spu_subsys const Adrian Barnaś
2025-09-18 16:19 ` Greg Kroah-Hartman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2025091830-deeply-crave-728d@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=abarnas@google.com \
--cc=christophe.leroy@csgroup.eu \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox