debugfs: set no_llseek in DEFINE_DEBUGFS_ATTRIBUTE
authorGeliang Tang <geliangtang@gmail.com>
Sat, 11 Mar 2017 00:44:57 +0000 (08:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 15:59:23 +0000 (17:59 +0200)
commit895ce6c877cb0282a7dc2178f3643e6635716a2a
tree18f91d22e14f69b5945bb23d8890f64caefad30a
parent96fb7e256a0650c2b37768c780bf0f680b0049b6
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>
include/linux/debugfs.h