* [PATCH] dlm: clean up a type in waiters_read()
@ 2026-10-01 6:44 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2026-10-01 6:44 UTC (permalink / raw)
To: Alexander Aring; +Cc: David Teigland, gfs2, linux-kernel, kernel-janitors
This doesn't affect runtime but "rv" stores error codes and so
declare it as ssize_t instead of size_t.
Signed-off-by: Dan Carpenter <error27@gmail.com>
---
fs/dlm/debug_fs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c
index 700a0cbb2f14..f52a51b1382a 100644
--- a/fs/dlm/debug_fs.c
+++ b/fs/dlm/debug_fs.c
@@ -596,7 +596,8 @@ static ssize_t waiters_read(struct file *file, char __user *userbuf,
{
struct dlm_ls *ls = file->private_data;
struct dlm_lkb *lkb;
- size_t len = DLM_DEBUG_BUF_LEN, pos = 0, ret, rv;
+ size_t len = DLM_DEBUG_BUF_LEN, pos = 0, ret;
+ ssize_t rv;
mutex_lock(&debug_buf_lock);
ret = dlm_lock_recovery_try(ls);
--
2.53.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-01 6:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-01 6:44 [PATCH] dlm: clean up a type in waiters_read() Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®