Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1598211
| From | Geliang Tang <geliangtang@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] debugfs: set no_llseek in DEFINE_DEBUGFS_ATTRIBUTE |
| Date | 2017-03-11 01:50 +0100 |
| Message-ID | <tjDom-3gr-21@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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>
---
include/linux/debugfs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index 7dff776..9174b0d 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)
--
2.9.3
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] debugfs: set no_llseek in DEFINE_DEBUGFS_ATTRIBUTE Geliang Tang <geliangtang@gmail.com> - 2017-03-11 01:50 +0100
csiph-web