Staging: lustre: Replace LPROCFS_CLIMP_CHECK with lprocfs_climp_check
authorKsenija Stanojevic <ksenija.stanojevic@gmail.com>
Mon, 26 Oct 2015 15:05:57 +0000 (08:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 05:37:09 +0000 (14:37 +0900)
commita15b2225dd504d6fb5eb4b5a1b29b71cdc9b1f06
tree7107e469e645c0e47a6293c365ef71979ebc6572
parent8d816fb6cd4fa52f3efab89802dfa9d3e8371d77
Staging: lustre: Replace LPROCFS_CLIMP_CHECK with lprocfs_climp_check

Static inline functions are preferred over macros. The function is
placed in obd_class.h instead lprocfs_status.h because obd_class.h
includes header obd.h which contains definition of struct obd_device
and in that way avoids build error: Dereferencing pointer to incomplete
type. Also remove macro LPROCFS_CLIMP_CHECK since it's no longer used.

Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lprocfs_status.h
drivers/staging/lustre/lustre/include/obd_class.h
drivers/staging/lustre/lustre/mgc/mgc_request.c
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c