Commit feafcd97 authored by Kim Phillips's avatar Kim Phillips Committed by Jon Loeliger
Browse files

dtc/libfdt: introduce fdt types for annotation by endian checkers



Projects such as linux and u-boot run sparse on libfdt.  libfdt
contains the notion of endianness via usage of endian conversion
functions such as fdt32_to_cpu.  As such, in order to pass endian
checks, libfdt has to annotate its fdt variables such that sparse
can warn when mixing bitwise and regular integers.  This patch adds
these new fdtXX_t types and, ifdef __CHECKER__ (a symbol sparse
defines), includes the bitwise annotation.

Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
Acked-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 20b866a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment