From 011f253335012b0e9ea5fdeee3feee036ba453f6 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Wed, 17 Oct 2018 13:25:10 -0500 Subject: [PATCH] xfs_io: include io.h to silence static function warnings io.h exports functions from io/getrusage.c and io/log_writes.c, so include it from these files to silence warnings about potentially static functions (getrusage_init, log_writes_init) in sparse. Signed-off-by: Eric Sandeen Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- io/getrusage.c | 1 + io/log_writes.c | 1 + 2 files changed, 2 insertions(+) diff --git a/io/getrusage.c b/io/getrusage.c index ba704b7f3..6962913df 100644 --- a/io/getrusage.c +++ b/io/getrusage.c @@ -9,6 +9,7 @@ #include #include #include "init.h" +#include "io.h" static cmdinfo_t getrusage_cmd; diff --git a/io/log_writes.c b/io/log_writes.c index 114f8181d..9c2285fed 100644 --- a/io/log_writes.c +++ b/io/log_writes.c @@ -8,6 +8,7 @@ #include #include "command.h" #include "init.h" +#include "io.h" static cmdinfo_t log_writes_cmd; -- 2.39.2