[PATCH v4 0/5] tools: use xen-tools/libs.h for common definitions

Juergen Gross posted 5 patches 1 year ago
Test gitlab-ci passed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20230322120844.19657-1-jgross@suse.com
There is a newer version of this series
tools/firmware/hvmloader/util.h         | 11 ++---------
tools/include/xen-tools/common-macros.h |  4 ++++
tools/libfsimage/xfs/fsys_xfs.c         |  4 +---
tools/libs/vchan/init.c                 |  8 ++------
tools/tests/vpci/Makefile               |  2 +-
tools/tests/vpci/emul.h                 | 22 +---------------------
tools/tests/x86_emulator/x86-emulate.h  |  5 -----
tools/xenstore/list.h                   |  6 ++----
8 files changed, 13 insertions(+), 49 deletions(-)
[PATCH v4 0/5] tools: use xen-tools/libs.h for common definitions
Posted by Juergen Gross 1 year ago
There are some macros defined multiple times in tools. Use only
a single header file for defining those macros and drop the copies,
or use stddef.h for offsetof().

V2:
- add patch 1 (Andrew Cooper)

V3:
- address comments

V4:
- patch 1 of V3 already applied
- new patches 3-5

Juergen Gross (5):
  tools: add container_of() macro to xen-tools/common-macros.h
  tools: get rid of additional min() and max() definitions
  tools/hvmloader: remove private offsetof() definition
  tools/libfsimage: remove private offsetof() definition
  tools/libs/vchan: remove private offsetof() definition

 tools/firmware/hvmloader/util.h         | 11 ++---------
 tools/include/xen-tools/common-macros.h |  4 ++++
 tools/libfsimage/xfs/fsys_xfs.c         |  4 +---
 tools/libs/vchan/init.c                 |  8 ++------
 tools/tests/vpci/Makefile               |  2 +-
 tools/tests/vpci/emul.h                 | 22 +---------------------
 tools/tests/x86_emulator/x86-emulate.h  |  5 -----
 tools/xenstore/list.h                   |  6 ++----
 8 files changed, 13 insertions(+), 49 deletions(-)

-- 
2.35.3