diff mbox series

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

Message ID 20210218044553.2514218-2-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 is necessary to make sync_f's prototype match opfnc_t for
the op table, but is otherwise unused and triggers an unused argument

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


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)
-void sync_f(int opno, long r)
+void sync_f(int opno, long r __attribute__((unused)))
 	if (verbose)