All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] tools: use xen-tools/libs.h for common definitions
@ 2023-03-22 12:08 Juergen Gross
  2023-03-22 12:08 ` [PATCH v4 1/5] tools: add container_of() macro to xen-tools/common-macros.h Juergen Gross
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Juergen Gross @ 2023-03-22 12:08 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Wei Liu, Anthony PERARD, Jan Beulich,
	Andrew Cooper, Roger Pau Monné,
	Julien Grall

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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-03-22 13:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22 12:08 [PATCH v4 0/5] tools: use xen-tools/libs.h for common definitions Juergen Gross
2023-03-22 12:08 ` [PATCH v4 1/5] tools: add container_of() macro to xen-tools/common-macros.h Juergen Gross
2023-03-22 12:34   ` Jan Beulich
2023-03-22 12:44     ` Juergen Gross
2023-03-22 12:08 ` [PATCH v4 2/5] tools: get rid of additional min() and max() definitions Juergen Gross
2023-03-22 12:38   ` Jan Beulich
2023-03-22 13:10     ` Juergen Gross
2023-03-22 12:08 ` [PATCH v4 3/5] tools/hvmloader: remove private offsetof() definition Juergen Gross
2023-03-22 12:42   ` Jan Beulich
2023-03-22 12:47     ` Juergen Gross
2023-03-22 12:08 ` [PATCH v4 4/5] tools/libfsimage: " Juergen Gross
2023-03-22 12:08 ` [PATCH v4 5/5] tools/libs/vchan: " Juergen Gross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.