summaryrefslogtreecommitdiff
path: root/mm/cma.c
diff options
context:
space:
mode:
authorKent Gibson <warthog618@gmail.com>2021-01-07 07:00:20 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2021-01-18 12:05:35 +0300
commit1fc7c1ef37f86f207b4db40aba57084bb2f6a69a (patch)
tree331f39458029a5d054b58bd7bfeef6c303db4f3e /mm/cma.c
parent2fe7c2f99440d52613e1cf845c96e8e463c28111 (diff)
downloadlinux-1fc7c1ef37f86f207b4db40aba57084bb2f6a69a.tar.xz
tools: gpio: fix %llu warning in gpio-watch.c
Some platforms, such as mips64, don't map __u64 to long long unsigned int so using %llu produces a warning: gpio-watch.c: In function ‘main’: gpio-watch.c:89:30: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘__u64’ {aka ‘long unsigned int’} [-Wformat=] 89 | printf("line %u: %s at %llu\n", | ~~~^ | | | long long unsigned int | %lu 90 | chg.info.offset, event, chg.timestamp_ns); | ~~~~~~~~~~~~~~~~ | | | __u64 {aka long unsigned int} Replace the %llu with PRIu64 and cast the argument to uint64_t. Fixes: 33f0c47b8fb4 ("tools: gpio: implement gpio-watch") Signed-off-by: Kent Gibson <warthog618@gmail.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'mm/cma.c')
0 files changed, 0 insertions, 0 deletions