diff options
author | Geliang Tang <geliangtang@gmail.com> | 2017-05-06 18:37:20 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-07-04 11:05:09 +0300 |
commit | 658829dfe75c49e879e0c4c9cbcd3bd1e4fbdcf5 (patch) | |
tree | 2484b838f21ea042a2a2b3f25dea57e9c66d1591 /arch/powerpc/platforms | |
parent | c197922f0a8072d286dff8001f8ad0d4b95ec1dd (diff) | |
download | linux-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/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/file.c | 2 |
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, }; |