Re: [PATCH] dibs: change dibs_class to a const struct
From: Alexandra Winter
Date: Tue Mar 03 2026 - 08:09:54 EST
On 02.03.26 23:54, Greg Kroah-Hartman wrote:
> On Mon, Mar 02, 2026 at 05:31:03PM +0100, Jori Koolstra wrote:
>> The class_create() call has been deprecated in favor of class_register()
>> as the driver core now allows for a struct class to be in read-only
>> memory. Change dibs_class to be a const struct class and drop the
>> class_create() call.
>>
>> Suggested-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
>> Signed-off-by: Jori Koolstra <jkoolstra@xxxxxxxxx>
>> ---
>> drivers/dibs/dibs_main.c | 14 ++++++++------
>> 1 file changed, 8 insertions(+), 6 deletions(-)
>
> Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Reviewed-by: Alexandra Winter <wintera@xxxxxxxxxxxxx>
Thank you for the patch Jori.
Would you mind adding a link to explain the "as the driver core now allows"?
Maybe
Link: https://lore.kernel.org/all/2023040248-outrage-obsolete-5a9a@gregkh/
For my education: How could I have noticed that class_create() call has been deprecated?
Is that marked somewhere somehow?