diff mbox series

[2/2] fsstress: Indicate one of sync_f's arguments is unused

Message ID 20210218044553.2514218-2-palmerdabbelt@google.com
State Accepted
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 is necessary to make sync_f's prototype match opfnc_t for
the op table, but is otherwise unused and triggers 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(-)

Comments

Cyril Hrubis March 2, 2021, 1:59 p.m. UTC | #1
Hi!
Both pushed, thanks.
diff mbox series

Patch

diff --git a/testcases/kernel/fs/fsstress/fsstress.c b/testcases/kernel/fs/fsstress/fsstress.c
index b53a99180..42ee696a5 100644
--- a/testcases/kernel/fs/fsstress/fsstress.c
+++ b/testcases/kernel/fs/fsstress/fsstress.c
@@ -2501,7 +2501,7 @@  void symlink_f(int opno, long r)
 }
 
 /* ARGSUSED */
-void sync_f(int opno, long r)
+void sync_f(int opno, long r __attribute__((unused)))
 {
 	sync();
 	if (verbose)