scst_local: Port to Linux kernel v6.11

Support for the following driver core changes in the Linux kernel v6.11:

- d69d80484598 ("driver core: have match() callback in struct bus_type
  take a const *")
This commit is contained in:
Gleb Chesnokov
2024-09-04 12:42:49 +03:00
parent ec1b85a7e1
commit 667ef768a0
+5 -2
View File
@@ -1500,8 +1500,11 @@ static DRIVER_REMOVE_RET scst_local_driver_remove(struct device *dev)
return (DRIVER_REMOVE_RET)0;
}
static int scst_local_bus_match(struct device *dev,
struct device_driver *dev_driver)
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 11, 0)
static int scst_local_bus_match(struct device *dev, struct device_driver *drv)
#else
static int scst_local_bus_match(struct device *dev, const struct device_driver *drv)
#endif
{
TRACE_ENTRY();