[f2fs-dev] [PATCH] f2fs: Eliminate usage of uninitialized_var() macro

2020-06-15 Thread Jason Yan
wrm9=yvju65tplgn_ybynv0ve...@mail.gmail.com/ Cc: Kees Cook Suggested-by: Chao Yu Signed-off-by: Jason Yan --- v2: Directly remove this variable. fs/f2fs/data.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 326c63879ddc..3753ba06

Re: [f2fs-dev] [PATCH] f2fs: Eliminate usage of uninitialized_var() macro

2020-06-15 Thread Jason Yan
在 2020/6/15 16:26, Chao Yu 写道: On 2020/6/15 12:02, Jason Yan wrote: This is an effort to eliminate the uninitialized_var() macro[1]. The use of this macro is the wrong solution because it forces off ANY analysis by the compiler for a given variable. It even masks "unused variable"

[f2fs-dev] [PATCH] f2fs: Eliminate usage of uninitialized_var() macro

2020-06-14 Thread Jason Yan
://github.com/KSPP/linux/issues/81 [2] https://lore.kernel.org/lkml/CA+55aFz2500WfbKXAx8s67wrm9=yvju65tplgn_ybynv0ve...@mail.gmail.com/ Cc: Kees Cook Signed-off-by: Jason Yan --- fs/f2fs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 32

Re: [f2fs-dev] [PATCH -next] f2fs: remove set but not used variable 'params'

2020-04-02 Thread Jason Yan
Hi Chao, 在 2020/4/2 16:37, Chao Yu 写道: Hi Jason, On 2020/4/2 14:15, Jason Yan wrote: Fix the following gcc warning: fs/f2fs/compress.c:375:18: warning: variable 'params' set but not used [-Wunused-but-set-variable] ZSTD_parameters params; ^~ Reporte

[f2fs-dev] [PATCH -next] f2fs: remove set but not used variable 'params'

2020-04-01 Thread Jason Yan
Fix the following gcc warning: fs/f2fs/compress.c:375:18: warning: variable 'params' set but not used [-Wunused-but-set-variable] ZSTD_parameters params; ^~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- fs/f2fs/compress.c | 2 -- 1 file changed, 2