Message ID | 20230323090859.25240-5-jgross@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | tools: use xen-tools/libs.h for common definitions | expand |
On Thu, Mar 23, 2023 at 10:08:58AM +0100, Juergen Gross wrote: > xfs/fsys_xfs.c is defining offsetof privately. Remove that definition > and just use stddef.h instead. > > Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Anthony PERARD <anthony.perard@citrix.com> Thanks,
diff --git a/tools/libfsimage/xfs/fsys_xfs.c b/tools/libfsimage/xfs/fsys_xfs.c index d735a88e55..b8b4ca928c 100644 --- a/tools/libfsimage/xfs/fsys_xfs.c +++ b/tools/libfsimage/xfs/fsys_xfs.c @@ -17,6 +17,7 @@ * along with this program; If not, see <http://www.gnu.org/licenses/>. */ +#include <stddef.h> #include <xenfsimage_grub.h> #include "xfs.h" @@ -182,9 +183,6 @@ fsb2daddr (xfs_fsblock_t fsbno) (xfs_agblock_t)(fsbno & mask32lo(xfs.agblklog))); } -#undef offsetof -#define offsetof(t,m) ((size_t)&(((t *)0)->m)) - static inline int btroot_maxrecs (fsi_file_t *ffi) {
xfs/fsys_xfs.c is defining offsetof privately. Remove that definition and just use stddef.h instead. Signed-off-by: Juergen Gross <jgross@suse.com> --- V4: - new patch --- tools/libfsimage/xfs/fsys_xfs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)