dtc: check.c fix compile error
authorShuah Khan <shuahkh@osg.samsung.com>
Tue, 16 May 2017 16:08:08 +0000 (10:08 -0600)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 7 Sep 2018 08:16:59 +0000 (01:16 -0700)
commitcdeeed6a6e7b33b3970925f173c021f9f7ffa424
treef2ee03fc5bff6a1b0531cc1962bc72b8a3e99791
parent6ff92ca0e155196c62b64eb50f851cf9440f7f90
dtc: check.c fix compile error

PD#173147: update dtc to v1.4.4

Fix the following compile error found on odroid-xu4:

checks.c: In function ‘check_simple_bus_reg’:
checks.c:876:41: error: format ‘%lx’ expects argument of type
‘long unsigned int’, but argument 4 has type
‘uint64_t{aka long long unsigned int}’ [-Werror=format=]
  snprintf(unit_addr, sizeof(unit_addr), "%lx", reg);
                                         ^
checks.c:876:41: error: format ‘%lx’ expects argument of type
‘long unsigned int’, but argument 4 has type
‘uint64_t {aka long long unsigned int}’ [-Werror=format=]
cc1: all warnings being treated as errors
Makefile:304: recipe for target 'checks.o' failed
make: *** [checks.o] Error 1

Change-Id: I070dedf5201d8b299748ad4881b5f1a1a1c9ef4f
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
[dwg: Correct new format to be correct in general]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
[robh: cherry-picked from upstream dtc commit 2a42b14d0d03]
Signed-off-by: Rob Herring <robh@kernel.org>
scripts/dtc/checks.c