diff mbox series

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

Message ID 20210218044553.2514218-1-palmerdabbelt@google.com
State New
Headers show
Series [1/2] fsstress: Indicate sg_handler's argument is unused | expand

Commit Message

Palmer Dabbelt Feb. 18, 2021, 4:45 a.m. UTC
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 mbox series

Patch

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;
 }