summaryrefslogtreecommitdiff
path: root/include/linux/debugfs.h
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2017-03-11 03:44:57 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-08 18:59:23 +0300
commit895ce6c877cb0282a7dc2178f3643e6635716a2a (patch)
tree18f91d22e14f69b5945bb23d8890f64caefad30a /include/linux/debugfs.h
parent96fb7e256a0650c2b37768c780bf0f680b0049b6 (diff)
downloadlinux-895ce6c877cb0282a7dc2178f3643e6635716a2a.tar.xz
debugfs: set no_llseek in DEFINE_DEBUGFS_ATTRIBUTE
In DEFINE_DEBUGFS_ATTRIBUTE() macro, 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugfs.h')
-rw-r--r--include/linux/debugfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index 7dff776e6d16..9174b0d28582 100644
--- a/include/linux/debugfs.h
+++ b/include/linux/debugfs.h
@@ -74,7 +74,7 @@ static const struct file_operations __fops = { \
.release = simple_attr_release, \
.read = debugfs_attr_read, \
.write = debugfs_attr_write, \
- .llseek = generic_file_llseek, \
+ .llseek = no_llseek, \
}
#if defined(CONFIG_DEBUG_FS)