[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 1/4] tools: rename xen-tools/libs.h file to common-macros.h


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 6 Mar 2023 08:52:08 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GXiHBFC03vjmnJP/fGDU1GJSvwRPTe1uDKumwaogx6w=; b=jP9/YvpwcXUquQSWfGPnJNkniaQD3lE5Lda4y/KqxTLQioE8Gm3YoyHBNpM1YOGy9Kl0EEl1/BBlDhGsOIAv8WSzccf/viJ1aOkauZUAcxC0YscEt4L5Vkt5i4htq+tZHTVu4QhzqY7HNZ9ZJtXUn9iltKYp1hj92NfqN03A/60n5zNk6R8eNm8WmnrUyCk+d5EuNHdiESIyX4NqCLfe3pSt3un9uS2sgPLC2amxCVDlAFeTXJtnpbDAfAaR8V35dPcHxgkB+ScLkB5gtBAh5uEgXQJoE13tbcHEaMnjCxdmwhHu2aCzX0IXIPYpym6MFQm78JZQ6tOziI90ew+2WQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KThnHuubOUXrYxgmSioywnujgAlTBm1Vx45MXgSmyNpDZ8uphpM91XGp462r6J/tqeEl0OilqCqWpYri5nhGcdRDKdUbrmbBxP2X1vfNgHy0jY09dL/aiqkwtmvsimSS+PSj2YBR7sQJKmpkrYaOQKPcktOrI30rPLjE8t9TSQBzOjNZGzzQtexLxTf6+wZcE49WHZygVRBplwdJFJDeg3aGQwWQkG+RXCk9TLc4ZUu1PsWcYpdfBxGRslBpZvyHxpWUwQ2j2OKqLzblCLh683XlN/o9BFujzfc77fJ3hacHiwEY7nM0c7PPda+xm7bVYB0VNO24OoE0cmbzMthl5g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Tamas K Lengyel <tamas@xxxxxxxxxxxxx>, Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>, Petre Pircalabu <ppircalabu@xxxxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, David Scott <dave@xxxxxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
  • Delivery-date: Mon, 06 Mar 2023 07:52:46 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 06.03.2023 08:21, Juergen Gross wrote:
> In order to better reflect the contents of the header and to make it
> more appropriate to use it for different runtime environments like
> programs, libraries, and firmware, rename the libs.h include file to
> common-macros.h. Additionally add a comment pointing out the need to be
> self-contained.
> 
> Suggested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
> Acked-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx> # 
> tools/python/xen/lowlevel/xc/xc.c

Just as a general remark: I think it would be nice to strive to keep
such scope restriction identifiers short as possible without becoming
ambiguous. With this ...

> ---
>  tools/console/daemon/io.c                         |  2 +-
>  tools/fuzz/cpu-policy/afl-policy-fuzzer.c         |  2 +-
>  .../include/xen-tools/{libs.h => common-macros.h} | 15 ++++++++++++---
>  tools/libs/call/buffer.c                          |  2 +-
>  tools/libs/ctrl/xc_pm.c                           |  2 +-
>  tools/libs/ctrl/xc_private.h                      |  2 +-
>  tools/libs/foreignmemory/linux.c                  |  2 +-
>  tools/libs/gnttab/freebsd.c                       |  2 +-
>  tools/libs/gnttab/linux.c                         |  2 +-
>  tools/libs/guest/xg_core_arm.c                    |  2 +-
>  tools/libs/guest/xg_cpuid_x86.c                   |  2 +-
>  tools/libs/guest/xg_dom_arm.c                     |  2 +-
>  tools/libs/guest/xg_dom_bzimageloader.c           |  2 +-
>  tools/libs/guest/xg_dom_x86.c                     |  2 +-
>  tools/libs/guest/xg_sr_common.c                   |  2 +-
>  tools/libs/light/libxl_internal.h                 |  2 +-
>  tools/libs/light/libxl_psr.c                      |  2 +-
>  tools/libs/stat/xenstat_linux.c                   |  2 +-
>  tools/misc/xen-access.c                           |  2 +-
>  tools/misc/xen-cpuid.c                            |  2 +-
>  tools/misc/xen-diag.c                             |  2 +-
>  tools/misc/xen-hptool.c                           |  2 +-
>  tools/misc/xen-livepatch.c                        |  2 +-
>  tools/misc/xen-mfndump.c                          |  2 +-
>  tools/misc/xenpm.c                                |  2 +-
>  tools/ocaml/libs/mmap/xenmmap_stubs.c             |  2 +-
>  tools/ocaml/libs/xc/xenctrl_stubs.c               |  2 +-
>  tools/python/xen/lowlevel/xc/xc.c                 |  2 +-
>  tools/tests/cpu-policy/test-cpu-policy.c          |  2 +-
>  tools/tests/paging-mempool/test-paging-mempool.c  |  2 +-
>  tools/tests/resource/test-resource.c              |  2 +-
>  tools/tests/tsx/test-tsx.c                        |  2 +-
>  tools/tests/vhpet/emul.h                          |  2 +-
>  tools/tests/x86_emulator/x86-emulate.h            |  2 +-
>  tools/tests/xenstore/test-xenstore.c              |  2 +-
>  tools/xenstore/utils.h                            |  2 +-
>  tools/xentrace/analyze.h                          |  2 +-
>  tools/xl/xl_cmdtable.c                            |  2 +-
>  xen/lib/x86/private.h                             |  2 +-
>  39 files changed, 50 insertions(+), 41 deletions(-)
>  rename tools/include/xen-tools/{libs.h => common-macros.h} (82%)

... diffstat, tools/python/ would be sufficient here imo. (As noted
earlier, I consider the marker unnecessary here, just like
Christian's isn't scope restricted to tools/ocaml/. While I accept
that views may differ here, I think it would be helpful if within a
patch optional scope restrictions were all present or all absent;
ones truly restricting scope are different of course.)

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.