xen: remove asm/unaligned.h

With include/xen/unaligned.h now dealing properly with unaligned
accesses for all architectures, asm/unaligned.h can be removed and
users can be switched to include xen/unaligned.h instead.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Juergen Gross authored and Andrew Cooper committed 2023-12-21 12:19:40 +00:00
1 parent f61685f1fa
commit 49818cde63
8 files changed
+7 -13

No files matched your search

-6
View File
@@ -1,6 +0,0 @@
#ifndef __ASM_UNALIGNED_H__
#define __ASM_UNALIGNED_H__
#include <xen/unaligned.h>
#endif /* __ASM_UNALIGNED_H__ */
+1 -1
View File
@@ -10,7 +10,7 @@
#ifdef __XEN__
#include <asm/byteorder.h>
#include <asm/unaligned.h>
#include <xen/unaligned.h>
#else
static inline u16 get_unaligned_le16(const void *p)
+1 -1
View File
@@ -97,7 +97,7 @@
#ifdef __XEN__
#include <xen/lib.h>
#include <asm/byteorder.h>
#include <asm/unaligned.h>
#include <xen/unaligned.h>
#else
#define get_unaligned_le16(_p) (*(u16 *)(_p))
#endif
+1 -1
View File
@@ -34,7 +34,7 @@
#ifdef __XEN__
#include <asm/byteorder.h>
#include <asm/unaligned.h>
#include <xen/unaligned.h>
#else
static inline u16 get_unaligned_be16(const void *p)
+1 -1
View File
@@ -13,7 +13,7 @@
#ifdef __XEN__
#include <xen/kernel.h>
#include <asm/byteorder.h>
#include <asm/unaligned.h>
#include <xen/unaligned.h>
#else
static inline u32 get_unaligned_le32(const void *p)
+1 -1
View File
@@ -23,7 +23,7 @@
#ifdef __XEN__
#include <xen/string.h> /* memcpy */
#include <xen/types.h> /* size_t, ptrdiff_t */
#include <asm/unaligned.h>
#include <xen/unaligned.h>
#endif
/*-****************************************
+1 -1
View File
@@ -42,7 +42,7 @@
#include <xen/errno.h>
#include <xen/string.h>
#include <xen/xxhash.h>
#include <asm/unaligned.h>
#include <xen/unaligned.h>
/*-*************************************
* Macros
+1 -1
View File
@@ -43,7 +43,7 @@
#include <xen/errno.h>
#include <xen/string.h>
#include <xen/xxhash.h>
#include <asm/unaligned.h>
#include <xen/unaligned.h>
#endif
/*-*************************************
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.