Skip to content

tools: use xen-tools/libs.h for common definitions

Juergen Gross xen-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 7 repliesIn review
  2. v45 patches 6 repliesSuperseded
  3. v34 patches 8 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches6 repliesSuperseded
v13 patches7 repliesSuperseded

Changes in v5 from the cover letter

- swap patches 1 and 2 in order to avoid build error

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tools: get rid of additional min() and max() definitionstools/firmware/hvmloader/util.h tools/libs/vchan/init.c tools/tests/vpci/Makefile +1 more+6 -252 replies
2/5tools: add container_of() macro to xen-tools/common-macros.htools/include/xen-tools/common-macros.h tools/tests/vpci/emul.h tools/tests/x86_emulator/x86-emulate.h +1 more+7 -151 reply
3/5tools/hvmloader: remove private offsetof() definitiontools/firmware/hvmloader/util.h+0 -32 replies
4/5tools/libfsimage: remove private offsetof() definitiontools/libfsimage/xfs/fsys_xfs.c+1 -31 reply
5/5tools/libs/vchan: remove private offsetof() definitiontools/libs/vchan/init.c+1 -41 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJan BeulichAnthony PERARD
1/5A-b A-b
2/5A-b A-b
3/5A-b
4/5A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

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

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

V5:
- swap patches 1 and 2 in order to avoid build error

Juergen Gross (5):
tools: get rid of additional min() and max() definitions
tools: add container_of() macro to xen-tools/common-macros.h 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 |  5 +++++
 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, 14 insertions(+), 49 deletions(-)
Signature · 1 line
2.35.3