From 7e4109b8b9ac4afd4aca1042db1a6761868107d2 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Tue, 9 Oct 2018 11:49:47 -0500 Subject: [PATCH 1/1] libxfs: avoid redefinitions of macros in mount.h MS_* (MS_NOSUID ... etc) get redefined in after we include , at least on my fairly old set of headers. Fix this by simply removing the inclusion of mount.h, which isn't needed. Fixes sparse warnings about this. Signed-off-by: Eric Sandeen Reviewed-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- io/label.c | 1 - libfrog/linux.c | 1 - 2 files changed, 2 deletions(-) diff --git a/io/label.c b/io/label.c index df6ac369d..602ece896 100644 --- a/io/label.c +++ b/io/label.c @@ -4,7 +4,6 @@ */ #include -#include #include "platform_defs.h" #include "libxfs.h" #include "path.h" diff --git a/libfrog/linux.c b/libfrog/linux.c index 2af2675f5..46f15d6c1 100644 --- a/libfrog/linux.c +++ b/libfrog/linux.c @@ -6,7 +6,6 @@ #include #include -#include #include #include -- 2.39.2