* [PATCH] proc: remove unnecessary comment since removal of no_llseek
@ 2024-01-19 3:30 Suyao Qian
0 siblings, 0 replies; only message in thread
From: Suyao Qian @ 2024-01-19 3:30 UTC (permalink / raw)
To: linux-fsdevel; +Cc: linux-kernel, Al Viro, Suyao Qian
proc_lseek of NULL is checked during proc_reg_open(). Hence no longer
mandatory.
Fixes: 3f61631d47f1 ("take care to handle NULL ->proc_lseek()")
Signed-off-by: Suyao Qian <qiansuyao@gmail.com>
---
include/linux/proc_fs.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index de407e7c3b55..7ad73ed0cb8a 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -32,7 +32,6 @@ struct proc_ops {
ssize_t (*proc_read)(struct file *, char __user *, size_t, loff_t *);
ssize_t (*proc_read_iter)(struct kiocb *, struct iov_iter *);
ssize_t (*proc_write)(struct file *, const char __user *, size_t, loff_t *);
- /* mandatory unless nonseekable_open() or equivalent is used */
loff_t (*proc_lseek)(struct file *, loff_t, int);
int (*proc_release)(struct inode *, struct file *);
__poll_t (*proc_poll)(struct file *, struct poll_table_struct *);
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-19 3:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-19 3:30 [PATCH] proc: remove unnecessary comment since removal of no_llseek Suyao Qian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).