linux/scripts/dtc
Russell King e66186920b scripts/dtc: fix '%zx' warning
dtc uses an incorrect format specifier for printing a uint64_t value.
uint64_t may be either 'unsigned long' or 'unsigned long long' depending
on the host architecture.

Fix this by using %llx and casting to unsigned long long, which ensures
that we always have a wide enough variable to print 64 bits of hex.

    HOSTCC  scripts/dtc/checks.o
  scripts/dtc/checks.c: In function 'check_simple_bus_reg':
  scripts/dtc/checks.c:876:2: warning: format '%zx' expects argument of type 'size_t', but argument 4 has type 'uint64_t' [-Wformat=]
    snprintf(unit_addr, sizeof(unit_addr), "%zx", reg);
    ^
  scripts/dtc/checks.c:876:2: warning: format '%zx' expects argument of type 'size_t', but argument 4 has type 'uint64_t' [-Wformat=]

Link: http://lkml.kernel.org/r/20170829222034.GJ20805@n2100.armlinux.org.uk
Fixes: 828d4cdd01 ("dtc: check.c fix compile error")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-08-31 16:33:15 -07:00
..
include-prefixes devicetree: Move include prefixes from arch to separate directory 2017-05-18 23:55:48 -07:00
libfdt scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
.gitignore kbuild: trivial - remove trailing empty lines 2014-06-10 00:04:06 +02:00
Makefile script: dtc: clean generated files 2012-11-21 15:53:22 +00:00
Makefile.dtc dtc: import latest upstream dtc 2012-10-01 11:11:35 -05:00
checks.c scripts/dtc: fix '%zx' warning 2017-08-31 16:33:15 -07:00
data.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
dt_to_config scripts: Switch to more portable Perl shebang 2017-05-14 11:20:44 +09:00
dtc-lexer.l scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
dtc-lexer.lex.c_shipped scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
dtc-parser.tab.c_shipped scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
dtc-parser.tab.h_shipped scripts/dtc: Update to upstream version 0931cea3ba20 2017-01-04 10:47:53 -06:00
dtc-parser.y scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
dtc.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
dtc.h scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
dtx_diff scripts/dtc: dtx_diff - update include dts paths to match build 2017-07-20 09:46:50 -05:00
fdtdump.c dtc: import latest upstream dtc 2012-10-01 11:11:35 -05:00
fdtget.c dtc: import latest upstream dtc 2012-10-01 11:11:35 -05:00
fdtput.c dtc: import latest upstream dtc 2012-10-01 11:11:35 -05:00
flattree.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
fstree.c scripts/dtc: Update to upstream version 0931cea3ba20 2017-01-04 10:47:53 -06:00
livetree.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
srcpos.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
srcpos.h scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
treesource.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
update-dtc-source.sh dtc: update warning settings for new bus and node/property name checks 2017-03-29 16:49:41 -05:00
util.c scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
util.h scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00
version_gen.h scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 2017-03-22 14:56:14 -05:00