mirror of
https://github.com/SCST-project/scst.git
synced 2026-07-19 22:42:38 +00:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user