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?