| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * PC Watchdog Driver |
|---|
| 3 | 4 | * by Ken Hollis (khollis@bitgate.com) |
|---|
| .. | .. |
|---|
| 650 | 651 | return -EINVAL; |
|---|
| 651 | 652 | |
|---|
| 652 | 653 | pcwd_keepalive(); |
|---|
| 653 | | - /* Fall */ |
|---|
| 654 | + fallthrough; |
|---|
| 654 | 655 | |
|---|
| 655 | 656 | case WDIOC_GETTIMEOUT: |
|---|
| 656 | 657 | return put_user(heartbeat, argp); |
|---|
| .. | .. |
|---|
| 695 | 696 | /* Activate */ |
|---|
| 696 | 697 | pcwd_start(); |
|---|
| 697 | 698 | pcwd_keepalive(); |
|---|
| 698 | | - return nonseekable_open(inode, file); |
|---|
| 699 | + return stream_open(inode, file); |
|---|
| 699 | 700 | } |
|---|
| 700 | 701 | |
|---|
| 701 | 702 | static int pcwd_close(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 734 | 735 | if (!pcwd_private.supports_temp) |
|---|
| 735 | 736 | return -ENODEV; |
|---|
| 736 | 737 | |
|---|
| 737 | | - return nonseekable_open(inode, file); |
|---|
| 738 | + return stream_open(inode, file); |
|---|
| 738 | 739 | } |
|---|
| 739 | 740 | |
|---|
| 740 | 741 | static int pcwd_temp_close(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 751 | 752 | .llseek = no_llseek, |
|---|
| 752 | 753 | .write = pcwd_write, |
|---|
| 753 | 754 | .unlocked_ioctl = pcwd_ioctl, |
|---|
| 755 | + .compat_ioctl = compat_ptr_ioctl, |
|---|
| 754 | 756 | .open = pcwd_open, |
|---|
| 755 | 757 | .release = pcwd_close, |
|---|
| 756 | 758 | }; |
|---|