Description: remove module * from class_create()
 The module pointer has been removed from class_create() starting from linux kernel v6.4.
 It has been done in the upstream linux kernel by:
 https://lore.kernel.org/all/20230313181843.1207845-4-gregkh@linuxfoundation.org/
 Patch not forwarded as upstream sysdig is now using falcosecurity driver.
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2051270
Forwarded: not-needed
Last-Update: 2024-02-02
---

--- sysdig-0.27.1.orig/driver/main.c
+++ sysdig-0.27.1/driver/main.c
@@ -2481,7 +2481,11 @@ int sysdig_init(void)
 		goto init_module_err;
 	}
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)
+	g_ppm_class = class_create(PROBE_DEVICE_NAME);
+#else
 	g_ppm_class = class_create(THIS_MODULE, PROBE_DEVICE_NAME);
+#endif
 	if (IS_ERR(g_ppm_class)) {
 		pr_err("can't allocate device class\n");
 		ret = -EFAULT;
