X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flustre_req_layout.h;h=a023c6b3451a6c312adfbb0a756effae0edbc7f6;hp=31d971952a6be16d3ab42181b176a949c2ab2bda;hb=771308ada3895c3ccfeb8e63365089086c1d9fdc;hpb=67d17dd590f913643f5adc8aced369221faccf05 diff --git a/lustre/include/lustre_req_layout.h b/lustre/include/lustre_req_layout.h index 31d9719..a023c6b 100644 --- a/lustre/include/lustre_req_layout.h +++ b/lustre/include/lustre_req_layout.h @@ -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); +#ifdef HAVE_SERVER_SUPPORT 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;