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);