]> git.dujemihanovic.xyz Git - u-boot.git/commit
fdt: Fix alignment issue when reading 64-bits properties from fdt
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Tue, 22 Oct 2019 08:05:22 +0000 (10:05 +0200)
committerSimon Glass <sjg@chromium.org>
Sun, 27 Oct 2019 19:01:53 +0000 (13:01 -0600)
commitd60ae4c59df55c08dc96202ff58fed21ab3afb7d
tree1d22f0e91bf9091b7da037584cf12fa37f7b0ed4
parent97b5f9d1a0dcae66cf7fe5e892f6dc56d14b0c21
fdt: Fix alignment issue when reading 64-bits properties from fdt

The FDT specification [0] gives a requirement of aligning properties on
32-bits. Make sure that the compiler is aware of this constraint when
accessing 64-bits properties.

[0]: https://github.com/devicetree-org/devicetree-specification/blob/master/source/flattened-format.rst

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/fdt_support.c
drivers/core/ofnode.c
include/linux/libfdt_env.h
lib/fdtdec.c