fs: compat: Remove warning from COMPATIBLE_IOCTL
authorMark Charlebois <charlebm@gmail.com>
Fri, 28 Apr 2017 22:15:12 +0000 (15:15 -0700)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:44 +0000 (21:13 +0000)
commit01bec25fefe33c2ba79e56b804739e210d45579e
tree33c1ae686754cda6543b0e160252aa3692dde00c
parent2f2686a8da7cad2061c7be118c8363f5eca6b240
fs: compat: Remove warning from COMPATIBLE_IOCTL

commit 9280cdd6fe5b8287a726d24cc1d558b96c8491d7 upstream.

cmd in COMPATIBLE_IOCTL is always a u32, so cast it so there isn't a
warning about an overflow in XFORM.

From: Mark Charlebois <charlebm@gmail.com>
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/compat_ioctl.c