X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Fobdclass%2Fllog_swab.c;h=c644efb64ac1fd0b1d982a25161b3648fb9a57b7;hb=HEAD;hp=1c9d0be00a7b37a07ffa71fbe3f9d7bd13f8e7f7;hpb=e28f3ee185b2ef7bad8046f46444772fac214a40;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/llog_swab.c b/lustre/obdclass/llog_swab.c index 1c9d0be..49e8c3e 100644 --- a/lustre/obdclass/llog_swab.c +++ b/lustre/obdclass/llog_swab.c @@ -37,9 +37,17 @@ #define DEBUG_SUBSYSTEM S_LOG - #include #include +#include + +#ifdef HAVE_SERVER_SUPPORT +#define SERVER_ONLY_EXPORT_SYMBOL(symbol) EXPORT_SYMBOL(symbol) +#define SERVER_ONLY +#else +#define SERVER_ONLY static +#define SERVER_ONLY_EXPORT_SYMBOL(symbol) +#endif static void print_llogd_body(struct llogd_body *d) { @@ -123,7 +131,8 @@ void lustre_swab_lu_seq_range(struct lu_seq_range *range) } EXPORT_SYMBOL(lustre_swab_lu_seq_range); -void lustre_swab_update_ops(struct update_ops *uops, unsigned int op_count) +SERVER_ONLY void lustre_swab_update_ops(struct update_ops *uops, + unsigned int op_count) { unsigned int i; unsigned int j; @@ -136,7 +145,7 @@ void lustre_swab_update_ops(struct update_ops *uops, unsigned int op_count) __swab16s(&uops->uops_op[i].uop_params_off[j]); } } -EXPORT_SYMBOL(lustre_swab_update_ops); +SERVER_ONLY_EXPORT_SYMBOL(lustre_swab_update_ops); void lustre_swab_llog_rec(struct llog_rec_hdr *rec) { @@ -241,7 +250,7 @@ void lustre_swab_llog_rec(struct llog_rec_hdr *rec) __swab64s(&arr->arr_hai.hai_gid); /* * no swabing for opaque data - * hai_data[0]; + * hai_data[]; */ break; }