]> xenbits.xensource.com Git - xen.git/commitdiff
xen/common: Switch {asm -> xen}/byteorder.h
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 28 Mar 2025 13:06:42 +0000 (13:06 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 18 Apr 2025 14:16:12 +0000 (15:16 +0100)
Sort the includes.  Drop useless includes of xen/types.h

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/bitmap.c
xen/common/libelf/libelf-private.h
xen/drivers/char/ehci-dbgp.c
xen/include/xen/bitmap.h
xen/include/xen/device_tree.h
xen/include/xen/libfdt/libfdt_env.h
xen/include/xen/unaligned.h

index 6c4af09c18cbd72d767265b4e9809b21a6f206fd..bf1a7fd91e36bc8983389bb89a990b9f432d12a5 100644 (file)
@@ -5,14 +5,13 @@
  * This source code is licensed under the GNU General Public License,
  * Version 2.  See the file COPYING for more details.
  */
-#include <xen/types.h>
-#include <xen/errno.h>
 #include <xen/bitmap.h>
 #include <xen/bitops.h>
+#include <xen/byteorder.h>
 #include <xen/cpumask.h>
+#include <xen/errno.h>
 #include <xen/guest_access.h>
 #include <xen/lib.h>
-#include <asm/byteorder.h>
 
 /*
  * bitmaps provide an array of bits, implemented using an an
index 65417dffc8a0906f2fcce2ee99377437ea7bd119..e5c9cc109972f137f51be65af2069f05149c690c 100644 (file)
 
 #ifdef __XEN__
 
+#include <xen/byteorder.h>
 #include <xen/lib.h>
 #include <xen/libelf.h>
 #include <xen/softirq.h>
-#include <asm/byteorder.h>
+
 #include <public/elfnote.h>
 
 /* we would like to use elf->log_callback but we can't because
index 1ad3c6bebf87486e9de23fa8c7c0e0dcad6faadf..e9cd59b25463444a9a800bd93230197cf3230b7e 100644 (file)
@@ -5,15 +5,17 @@
  * Linux; see the Linux source for authorship and copyrights.
  */
 
+#include <xen/byteorder.h>
 #include <xen/console.h>
 #include <xen/delay.h>
 #include <xen/errno.h>
 #include <xen/param.h>
 #include <xen/pci.h>
 #include <xen/serial.h>
-#include <asm/byteorder.h>
+
 #include <asm/io.h>
 #include <asm/fixmap.h>
+
 #include <public/physdev.h>
 
 /* #define DBGP_DEBUG */
index 4b642cd4207b4599a3da396593e97dbe3c625d8f..b5e9cdd3db86f0293aa843a55ee4e20ef8111530 100644 (file)
@@ -230,7 +230,7 @@ static inline unsigned int bitmap_weight(const unsigned long *src,
        return __bitmap_weight(src, nbits);
 }
 
-#include <asm/byteorder.h>
+#include <xen/byteorder.h>
 
 #ifdef __LITTLE_ENDIAN
 #define BITMAP_MEM_ALIGNMENT 8
index 0ff80fda04da20e6a87e17e1cd4ffeb4c28180e0..6dc1fb5159cd71093b223b7ff8f638f97e680e04 100644 (file)
@@ -10,7 +10,8 @@
 #ifndef __XEN_DEVICE_TREE_H__
 #define __XEN_DEVICE_TREE_H__
 
-#include <asm/byteorder.h>
+#include <xen/byteorder.h>
+
 #include <asm/device.h>
 #include <public/xen.h>
 #include <public/device_tree_defs.h>
index 8368787391b7ec9decdcf8a5309cfc8bc4bb2186..04abc6bb68c6da4e406423691b05f558897a4a18 100644 (file)
@@ -7,9 +7,8 @@
  * Copyright 2012 Kim Phillips, Freescale Semiconductor.
  */
 
-#include <xen/types.h>
+#include <xen/byteorder.h>
 #include <xen/string.h>
-#include <asm/byteorder.h>
 
 #ifdef __CHECKER__
 #define FDT_FORCE __attribute__((force))
index 8c8b08338b8d406b89b6008c044da480db227c7a..e64813ab4b20db908092eaef11c5a73d6fa073c3 100644 (file)
@@ -3,8 +3,7 @@
 #define __XEN_UNALIGNED_H__
 
 #ifdef __XEN__
-#include <xen/types.h>
-#include <asm/byteorder.h>
+#include <xen/byteorder.h>
 #endif
 
 /*