From: Geliang Tang Date: Sat, 11 Mar 2017 00:44:57 +0000 (+0800) Subject: debugfs: set no_llseek in DEFINE_DEBUGFS_ATTRIBUTE X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=895ce6c877cb0282a7dc2178f3643e6635716a2a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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)