Skip to content

Commit

Permalink
scst_local: Port to Linux kernel v6.11
Browse files Browse the repository at this point in the history
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 *")
  • Loading branch information
lnocturno committed Sep 4, 2024
1 parent ec1b85a commit 667ef76
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scst_local/scst_local.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 667ef76

Please sign in to comment.