hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/sbc_fitpc2_wdt.c
....@@ -75,7 +75,7 @@
7575
7676 wdt_enable();
7777
78
- return nonseekable_open(inode, file);
78
+ return stream_open(inode, file);
7979 }
8080
8181 static ssize_t fitpc2_wdt_write(struct file *file, const char *data,
....@@ -154,7 +154,7 @@
154154
155155 margin = time;
156156 wdt_enable();
157
- /* Fall through */
157
+ fallthrough;
158158
159159 case WDIOC_GETTIMEOUT:
160160 ret = put_user(margin, (int *)arg);
....@@ -186,6 +186,7 @@
186186 .llseek = no_llseek,
187187 .write = fitpc2_wdt_write,
188188 .unlocked_ioctl = fitpc2_wdt_ioctl,
189
+ .compat_ioctl = compat_ptr_ioctl,
189190 .open = fitpc2_wdt_open,
190191 .release = fitpc2_wdt_release,
191192 };