Whamcloud - gitweb
LU-12923 utils: Use BUILD_BUG_ON() for wiretest.c 47/36647/3
authorArshad Hussain <arshad.super@gmail.com>
Mon, 28 Oct 2019 22:14:35 +0000 (03:44 +0530)
committerOleg Drokin <green@whamcloud.com>
Fri, 6 Dec 2019 01:13:29 +0000 (01:13 +0000)
commit38392dc0ed32368cc195558a74c6606465beb53b
tree6658055f4afb660ed3a5baa20f538e2b4e88edf3
parent478724469976b6e9b6f6d38253a30d5c0b57243c
LU-12923 utils: Use BUILD_BUG_ON() for wiretest.c

This patch replaces all CLASSERT() with BUILD_BUG_ON()
for file lustre/utils/wiretest.c

This is done by modifying local defined CLASSERT() macro
with BUILD_BUG_ON() macro. This replicates the kernel
defined BUILD_BUG_ON() where it asserts when condition
is true. This is user-space, therefore we cannot use
kernel define BUILD_BUG_ON() here and had to rely locally
defined BUILD_BUG_ON()

This patch also fixes few space/tab issues reported
by checkpatch

Test-Parameters: trivial
Signed-off-by: Arshad Hussain <arshad.super@gmail.com>
Change-Id: I2f8bfdbd034a2c8059cf356dd72e4255f4999f8e
Reviewed-on: https://review.whamcloud.com/36647
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/wiretest.c