From: Anthony PERARD <anthony@xenproject.org>
To: dmkhn@proton.me
Cc: xen-devel@lists.xenproject.org, andrew.cooper3@citrix.com,
anthony.perard@vates.tech, jbeulich@suse.com, julien@xen.org,
michal.orzel@amd.com, roger.pau@citrix.com,
sstabellini@kernel.org, dmukhin@ford.com
Subject: Re: [PATCH v16 2/4] tools/include: move xc_bitops.h to xen-tools/bitops.h
Date: Mon, 25 Aug 2025 11:30:20 +0200 [thread overview]
Message-ID: <aKwtLMAslH6v5L82@l14> (raw)
In-Reply-To: <20250812223024.2364749-3-dmukhin@ford.com>
On Tue, Aug 12, 2025 at 10:30:45PM +0000, dmkhn@proton.me wrote:
> diff --git a/tools/libs/guest/xg_dom_elfloader.c b/tools/libs/guest/xg_dom_elfloader.c
> index f17930d98bf7..8531e90f8e21 100644
> --- a/tools/libs/guest/xg_dom_elfloader.c
> +++ b/tools/libs/guest/xg_dom_elfloader.c
> @@ -25,8 +25,9 @@
> #include <stdarg.h>
> #include <inttypes.h>
>
> +#include <xen-tools/bitops.h>
It doesn't looks like xg_dom_elfloader.c is using anything from
bitops.h. The last use of it was probably removed in ed04ca95981f
("libelf: rewrite symtab/strtab loading")
> +
> #include "xg_private.h"
> -#include "xc_bitops.h"
>
> #define XEN_VER "xen-3.0"
>
> diff --git a/tools/libs/guest/xg_dom_hvmloader.c b/tools/libs/guest/xg_dom_hvmloader.c
> index 39e1e5f579a7..0f569c20c522 100644
> --- a/tools/libs/guest/xg_dom_hvmloader.c
> +++ b/tools/libs/guest/xg_dom_hvmloader.c
> @@ -24,8 +24,9 @@
> #include <inttypes.h>
> #include <assert.h>
>
> +#include <xen-tools/bitops.h>
> +
I think there's two reason to remove this include:
- it doesn't looks like xg_dom_hvmloader.c is using any macro from it.
- bitops.h is already included by xg_private.h.
> #include "xg_private.h"
> -#include "xc_bitops.h"
>
> /* ------------------------------------------------------------------------ */
> /* parse elf binary */
> diff --git a/tools/libs/guest/xg_sr_common.h b/tools/libs/guest/xg_sr_common.h
> index 2f058ee3a6ff..2e583f2eac72 100644
> --- a/tools/libs/guest/xg_sr_common.h
> +++ b/tools/libs/guest/xg_sr_common.h
> @@ -2,11 +2,10 @@
> #define __COMMON__H
>
> #include <stdbool.h>
> +#include <xen-tools/bitops.h>
It's already included in xg_private.h, so this feels unnecessary.
>
> #include "xg_private.h"
> #include "xg_save_restore.h"
> -#include "xc_bitops.h"
> -
If the extraneous includes could be removed, that would be nice. In
anycase:
Acked-by: Anthony PERARD <anthony.perard@vates.tech>
Thanks,
--
Anthony PERARD
next prev parent reply other threads:[~2025-08-25 9:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-12 22:30 [PATCH v16 0/4] xen/domain: domain ID allocation dmkhn
2025-08-12 22:30 ` [PATCH v16 1/4] xen/domain: unify " dmkhn
2025-08-14 7:11 ` Jan Beulich
2025-08-19 23:58 ` dmkhn
2025-08-21 7:16 ` Jan Beulich
2025-08-21 10:29 ` Alejandro Vallejo
2025-08-26 9:52 ` dmkhn
2025-08-26 9:53 ` dmkhn
2025-08-26 9:53 ` dmkhn
2025-08-20 21:33 ` Julien Grall
2025-08-26 9:51 ` dmkhn
2025-08-29 23:32 ` dmukhin
2025-08-12 22:30 ` [PATCH v16 2/4] tools/include: move xc_bitops.h to xen-tools/bitops.h dmkhn
2025-08-25 9:30 ` Anthony PERARD [this message]
2025-08-26 9:28 ` dmkhn
2025-08-12 22:30 ` [PATCH v16 3/4] tools/tests: introduce unit tests for domain ID allocator dmkhn
2025-08-25 13:47 ` Anthony PERARD
2025-08-26 9:48 ` dmkhn
2025-08-12 22:30 ` [PATCH v16 4/4] xen/domain: update create_dom0() messages dmkhn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aKwtLMAslH6v5L82@l14 \
--to=anthony@xenproject.org \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=dmkhn@proton.me \
--cc=dmukhin@ford.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.