summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2020-07-13 13:05:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-05 09:59:49 +0200
commit5b235c1d90225d1422911a7e4d97fa5be8f987d1 (patch)
tree99b42ab591850d545996dead7e58a2fef0adf768 /tools
parentcac2b7ad091562ab873642b4181c8457c1b39a15 (diff)
downloadlinux-stable-5b235c1d90225d1422911a7e4d97fa5be8f987d1.tar.gz
linux-stable-5b235c1d90225d1422911a7e4d97fa5be8f987d1.tar.bz2
linux-stable-5b235c1d90225d1422911a7e4d97fa5be8f987d1.zip
usb: hso: Fix debug compile warning on sparc32
[ Upstream commit e0484010ec05191a8edf980413fc92f28050c1cc ] On sparc32, tcflag_t is "unsigned long", unlike on all other architectures, where it is "unsigned int": drivers/net/usb/hso.c: In function ‘hso_serial_set_termios’: include/linux/kern_levels.h:5:18: warning: format ‘%d’ expects argument of type ‘unsigned int’, but argument 4 has type ‘tcflag_t {aka long unsigned int}’ [-Wformat=] drivers/net/usb/hso.c:1393:3: note: in expansion of macro ‘hso_dbg’ hso_dbg(0x16, "Termios called with: cflags new[%d] - old[%d]\n", ^~~~~~~ include/linux/kern_levels.h:5:18: warning: format ‘%d’ expects argument of type ‘unsigned int’, but argument 5 has type ‘tcflag_t {aka long unsigned int}’ [-Wformat=] drivers/net/usb/hso.c:1393:3: note: in expansion of macro ‘hso_dbg’ hso_dbg(0x16, "Termios called with: cflags new[%d] - old[%d]\n", ^~~~~~~ As "unsigned long" is 32-bit on sparc32, fix this by casting all tcflag_t parameters to "unsigned int". While at it, use "%u" to format unsigned numbers. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions