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

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

Juergen Gross (3):
  tools: add container_of() macro to xen-tools/libs.h
  tools: get rid of additional min() and max() definitions
  tools: add offsetof() to xen-tools/libs.h

 tools/firmware/hvmloader/util.h        | 11 ++---------
 tools/firmware/include/stddef.h        |  4 ++--
 tools/include/xen-tools/libs.h         |  8 ++++++++
 tools/libfsimage/Rules.mk              |  2 ++
 tools/libfsimage/xfs/fsys_xfs.c        |  4 +---
 tools/libs/vchan/init.c                |  7 +------
 tools/tests/vhpet/emul.h               | 14 --------------
 tools/tests/vpci/emul.h                | 22 +---------------------
 tools/tests/x86_emulator/x86-emulate.h |  5 -----
 tools/xenstore/list.h                  |  6 ++----
 10 files changed, 19 insertions(+), 64 deletions(-)

-- 
2.35.3