[PATCH 113/437] drivers/ras: convert to read/write iterators

From: Jens Axboe
Date: Thu Apr 11 2024 - 12:05:44 EST


Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
---
drivers/ras/amd/fmpm.c | 2 +-
drivers/ras/debugfs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ras/amd/fmpm.c b/drivers/ras/amd/fmpm.c
index 271dfad05d68..8e0a89491170 100644
--- a/drivers/ras/amd/fmpm.c
+++ b/drivers/ras/amd/fmpm.c
@@ -944,7 +944,7 @@ static int fmpm_open(struct inode *inode, struct file *file)
static const struct file_operations fmpm_fops = {
.open = fmpm_open,
.release = seq_release,
- .read = seq_read,
+ .read_iter = seq_read_iter,
.llseek = seq_lseek,
};

diff --git a/drivers/ras/debugfs.c b/drivers/ras/debugfs.c
index 42afd3de68b2..e71046472cea 100644
--- a/drivers/ras/debugfs.c
+++ b/drivers/ras/debugfs.c
@@ -38,7 +38,7 @@ static int trace_release(struct inode *inode, struct file *file)

static const struct file_operations trace_fops = {
.open = trace_open,
- .read = seq_read,
+ .read_iter = seq_read_iter,
.llseek = seq_lseek,
.release = trace_release,
};
--
2.43.0