mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
FROMLIST: proc/cpuinfo: switch to ->read_iter
Implement ->read_iter so that the Android bionic test suite can use this random proc file for its splice test case. Bug: 171770067 Link: https://lore.kernel.org/r/20201027080745.GA31045@infradead.org Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I15f97c8bcbbc92b14155a928608f746b73035fe4
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
86aa9dba81
commit
d801fe130c
@@ -19,7 +19,7 @@ static int cpuinfo_open(struct inode *inode, struct file *file)
|
||||
static const struct proc_ops cpuinfo_proc_ops = {
|
||||
.proc_flags = PROC_ENTRY_PERMANENT,
|
||||
.proc_open = cpuinfo_open,
|
||||
.proc_read = seq_read,
|
||||
.proc_read_iter = seq_read_iter,
|
||||
.proc_lseek = seq_lseek,
|
||||
.proc_release = seq_release,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user