Thread (7 messages) 7 messages, 3 authors, 2026-03-03

Re: [PATCH] dibs: change dibs_class to a const struct

From: Alexandra Winter <wintera@linux.ibm.com>
Date: 2026-03-03 13:07:46
Also in: lkml


On 02.03.26 23:54, Greg Kroah-Hartman wrote:
On Mon, Mar 02, 2026 at 05:31:03PM +0100, Jori Koolstra wrote:
quoted
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@linuxfoundation.org>
Signed-off-by: Jori Koolstra <jkoolstra@xs4all.nl>
---
 drivers/dibs/dibs_main.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>

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/ (local)


For my education: How could I have noticed that class_create() call has been deprecated?
Is that marked somewhere somehow?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help