mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-10 00:25:22 +00:00
arch/tile: mark "hardwall" device as non-seekable
Arnd's recent patch series tagged this device with noop_llseek, conservatively. In fact, it should be no_llseek, which we arrange for by opening the device with nonseekable_open(). Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
This commit is contained in:
parent
2c7387ef99
commit
d02db4f8d7
1 changed files with 1 additions and 1 deletions
|
@ -768,13 +768,13 @@ static int hardwall_release(struct inode *inode, struct file *file)
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct file_operations dev_hardwall_fops = {
|
static const struct file_operations dev_hardwall_fops = {
|
||||||
|
.open = nonseekable_open,
|
||||||
.unlocked_ioctl = hardwall_ioctl,
|
.unlocked_ioctl = hardwall_ioctl,
|
||||||
#ifdef CONFIG_COMPAT
|
#ifdef CONFIG_COMPAT
|
||||||
.compat_ioctl = hardwall_compat_ioctl,
|
.compat_ioctl = hardwall_compat_ioctl,
|
||||||
#endif
|
#endif
|
||||||
.flush = hardwall_flush,
|
.flush = hardwall_flush,
|
||||||
.release = hardwall_release,
|
.release = hardwall_release,
|
||||||
.llseek = noop_llseek,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct cdev hardwall_dev;
|
static struct cdev hardwall_dev;
|
||||||
|
|
Loading…
Add table
Reference in a new issue