Message ID | 158086358002.2079557.9233731246621270812.stgit@magnolia (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | xfsprogs: random fixes | expand |
On 2/4/20 5:46 PM, Darrick J. Wong wrote: > From: Darrick J. Wong <darrick.wong@oracle.com> > > libfrog isn't supposed to depend on libxfs, so don't include the header > file in the libfrog source code. > > Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> > Reviewed-by: Eric Sandeen <sandeen@redhat.com> Looks ok Reviewed-by: Allison Collins <allison.henderson@oracle.com> > --- > libfrog/fsgeom.c | 4 +++- > libfrog/linux.c | 4 ++-- > 2 files changed, 5 insertions(+), 3 deletions(-) > > > diff --git a/libfrog/fsgeom.c b/libfrog/fsgeom.c > index 19a4911f..bd93924e 100644 > --- a/libfrog/fsgeom.c > +++ b/libfrog/fsgeom.c > @@ -2,7 +2,9 @@ > /* > * Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved. > */ > -#include "libxfs.h" > +#include "platform_defs.h" > +#include "xfs.h" > +#include "bitops.h" > #include "fsgeom.h" > #include "util.h" > > diff --git a/libfrog/linux.c b/libfrog/linux.c > index 79bd79eb..41a168b4 100644 > --- a/libfrog/linux.c > +++ b/libfrog/linux.c > @@ -9,8 +9,8 @@ > #include <sys/ioctl.h> > #include <sys/sysinfo.h> > > -#include "libxfs_priv.h" > -#include "xfs_fs.h" > +#include "platform_defs.h" > +#include "xfs.h" > #include "init.h" > > extern char *progname; >
On Tue, Feb 04, 2020 at 04:46:20PM -0800, Darrick J. Wong wrote: > From: Darrick J. Wong <darrick.wong@oracle.com> > > libfrog isn't supposed to depend on libxfs, so don't include the header > file in the libfrog source code. > > Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> > Reviewed-by: Eric Sandeen <sandeen@redhat.com> Looks good, Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/libfrog/fsgeom.c b/libfrog/fsgeom.c index 19a4911f..bd93924e 100644 --- a/libfrog/fsgeom.c +++ b/libfrog/fsgeom.c @@ -2,7 +2,9 @@ /* * Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved. */ -#include "libxfs.h" +#include "platform_defs.h" +#include "xfs.h" +#include "bitops.h" #include "fsgeom.h" #include "util.h" diff --git a/libfrog/linux.c b/libfrog/linux.c index 79bd79eb..41a168b4 100644 --- a/libfrog/linux.c +++ b/libfrog/linux.c @@ -9,8 +9,8 @@ #include <sys/ioctl.h> #include <sys/sysinfo.h> -#include "libxfs_priv.h" -#include "xfs_fs.h" +#include "platform_defs.h" +#include "xfs.h" #include "init.h" extern char *progname;