]> git.baikalelectronics.ru Git - kernel.git/commit
fjes: fix format string for trace output
authorArnd Bergmann <arnd@arndb.de>
Mon, 17 Oct 2016 14:30:57 +0000 (16:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Oct 2016 17:07:52 +0000 (13:07 -0400)
commit308f9e112f6421b79180c03132cd6f5a920dc0e5
treeaf24c8d60bb7d6a49627f6a00dc6edecd290b118
parent41b5b3fab827b5d0be02b922b6cfcab148f149a6
fjes: fix format string for trace output

phys_addr_t may be wider than a pointer and has to be printed
using the special %pap format string, as pointed out by
this new warning.

arch/x86/include/../../../drivers/net/fjes/fjes_trace.h: In function ‘trace_raw_output_fjes_hw_start_debug_req’:
arch/x86/include/../../../drivers/net/fjes/fjes_trace.h:212:563: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]

Note that this has to pass the address by reference instead of
casting it to a different type.

Fixes: 618d056deaa8 ("fjes: ethtool -w and -W support for fjes driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fjes/fjes_trace.h