Message ID | 1538712196-13625-8-git-send-email-sandeen@sandeen.net (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | xfsprogs: sparse fixes | expand |
On Thu, Oct 04, 2018 at 11:03:08PM -0500, Eric Sandeen wrote: > From: Eric Sandeen <sandeen@redhat.com> > > MS_* (MS_NOSUID ... etc) get redefined. Fix this by > simply removing the inclusion of mount.h, which isn't needed. > > Fixes sparse warnings about this. Looks good, Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/io/label.c b/io/label.c index df6ac36..602ece8 100644 --- a/io/label.c +++ b/io/label.c @@ -4,7 +4,6 @@ */ #include <sys/ioctl.h> -#include <sys/mount.h> #include "platform_defs.h" #include "libxfs.h" #include "path.h" diff --git a/libfrog/linux.c b/libfrog/linux.c index 2af2675..46f15d6 100644 --- a/libfrog/linux.c +++ b/libfrog/linux.c @@ -6,7 +6,6 @@ #include <mntent.h> #include <sys/stat.h> -#include <sys/mount.h> #include <sys/ioctl.h> #include <sys/sysinfo.h>