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

[PATCH] xsm: removing inclusion of byteorder.h


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 16 Aug 2023 15:04:25 -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=1692212674; h=Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=0B+TURNoxibXnqrsJG4uYUSmg30KfiNoqPQSfNhYhak=; b=c3Rq8HhoON/RXXQFvhRfKtRxMF4o4czU/nC2s5hoiNwxRMFmo0YkNrQF7isqxFlXfjCuJlY6KZIUYb9j/S6p8Stg2KTndoxmEFzybyy4bjOSQAzitRcZC2APAuzvSSQh+Whv4hz3vrKoyXbIS7j6jl/ptk+Wh3GBvb7Rm7DYKKA=
  • Arc-seal: i=1; a=rsa-sha256; t=1692212674; cv=none; d=zohomail.com; s=zohoarc; b=Y8QBW0PZpMT5oEnpiHxECI5j/A5kiEruZ7qmqswTEqUZN0Ro12sXN6vuzEJjBlcf98L78bMVYzEGJu5jGWpKq89ImzGCWzeTHcFY7F3Q3WKHInwSBa3CX5Eq5oUWZbWPxmp7h0PMTU6O0tyqgNTMlEGh6p9ehXX4e7dfzwJ6PiI=
  • Cc: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Delivered-to: dpsmith@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 16 Aug 2023 19:04:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This is to complement patch 'common: move Linux-inherited fixed width type
decls to common header' by removing the unnecessary include of
'asm/byteorder.h'. In the process of removing these includes, the ordering was
corrected to comply with current coding style.

Signed-off-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
---
 xen/xsm/flask/ss/avtab.c       | 3 +--
 xen/xsm/flask/ss/conditional.c | 9 ++++-----
 xen/xsm/flask/ss/ebitmap.c     | 8 ++++----
 xen/xsm/flask/ss/policydb.c    | 9 ++++-----
 4 files changed, 13 insertions(+), 16 deletions(-)

diff --git a/xen/xsm/flask/ss/avtab.c b/xen/xsm/flask/ss/avtab.c
index 9761d028d8..732004b010 100644
--- a/xen/xsm/flask/ss/avtab.c
+++ b/xen/xsm/flask/ss/avtab.c
@@ -19,11 +19,10 @@
 
 /* Ported to Xen 3.0, George Coker, <gscoker@xxxxxxxxxxxxxx> */
 
+#include <xen/errno.h>
 #include <xen/lib.h>
-#include <asm/byteorder.h>
 #include <xen/types.h>
 #include <xen/xmalloc.h>
-#include <xen/errno.h>
 
 #include "avtab.h"
 #include "policydb.h"
diff --git a/xen/xsm/flask/ss/conditional.c b/xen/xsm/flask/ss/conditional.c
index e74fc01746..f948c6172d 100644
--- a/xen/xsm/flask/ss/conditional.c
+++ b/xen/xsm/flask/ss/conditional.c
@@ -9,16 +9,15 @@
 
 /* Ported to Xen 3.0, George Coker, <gscoker@xxxxxxxxxxxxxx> */
 
-#include <asm/byteorder.h>
-#include <xen/lib.h>
-#include <xen/types.h>
 #include <xen/errno.h>
-#include <xen/string.h>
+#include <xen/lib.h>
 #include <xen/spinlock.h>
+#include <xen/string.h>
+#include <xen/types.h>
 #include <xen/xmalloc.h>
 
-#include "security.h"
 #include "conditional.h"
+#include "security.h"
 
 /*
  * cond_evaluate_expr evaluates a conditional expr
diff --git a/xen/xsm/flask/ss/ebitmap.c b/xen/xsm/flask/ss/ebitmap.c
index e1d0a586a7..2cca25b775 100644
--- a/xen/xsm/flask/ss/ebitmap.c
+++ b/xen/xsm/flask/ss/ebitmap.c
@@ -10,12 +10,12 @@
 
 /* Ported to Xen 3.0, George Coker, <gscoker@xxxxxxxxxxxxxx> */
 
-#include <asm/byteorder.h>
-#include <xen/lib.h>
-#include <xen/xmalloc.h>
+#include <xen/bitmap.h>
 #include <xen/errno.h>
+#include <xen/lib.h>
 #include <xen/spinlock.h>
-#include <xen/bitmap.h>
+#include <xen/xmalloc.h>
+
 #include "ebitmap.h"
 #include "policydb.h"
 
diff --git a/xen/xsm/flask/ss/policydb.c b/xen/xsm/flask/ss/policydb.c
index 7f232f92fa..fd51a5a35d 100644
--- a/xen/xsm/flask/ss/policydb.c
+++ b/xen/xsm/flask/ss/policydb.c
@@ -22,18 +22,17 @@
 
 /* Ported to Xen 3.0, George Coker, <gscoker@xxxxxxxxxxxxxx> */
 
-#include <asm/byteorder.h>
+#include <xen/errno.h>
 #include <xen/lib.h>
+#include <xen/string.h>
 #include <xen/types.h>
 #include <xen/xmalloc.h>
-#include <xen/string.h>
-#include <xen/errno.h>
 #include <conditional.h>
-#include "security.h"
 
-#include "policydb.h"
 #include "conditional.h"
 #include "mls.h"
+#include "policydb.h"
+#include "security.h"
 
 #define _DEBUG_HASHES
 
-- 
2.20.1




 


Rackspace

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