include/linux/unaligned/generic.h: fix warning: preprocessor token __force redefinedinclude/linux/unaligned/generic.h:5:9: warning: preprocessor token __force redefinedinclude/linux/compiler.h:10:
include/linux/unaligned/generic.h: fix warning: preprocessor token __force redefinedinclude/linux/unaligned/generic.h:5:9: warning: preprocessor token __force redefinedinclude/linux/compiler.h:10:10: this was the original definitionfixup __force definitions in compat.h code appears to be placedthere as a cover up from a code import from linux when u-boot didn't yethave a compiler.h, introduced by commitb1b4e89a0f3b75854c39a62cae41bad56d210adf "Add LZO decompressor support".Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
show more ...
ARM: Use Linux version for unaligned access codeThe asm-arm/unaligned.h includes linux/unaligned/access_ok.hThis file is unsafe to be used on ARM, since it does an unaligned memoryaccesses which
ARM: Use Linux version for unaligned access codeThe asm-arm/unaligned.h includes linux/unaligned/access_ok.hThis file is unsafe to be used on ARM, since it does an unaligned memoryaccesses which fails on ARM.Lookin at Linux the basic difference seems to be the header"include/asm-arm/unaligned.h". The Linux version of "unaligned.h"does *not* include "access_ok.h" at all. It includes "le_byteshift.h"and "be_byteshift.h" instead.Signed-off-by: Remy Bohmer <linux@bohmer.net>Signed-off-by: Stefan Roese <sr@denx.de>-- include/asm-arm/unaligned.h | 3 - include/linux/unaligned/be_byteshift.h | 70 +++++++++++++++++++++++++++++++++ include/linux/unaligned/le_byteshift.h | 70 +++++++++++++++++++++++++++++++++ 3 files changed, 142 insertions(+), 1 deletion(-) create mode 100644 include/linux/unaligned/be_byteshift.h create mode 100644 include/linux/unaligned/le_byteshift.h
Add LZO decompressor supportThis patch adds LZO decompression support to U-Boot. It is needed forthe upcoming UBIFS support, since UBIFS uses LZO as default compressor/decompressor. Since we only
Add LZO decompressor supportThis patch adds LZO decompression support to U-Boot. It is needed forthe upcoming UBIFS support, since UBIFS uses LZO as default compressor/decompressor. Since we only support read-only in UBIFS, only thedecompressor is needed.All this is copied with minor changes from the current Linux kernelversion (2.6.28-rc8).This patch only implements this LZO decompressor support for PPC.Other platforms using UBIFS will have to add the required"include/asm/unaligned.h" as well. It should be fairly easy to copy thisfrom the Linux source tree as I have done it for PPC in this patch.Signed-off-by: Stefan Roese <sr@denx.de>