From 626aa6d7beac91668e59ca4c7405fe36ce272ea2 Mon Sep 17 00:00:00 2001 From: internal <> Date: Fri, 5 May 2023 13:04:07 +0200 Subject: [PATCH] device pointer is const now --- ddbridge/ddbridge-core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ddbridge/ddbridge-core.c b/ddbridge/ddbridge-core.c index 3c97f27..e9785e1 100644 --- a/ddbridge/ddbridge-core.c +++ b/ddbridge/ddbridge-core.c @@ -3469,7 +3469,11 @@ static const struct file_operations ddb_fops = { #if (KERNEL_VERSION(3, 4, 0) > LINUX_VERSION_CODE) static char *ddb_devnode(struct device *device, mode_t *mode) #else +#if (KERNEL_VERSION(6, 2, 0) > LINUX_VERSION_CODE) static char *ddb_devnode(struct device *device, umode_t *mode) +#else +static char *ddb_devnode(const struct device *device, umode_t *mode) +#endif #endif { struct ddb *dev = dev_get_drvdata(device);