[LTP] [PATCH 2/2] fsstress: Indicate one of sync_f's arguments is unused
Palmer Dabbelt
palmerdabbelt@google.com
Thu Feb 18 05:45:53 CET 2021
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(-)
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)
--
2.30.0.478.g8a0d178c01-goog
More information about the ltp
mailing list