laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/dahdi-linux/+/33185 )
Change subject: compatibility with class_create API change in 6.4-rc1 ......................................................................
compatibility with class_create API change in 6.4-rc1
Linux kernel 6.4-rc1 has an API change for the class_create() function.
See upstream kernel git commit 1aaba11da9aa7d7d6b52a74d45b31cac118295a1
Change-Id: I5f7d25aa7516c470b943b9e8dfba20ca4206e378 --- M drivers/dahdi/dahdi-sysfs-chan.c 1 file changed, 18 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/dahdi-linux refs/changes/85/33185/1
diff --git a/drivers/dahdi/dahdi-sysfs-chan.c b/drivers/dahdi/dahdi-sysfs-chan.c index 8682ea3..5692c05 100644 --- a/drivers/dahdi/dahdi-sysfs-chan.c +++ b/drivers/dahdi/dahdi-sysfs-chan.c @@ -483,7 +483,12 @@ } should_cleanup.channel_driver = 1;
+/* see linux kernel commit 1aaba11da9aa7d7d6b52a74d45b31cac118295a1 */ +#if LINUX_VERSION_CODE > KERNEL_VERSION(6, 3, 0) + dahdi_class = class_create("dahdi"); +#else dahdi_class = class_create(THIS_MODULE, "dahdi"); +#endif if (IS_ERR(dahdi_class)) { res = PTR_ERR(dahdi_class); dahdi_err("%s: class_create(dahi_chan) failed. Error: %d\n",