Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: sunxi-rsb: fix error output type

"len" is actually a size_t in this function here, so properly annotate
the dev_err printf type to allow compilation for 64-bit architectures.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

authored by

Andre Przywara and committed by
Maxime Ripard
2d3e8f70 92e963f5

+2 -2
+2 -2
drivers/bus/sunxi-rsb.c
··· 330 330 cmd = RSB_CMD_RD32; 331 331 break; 332 332 default: 333 - dev_err(rsb->dev, "Invalid access width: %d\n", len); 333 + dev_err(rsb->dev, "Invalid access width: %zd\n", len); 334 334 return -EINVAL; 335 335 } 336 336 ··· 372 372 cmd = RSB_CMD_WR32; 373 373 break; 374 374 default: 375 - dev_err(rsb->dev, "Invalid access width: %d\n", len); 375 + dev_err(rsb->dev, "Invalid access width: %zd\n", len); 376 376 return -EINVAL; 377 377 } 378 378