Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28b9d6f1 authored by Somya Anand's avatar Somya Anand Committed by Greg Kroah-Hartman
Browse files

Staging: lustre: Convert macro class_export_rpc_inc into static inline function



This patch converts the macro class_export_rpc_inc into static inline
function. This is possible because the types of arguments at all the call
sites are same. So, the type of parameter is compatible with the types of
the arguments at all of the call sites.

Signed-off-by: default avatarSomya Anand <somyaanand214@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8e76e695
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -222,12 +222,12 @@ extern void (*class_export_dump_hook)(struct obd_export *);


#endif
#endif


#define class_export_rpc_inc(exp)				       \
static inline void class_export_rpc_inc(struct obd_export *exp)
({								      \
{
	atomic_inc(&(exp)->exp_rpc_count);			  \
	atomic_inc(&(exp)->exp_rpc_count);
	CDEBUG(D_INFO, "RPC GETting export %p : new rpc_count %d\n",    \
	CDEBUG(D_INFO, "RPC GETting export %p : new rpc_count %d\n",
	       (exp), atomic_read(&(exp)->exp_rpc_count));	  \
	       (exp), atomic_read(&(exp)->exp_rpc_count));
})
}


#define class_export_rpc_dec(exp)				       \
#define class_export_rpc_dec(exp)				       \
({								      \
({								      \