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

Re: [PATCH] tools: Move MASK_INSR to common-macros.h


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Thu, 8 Jun 2023 19:37:08 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=n++UqojOSOM73ZUCVkaPazLm1GBQO/VQViA7ZsVp7VE=; b=LaZFLYP7b27ZzqP7qjQVKHuBsWEZPjjShhQeq4bdWDkku3CTDOAnN66bdZB0VYtZOJNqdcjy1scnF6Qcpwc1HQG1S+lXNHwT9bFpfBz9zDLCw42SjlHk3ZxQOUYW9L+q1XHZcQopesqndFoqrC+k90qpDquDXTs/Wdy+b12S23RD8IGlFcjACgXsebwaALgV6weiHlqAGTy0nyqRMRF7NnhLsc9rpxrKlXXI/5efDUkfKubGnGNvm7C0WTqZg3wSag29ymoW4vJNGfkbcy4uq+ZI2flitpyLgMxDcg+WPGtzkHli5RQLZpVyhTd5dg9yjePyEtYSw6FwaIhhf90hLw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ev9q1X6Ds5aN0ua0/+qXFCWjeCZnB52rjfh5jlsRvP3UaNBb6JRaQczMegM5IC/KMUX49xj7lksavZwQxxLByL2wu097GK1utaRsi9X8co7SLXGylTuJ2sgZHeR6HPluoVfkiesrE2P1fue26IsUSXWYO1i8osrK2vENyKrq5oC1HX7Oi8dsKyd8Mz3/1M+jX+Qn6qKiIXkUiox6D59QBqIfuM3Cyocme99Mu3ZFaxZsS5G0dH3oXlDSeyiqOdafBqMB+jLg9hjC91IFW6rGfyziZx6w2NZAvFkHSudP3srBMrFl8RWDGRvT1TsKCJX5mhPWOagKWtCCYgNh2emf7g==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
  • Delivery-date: Thu, 08 Jun 2023 19:38:17 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZmjBTIpVZOkjuH06O82Z2wJSQ2a+BTMwA
  • Thread-topic: [PATCH] tools: Move MASK_INSR to common-macros.h


> On 8 Jun 2023, at 18:40, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:
> 
> MASK_EXTR() and MASK_INSR() are a matching pair.  Keep them together.
> 
> Fixes: 56a7aaa16bfe ("tools: add physinfo arch_capabilities handling for Arm")

I don’t think this patch is fixing a bug:

### Fixes:

If your patch fixes a bug in a specific commit, e.g. you found an issue using
``git bisect``, please use the `Fixes:` tag with the first 12 characters of
the commit id, and the one line summary.

> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

But it makes sense, so 

Reviewed-by: Luca Fancellu <luca.fancellu@xxxxxxx>

> ---
> CC: Anthony PERARD <anthony.perard@xxxxxxxxxx>
> CC: Juergen Gross <jgross@xxxxxxxx>
> CC: Luca Fancellu <luca.fancellu@xxxxxxx>
> ---
> tools/include/xen-tools/common-macros.h | 1 +
> tools/libs/light/libxl_internal.h       | 2 --
> 2 files changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/tools/include/xen-tools/common-macros.h 
> b/tools/include/xen-tools/common-macros.h
> index d53b88182560..168691be0e93 100644
> --- a/tools/include/xen-tools/common-macros.h
> +++ b/tools/include/xen-tools/common-macros.h
> @@ -73,6 +73,7 @@
> #endif
> 
> #define MASK_EXTR(v, m) (((v) & (m)) / ((m) & -(m)))
> +#define MASK_INSR(v, m) (((v) * ((m) & -(m))) & (m))
> 
> #ifndef __must_check
> #define __must_check __attribute__((__warn_unused_result__))
> diff --git a/tools/libs/light/libxl_internal.h 
> b/tools/libs/light/libxl_internal.h
> index 8aba3e138909..61f4fe1dec55 100644
> --- a/tools/libs/light/libxl_internal.h
> +++ b/tools/libs/light/libxl_internal.h
> @@ -132,8 +132,6 @@
> 
> #define DIV_ROUNDUP(n, d) (((n) + (d) - 1) / (d))
> 
> -#define MASK_INSR(v, m) (((v) * ((m) & -(m))) & (m))
> -
> #define LIBXL__LOGGING_ENABLED
> 
> #ifdef LIBXL__LOGGING_ENABLED
> -- 
> 2.30.2
> 


 


Rackspace

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