diff options
author | Rui Salvaterra <rsalvaterra@gmail.com> | 2016-04-09 23:05:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-13 18:22:49 +0200 |
commit | dea5c24a14047b7d6b6b269434a85ffd05f1d2cb (patch) | |
tree | 4ed1d7fd655a335acc69ad1acadf368c1c788582 /lib/lz4/lz4defs.h | |
parent | lib: lz4: fixed zram with lz4 on big endian machines (diff) | |
download | linux-dea5c24a14047b7d6b6b269434a85ffd05f1d2cb.tar.xz linux-dea5c24a14047b7d6b6b269434a85ffd05f1d2cb.zip |
lib: lz4: cleanup unaligned access efficiency detection
These identifiers are bogus. The interested architectures should define
HAVE_EFFICIENT_UNALIGNED_ACCESS whenever relevant to do so. If this
isn't true for some arch, it should be fixed in the arch definition.
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r-- | lib/lz4/lz4defs.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/lz4/lz4defs.h b/lib/lz4/lz4defs.h index 0710a62ad2f6..c79d7ea8a38e 100644 --- a/lib/lz4/lz4defs.h +++ b/lib/lz4/lz4defs.h @@ -24,9 +24,7 @@ typedef struct _U16_S { u16 v; } U16_S; typedef struct _U32_S { u32 v; } U32_S; typedef struct _U64_S { u64 v; } U64_S; -#if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) \ - || defined(CONFIG_ARM) && __LINUX_ARM_ARCH__ >= 6 \ - && defined(ARM_EFFICIENT_UNALIGNED_ACCESS) +#if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) #define A16(x) (((U16_S *)(x))->v) #define A32(x) (((U32_S *)(x))->v) |