Whamcloud - gitweb
LU-16634 misc: remove unnecessary ioctl typecasts 33/50333/2
authorAndreas Dilger <adilger@whamcloud.com>
Sun, 19 Mar 2023 19:58:04 +0000 (13:58 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 11 Apr 2023 20:01:29 +0000 (20:01 +0000)
commit4a1465577e1310ce09834103f7136bef0e1a1eeb
tree5ee70895e3f8bc43d1c43638968740a960a670c9
parent63a19f6f666b9d18fede66ce8bcd2d799b5e0fa7
LU-16634 misc: remove unnecessary ioctl typecasts

Declare "void __user *uarg" in the ioctl handling code so
that it isn't typecast on every access in the ioctl handler.
Unnecessary typecast risks hiding compiler warnings and bugs.

Convert indentation to tabs for lines previously using spaces.
Change local variable declarations to use only a single space.

Test-Parameters: trivial
Change-Id: I1a0d2f839949debf346aa15c65b0f407e1ce7057
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50333
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Vitaliy Kuznetsov <vkuznetsov@ddn.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_class.h
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/obdclass/class_obd.c
lustre/ofd/ofd_access_log.c