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

Re: [PATCH v2 5/7] xen/xsm: Switch to byteswap.h


  • To: Lin Liu <lin.liu@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 22 Oct 2021 11:46:57 -0400
  • Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=apertussolutions.com; spf=pass smtp.mailfrom=dpsmith@xxxxxxxxxxxxxxxxxxxx; dmarc=pass header.from=<dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634917621; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=wVSldqCk0cvU2+ib2AagL3niuW4Ej9KCLbBqbxcPsBM=; b=OGLQrYkz3GTVQs+yIr5PPYLIZxvNNneD2nRpP7hbVPrEpKbtt9+bgUfWHIGh72AFpIlodNsxe02rWzFPFWd27plEuuoNLzVT0LhLFzdyUlMZrbRC6lp3kCsARQxDUyxzt97MACMxwZwC72dRKgyXe+MsKu9LUGFGVmz8deTqzrc=
  • Arc-seal: i=1; a=rsa-sha256; t=1634917621; cv=none; d=zohomail.com; s=zohoarc; b=L6i8OcuXs3Gk5mZxNMMklATyInx8pZj8xfmLD/9edXNbLNBmXwuqWLphuLGJTbcTWjsHQNdwuwEL7WyBLTgaIsFEpGDOb1Ndf11kZkOk9qmTQku6G6r+zFphUopH96hq2QgftuxHTkzJfqYxTmaLBqLtR186itE89066+EhX420=
  • Cc: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
  • Delivery-date: Fri, 22 Oct 2021 15:47:17 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 10/22/21 6:47 AM, Lin Liu wrote:
> Update to use byteswap.h to swap bytes
> 
> No functional change
> 
> Signed-off-by: Lin Liu <lin.liu@xxxxxxxxxx>
> ---
> Cc: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
> Cc: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
> ---
>  xen/xsm/flask/ss/avtab.c       | 2 +-
>  xen/xsm/flask/ss/conditional.c | 2 +-
>  xen/xsm/flask/ss/ebitmap.c     | 2 +-
>  xen/xsm/flask/ss/policydb.c    | 2 +-
>  4 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/xen/xsm/flask/ss/avtab.c b/xen/xsm/flask/ss/avtab.c
> index bfc91c8b0c..1fa796f625 100644
> --- a/xen/xsm/flask/ss/avtab.c
> +++ b/xen/xsm/flask/ss/avtab.c
> @@ -19,8 +19,8 @@
>  
>  /* Ported to Xen 3.0, George Coker, <gscoker@xxxxxxxxxxxxxx> */
>  
> +#include <xen/byteswap.h>
>  #include <xen/lib.h>
> -#include <asm/byteorder.h>
>  #include <xen/types.h>
>  #include <xen/xmalloc.h>
>  #include <xen/errno.h>
> diff --git a/xen/xsm/flask/ss/conditional.c b/xen/xsm/flask/ss/conditional.c
> index 3e58aea551..059f6e07e5 100644
> --- a/xen/xsm/flask/ss/conditional.c
> +++ b/xen/xsm/flask/ss/conditional.c
> @@ -9,7 +9,7 @@
>  
>  /* Ported to Xen 3.0, George Coker, <gscoker@xxxxxxxxxxxxxx> */
>  
> -#include <asm/byteorder.h>
> +#include <xen/byteswap.h>
>  #include <xen/lib.h>
>  #include <xen/types.h>
>  #include <xen/errno.h>
> diff --git a/xen/xsm/flask/ss/ebitmap.c b/xen/xsm/flask/ss/ebitmap.c
> index e1d0a586a7..1550437c6f 100644
> --- a/xen/xsm/flask/ss/ebitmap.c
> +++ b/xen/xsm/flask/ss/ebitmap.c
> @@ -10,7 +10,7 @@
>  
>  /* Ported to Xen 3.0, George Coker, <gscoker@xxxxxxxxxxxxxx> */
>  
> -#include <asm/byteorder.h>
> +#include <xen/byteswap.h>
>  #include <xen/lib.h>
>  #include <xen/xmalloc.h>
>  #include <xen/errno.h>
> diff --git a/xen/xsm/flask/ss/policydb.c b/xen/xsm/flask/ss/policydb.c
> index 9426164353..595005c3b7 100644
> --- a/xen/xsm/flask/ss/policydb.c
> +++ b/xen/xsm/flask/ss/policydb.c
> @@ -22,7 +22,7 @@
>  
>  /* Ported to Xen 3.0, George Coker, <gscoker@xxxxxxxxxxxxxx> */
>  
> -#include <asm/byteorder.h>
> +#include <xen/byteswap.h>
>  #include <xen/lib.h>
>  #include <xen/types.h>
>  #include <xen/xmalloc.h>
> 

Reviewed by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>



 


Rackspace

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