From: Arnd Bergmann Date: Sun, 15 Aug 2010 19:50:52 +0000 (+0200) Subject: libfs: use generic_file_llseek for simple_attr X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ec5584e3edf9c4bf2c88c846534d19cf986ba11;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git libfs: use generic_file_llseek for simple_attr Simple attribute files need to be seekable to allow resetting the file for another read. Signed-off-by: Arnd Bergmann --- diff --git a/include/linux/fs.h b/include/linux/fs.h index 76041b614758..c8effc81f0c9 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2450,6 +2450,7 @@ static const struct file_operations __fops = { \ .release = simple_attr_release, \ .read = simple_attr_read, \ .write = simple_attr_write, \ + .llseek = generic_file_llseek, \ }; static inline void __attribute__((format(printf, 1, 2)))