Whamcloud - gitweb
LU-14291 ptlrpc: format UPDATE messages in server-only code
[fs/lustre-release.git] / lustre / include / lustre_req_layout.h
index 31d9719..a023c6b 100644 (file)
@@ -128,7 +128,14 @@ int req_capsule_server_grow(struct req_capsule *pill,
                            __u32 newlen);
 int  req_layout_init(void);
 void req_layout_fini(void);
                            __u32 newlen);
 int  req_layout_init(void);
 void req_layout_fini(void);
+#ifdef HAVE_SERVER_SUPPORT
 int req_check_sepol(struct req_capsule *pill);
 int req_check_sepol(struct req_capsule *pill);
+#else
+static inline int req_check_sepol(struct req_capsule *pill)
+{
+       return 0;
+}
+#endif
 
 extern struct req_format RQF_OBD_PING;
 extern struct req_format RQF_OBD_SET_INFO;
 
 extern struct req_format RQF_OBD_PING;
 extern struct req_format RQF_OBD_SET_INFO;