]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6fdf1d283eb04be4a8a54de6cc4932ea73ceae0b
tree18f91d22e14f69b5945bb23d8890f64caefad30a
parentff08c0bdbd5fb1744de253e4f8094fa28c90eef6
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