lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240411153126.16201-120-axboe@kernel.dk>
Date: Thu, 11 Apr 2024 09:14:19 -0600
From: Jens Axboe <axboe@...nel.dk>
To: linux-kernel@...r.kernel.org
Cc: Jens Axboe <axboe@...nel.dk>
Subject: [PATCH 119/437] drivers/auxdisplay: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@...nel.dk>
---
 drivers/auxdisplay/charlcd.c | 3 ++-
 drivers/auxdisplay/panel.c   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c
index 6d309e4971b6..b40af38d69b1 100644
--- a/drivers/auxdisplay/charlcd.c
+++ b/drivers/auxdisplay/charlcd.c
@@ -487,6 +487,7 @@ static ssize_t charlcd_write(struct file *file, const char __user *buf,
 
 	return tmp - buf;
 }
+FOPS_WRITE_ITER_HELPER(charlcd_write);
 
 static int charlcd_open(struct inode *inode, struct file *file)
 {
@@ -521,7 +522,7 @@ static int charlcd_release(struct inode *inode, struct file *file)
 }
 
 static const struct file_operations charlcd_fops = {
-	.write   = charlcd_write,
+	.write_iter = charlcd_write_iter,
 	.open    = charlcd_open,
 	.release = charlcd_release,
 	.llseek  = no_llseek,
diff --git a/drivers/auxdisplay/panel.c b/drivers/auxdisplay/panel.c
index 049ff443e790..0e5d8d09b60f 100644
--- a/drivers/auxdisplay/panel.c
+++ b/drivers/auxdisplay/panel.c
@@ -1045,6 +1045,7 @@ static ssize_t keypad_read(struct file *file,
 
 	return tmp - buf;
 }
+FOPS_READ_ITER_HELPER(keypad_read);
 
 static int keypad_open(struct inode *inode, struct file *file)
 {
@@ -1072,7 +1073,7 @@ static int keypad_release(struct inode *inode, struct file *file)
 }
 
 static const struct file_operations keypad_fops = {
-	.read    = keypad_read,		/* read */
+	.read_iter = keypad_read_iter,	/* read */
 	.open    = keypad_open,		/* open */
 	.release = keypad_release,	/* close */
 	.llseek  = default_llseek,
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ