From 28df566c38e0ee500fd5f74643fc35f21a4ff696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torleif=20Sk=C3=A5r?= <16509259+tskaar@users.noreply.github.com> Date: Tue, 30 Jul 2024 22:35:25 +0200 Subject: [PATCH] fix: build on kernel v6.11 --- bus/bus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bus/bus.c b/bus/bus.c index 4a6c64f..8dc9bbb 100644 --- a/bus/bus.c +++ b/bus/bus.c @@ -56,7 +56,11 @@ static struct device_type gip_client_type = { .release = gip_client_release, }; +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 11, 0) static int gip_bus_match(struct device *dev, struct device_driver *driver) +#else +static int gip_bus_match(struct device *dev, const struct device_driver *driver) +#endif { struct gip_client *client; struct gip_driver *drv;