Skip to content

Commit

Permalink
xen: remove asm/unaligned.h
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Jan Beulich <[email protected]>
  • Loading branch information
jgross1 authored and andyhhp committed Dec 21, 2023
1 parent f61685f commit 49818cd
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 13 deletions.
6 changes: 0 additions & 6 deletions xen/arch/x86/include/asm/unaligned.h

This file was deleted.

2 changes: 1 addition & 1 deletion xen/common/lz4/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion xen/common/lzo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion xen/common/unlzo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion xen/common/xz/private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion xen/common/zstd/mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*-****************************************
Expand Down
2 changes: 1 addition & 1 deletion xen/lib/xxhash32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion xen/lib/xxhash64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*-*************************************
Expand Down

0 comments on commit 49818cd

Please sign in to comment.