Skip to contentSkip to conversation

proc: remove unnecessary comment since removal of no_llseek

PATCH New Suyao Qian 1 participant 1 message Jan 19, 2024

Subsystems (2)
lore
Share & tools
lore

Suyao Qian

author
#0 lore raw

PATCH 1/1 proc: remove unnecessary comment since removal of no_llseek

proc_lseek of NULL is checked during proc_reg_open(). Hence no longer mandatory.

Fixes 3f61631d47f1 ("take care to handle NULL ->proc_lseek()")
---
 include/linux/proc_fs.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/proc_fs.h +0 -1
index de407e7c3b55..7ad73ed0cb8a 100644
@@ -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 *);
Signature · 1 line
2.43.0