| 1 | Description: Make use of no_llseek conditional |
| 2 | This symbol is NULL since 6.0-rc1, and has been removed in 6.12-rc1. |
| 3 | . |
| 4 | Dropping its use after 6.0 should allow this to build on older kernels still. |
| 5 | Author: Simon Richter <[email protected]> |
| 6 | Bug-Debian: https://bugs.debian.org/1089500 |
| 7 | Forwarded: no |
| 8 | Last-Update: 2024-12-18 |
| 9 | |
| 10 | --- langford-0.0.20130228.orig/langford.c |
| 11 | +++ langford-0.0.20130228/langford.c |
| 12 | @@ -897,7 +897,9 @@ static const struct file_operations cdev |
| 13 | .unlocked_ioctl = cdev_ioctl, |
| 14 | .open = cdev_open, |
| 15 | .release = cdev_release, |
| 16 | +#if LINUX_VERSION_CODE <= KERNEL_VERSION(6,0,0) |
| 17 | .llseek = no_llseek |
| 18 | +#endif |
| 19 | }; |
| 20 | |
| 21 |