[PATCH 0/3] fs: dlm: Fix some issues related to a buffer in dlm_create_debug_file()

From: Christophe JAILLET
Date: Fri Sep 22 2023 - 13:32:12 EST


The goal of this serie is to remove a warning when building with W=1.
(details in patch 2)

Patch 1 is a preparation step. It is a no-op. The generated code is the same.
Patch 2 is the real fix.
Patch 3 is an additionnal clean-up.

Christophe JAILLET (3):
fs: dlm: Simplify buffer size computation in dlm_create_debug_file()
fs: dlm: Fix the size of a buffer in dlm_create_debug_file()
fs: dlm: Remove some useless memset()

fs/dlm/debug_fs.c | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)

--
2.34.1