X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fcl_io.c;h=dc2be4a00f2bac6f72d55436651293814b76aa44;hp=caf470171c674ee19278cbedda2621b85cae3d7e;hb=e612dcbbdd208ff0919a8c108448bbfa846e8ee6;hpb=12b05772fdb6d080819b6c213fcd7f8705278412 diff --git a/lustre/obdclass/cl_io.c b/lustre/obdclass/cl_io.c index caf4701..dc2be4a 100644 --- a/lustre/obdclass/cl_io.c +++ b/lustre/obdclass/cl_io.c @@ -221,8 +221,14 @@ int cl_io_rw_init(const struct lu_env *env, struct cl_io *io, } EXPORT_SYMBOL(cl_io_rw_init); +#ifdef HAVE_LIST_CMP_FUNC_T +static int cl_lock_descr_cmp(void *priv, + const struct list_head *a, + const struct list_head *b) +#else /* !HAVE_LIST_CMP_FUNC_T */ static int cl_lock_descr_cmp(void *priv, struct list_head *a, struct list_head *b) +#endif /* HAVE_LIST_CMP_FUNC_T */ { const struct cl_io_lock_link *l0 = list_entry(a, struct cl_io_lock_link, cill_linkage);