Whamcloud - gitweb
LU-9679 modules: declare zero-arg functions correctly 72/36672/2
authorMr NeilBrown <neilb@suse.de>
Tue, 5 Nov 2019 03:04:32 +0000 (14:04 +1100)
committerOleg Drokin <green@whamcloud.com>
Fri, 6 Dec 2019 01:03:46 +0000 (01:03 +0000)
commitf575372b52833028968b05d16a910372e2d5d994
tree1c5d03cdaa108fe04358a151c34cba67302c75eb
parent546993d587c5fc380e9745eae98f863e02e68575
LU-9679 modules: declare zero-arg functions correctly

Functions that don't take any arguments should be
declared
   return-type name(void)
rather than
   return-type name()

This patch only changes functions that are included in
kernel modules.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I327c57131c4b5008660844a8436fa27df53c16c7
Reviewed-on: https://review.whamcloud.com/36672
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Chris Horn <hornc@cray.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/klnds/gnilnd/gnilnd_modparams.c
lnet/lnet/api-ni.c
lnet/selftest/console.c
lustre/obdclass/cl_object.c
lustre/ptlrpc/pinger.c