]> code.ossystems Code Review - openembedded-core.git/commit
dtc: Fix array-bounds error
authorKhem Raj <raj.khem@gmail.com>
Sat, 27 Feb 2021 07:41:31 +0000 (23:41 -0800)
committerSteve Sakoman <steve@sakoman.com>
Thu, 11 Mar 2021 15:00:02 +0000 (05:00 -1000)
commit7f1968a096301aade2afc4b7eceb7a69e4ab364c
tree621880f1b7be2d6454919eeca7ac0652b2517edd
parent5cdb675b4219e33eb9f8a5b3be1a6c9efe2099fc
dtc: Fix array-bounds error

Fixes
| libfdt/libfdt.h:251:28: error: array subscript 'struct fdt_header[0]' is partly outside array bounds of 'unsigned char[4]' [-Werror=array-bounds]
|   251 |                 fdth->name = cpu_to_fdt32(val); \
|       |                 ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cd4fe4ec658ce4861fc970149f78b0ca7fda8fe0)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-kernel/dtc/dtc/0001-fdtdump-Fix-gcc11-warning.patch [new file with mode: 0644]
meta/recipes-kernel/dtc/dtc_1.6.0.bb