[LTP] [PATCH 1/2] fsstress: Indicate sg_handler's argument is unused

Palmer Dabbelt palmerdabbelt@google.com
Thu Feb 18 05:45:52 CET 2021


This argument can't be removed because it's part of sigaction, but it's
triggering an unused argument warning.

Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
---
 testcases/kernel/fs/fsstress/fsstress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/fs/fsstress/fsstress.c b/testcases/kernel/fs/fsstress/fsstress.c
index 811e6ff14..b53a99180 100644
--- a/testcases/kernel/fs/fsstress/fsstress.c
+++ b/testcases/kernel/fs/fsstress/fsstress.c
@@ -280,7 +280,7 @@ void usage(void);
 void write_freq(void);
 void zero_freq(void);
 
-void sg_handler(int signum)
+void sg_handler(int signum __attribute__((unused)))
 {
 	should_stop = 1;
 }
-- 
2.30.0.478.g8a0d178c01-goog



More information about the ltp mailing list