]> git.baikalelectronics.ru Git - kernel.git/commit
bus: mvebu-mbus: use %pa to print phys_addr_t
authorArnd Bergmann <arnd@arndb.de>
Tue, 15 Mar 2016 10:03:39 +0000 (11:03 +0100)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 30 Mar 2016 09:36:01 +0000 (11:36 +0200)
commit183a500a9209c5fd18f03e72dc5f6a62dea9fe69
tree15f9917458a57cbe5b2ef8c7814b6ec767480fe2
parentc40b63c04950cd745a34a62bdf37894058201eab
bus: mvebu-mbus: use %pa to print phys_addr_t

A recent change to the mbus driver added a warning printk that
prints a phys_addr_t using the %x format string, which fails in
case we build with 64-bit phys_addr_t:

drivers/bus/mvebu-mbus.c: In function 'mvebu_mbus_get_dram_win_info':
drivers/bus/mvebu-mbus.c:975:9: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'phys_addr_t {aka long long unsigned int}' [-Werror=format=]

This uses the special %pa format string instead, so we always
print the correct type.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: b62c4fc6d0fe ("bus: mvebu-mbus: provide api for obtaining IO and DRAM window information")
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
drivers/bus/mvebu-mbus.c