On 3/28/25 2:44 PM, Andrew Cooper wrote:
With the common code moved fully onto xen/byteorder.h, clean up the dregs.
The use of byteorder.h in io.h appears to have been copy&paste from ARM. It's
not needed, but macros and types are.
No functional change.
Signed-off-by: Andrew Cooper<andrew.coop...@citrix.com>
Reviewed-by:Oleksii Kurochko <oleksii.kuroc...@gmail.com>
Thanks.
~ Oleksii
---
CC: Anthony PERARD<anthony.per...@vates.tech>
CC: Michal Orzel<michal.or...@amd.com>
CC: Jan Beulich<jbeul...@suse.com>
CC: Julien Grall<jul...@xen.org>
CC: Roger Pau Monné<roger....@citrix.com>
CC: Stefano Stabellini<sstabell...@kernel.org>
CC: Volodymyr Babchuk<volodymyr_babc...@epam.com>
CC: Bertrand Marquis<bertrand.marq...@arm.com>
CC: Shawn Anastasio<sanasta...@raptorengineering.com>
CC: Oleksii Kurochko<oleksii.kuroc...@gmail.com>
CC: Daniel P. Smith<dpsm...@apertussolutions.com>
CC: Lin Liu<lin....@citrix.com>
v5:
* New
---
xen/arch/riscv/include/asm/byteorder.h | 14 --------------
xen/arch/riscv/include/asm/io.h | 3 ++-
2 files changed, 2 insertions(+), 15 deletions(-)
delete mode 100644 xen/arch/riscv/include/asm/byteorder.h
diff --git a/xen/arch/riscv/include/asm/byteorder.h
b/xen/arch/riscv/include/asm/byteorder.h
deleted file mode 100644
index a32bca02df38..000000000000
--- a/xen/arch/riscv/include/asm/byteorder.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef ASM__RISCV__BYTEORDER_H
-#define ASM__RISCV__BYTEORDER_H
-
-#include <xen/byteorder.h>
-
-#endif /* ASM__RISCV__BYTEORDER_H */
-/*
- * Local variables:
- * mode: C
- * c-file-style: "BSD"
- * c-basic-offset: 4
- * indent-tabs-mode: nil
- * End:
- */
diff --git a/xen/arch/riscv/include/asm/io.h b/xen/arch/riscv/include/asm/io.h
index 55f329dde321..8bab4ffa0390 100644
--- a/xen/arch/riscv/include/asm/io.h
+++ b/xen/arch/riscv/include/asm/io.h
@@ -38,7 +38,8 @@
#ifndef ASM__RISCV__IO_H
#define ASM__RISCV__IO_H
-#include <asm/byteorder.h>
+#include <xen/macros.h>
+#include <xen/types.h>
/*
* The RISC-V ISA doesn't yet specify how to query or modify PMAs, so we can't