summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2017-05-06 18:37:20 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2019-07-04 11:05:09 +0300
commit658829dfe75c49e879e0c4c9cbcd3bd1e4fbdcf5 (patch)
tree2484b838f21ea042a2a2b3f25dea57e9c66d1591 /arch
parentc197922f0a8072d286dff8001f8ad0d4b95ec1dd (diff)
downloadlinux-658829dfe75c49e879e0c4c9cbcd3bd1e4fbdcf5.tar.xz
powerpc/cell: set no_llseek in spufs_cntl_fops
In spufs_cntl_fops, since we use nonseekable_open() to open, we should use no_llseek() to seek, not generic_file_llseek(). Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/cell/spufs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c
index bfb9ca99ac05..fd293e510621 100644
--- a/arch/powerpc/platforms/cell/spufs/file.c
+++ b/arch/powerpc/platforms/cell/spufs/file.c
@@ -459,7 +459,7 @@ static const struct file_operations spufs_cntl_fops = {
.release = spufs_cntl_release,
.read = simple_attr_read,
.write = simple_attr_write,
- .llseek = generic_file_llseek,
+ .llseek = no_llseek,
.mmap = spufs_cntl_mmap,
};