]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: lpc-enet: fix printk format strings
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 Aug 2019 14:40:35 +0000 (16:40 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 18 Oct 2019 08:25:52 +0000 (04:25 -0400)
commitbaa208faed28870b761da067504cbcd3c85001a0
tree1fe7180349afc2c4b51265e238101405673cafbc
parentf8df8592f4ab1f9a0daca931f173bf11ca9f64df
net: lpc-enet: fix printk format strings

BugLink: https://bugs.launchpad.net/bugs/1848046
[ Upstream commit de6f97b2bace0e2eb6c3a86e124d1e652a587b56 ]

compile-testing this driver on other architectures showed
multiple warnings:

  drivers/net/ethernet/nxp/lpc_eth.c: In function 'lpc_eth_drv_probe':
  drivers/net/ethernet/nxp/lpc_eth.c:1337:19: warning: format '%d' expects argument of type 'int', but argument 4 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=]

  drivers/net/ethernet/nxp/lpc_eth.c:1342:19: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=]

Use format strings that work on all architectures.

Link: https://lore.kernel.org/r/20190809144043.476786-10-arnd@arndb.de
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/nxp/lpc_eth.c