diff mbox series

[09/18] libxfs: silence sparse static function warnings in util.c

Message ID 1539201682-22198-10-git-send-email-sandeen@redhat.com (mailing list archive)
State Accepted
Headers show
Series xfsprogs: finer-grained sparse fixes | expand

Commit Message

Eric Sandeen Oct. 10, 2018, 8:01 p.m. UTC
libxfs.h exports functions defined in util.c, so include that file to
silence sparse warnings about potential static functions.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
 libxfs/util.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Christoph Hellwig Oct. 11, 2018, 6 a.m. UTC | #1
On Wed, Oct 10, 2018 at 03:01:13PM -0500, Eric Sandeen wrote:
> libxfs.h exports functions defined in util.c, so include that file to
> silence sparse warnings about potential static functions.
> 
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>
diff mbox series

Patch

diff --git a/libxfs/util.c b/libxfs/util.c
index ffd2650..bd41404 100644
--- a/libxfs/util.c
+++ b/libxfs/util.c
@@ -5,6 +5,7 @@ 
  */
 
 #include "libxfs_priv.h"
+#include "libxfs.h"
 #include "libxfs_io.h"
 #include "init.h"
 #include "xfs_fs.h"