[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240306091828.04cf4d1e@xps-13>
Date: Wed, 6 Mar 2024 09:18:28 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: "Ricardo B. Marliere" <ricardo@...liere.net>
Cc: Richard Weinberger <richard@....at>, Vignesh Raghavendra
<vigneshr@...com>, linux-mtd@...ts.infradead.org,
linux-kernel@...r.kernel.org, Greg Kroah-Hartman
<gregkh@...uxfoundation.org>
Subject: Re: [PATCH] mtd: ubi: make ubi_class constant
Hi Ricardo,
ricardo@...liere.net wrote on Tue, 05 Mar 2024 16:35:38 -0300:
> Since commit 43a7206b0963 ("driver core: class: make class_register() take
> a const *"), the driver core allows for struct class to be in read-only
> memory, so move the ubi_class structure to be declared at build time
> placing it into read-only memory, instead of having to be dynamically
> allocated at boot time.
>
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Suggested-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Signed-off-by: Ricardo B. Marliere <ricardo@...liere.net>
Reviewed-by: Miquel Raynal <miquel.raynal@...tlin.com>
Thanks,
Miquèl
Powered by blists - more mailing lists