From: Bhumika Goyal Date: Thu, 3 Aug 2017 09:12:48 +0000 (+0530) Subject: staging: lustre: obd: make echo_lock_ops const X-Git-Tag: v5.15~10534^2~230 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bab87505c3284ac3345463abb8af9e6774e7e9f8;p=platform%2Fkernel%2Flinux-starfive.git staging: lustre: obd: make echo_lock_ops const Declare echo_lock_ops object of type cl_lock_operations as const as it is only passed to the function cl_lock_slice_add. The corresponding argument is of type const, so make the object const. Signed-off-by: Bhumika Goyal Acked-by: James Simmons Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/obdecho/echo_client.c b/drivers/staging/lustre/lustre/obdecho/echo_client.c index 1c4a8fe..b3fbc3c 100644 --- a/drivers/staging/lustre/lustre/obdecho/echo_client.c +++ b/drivers/staging/lustre/lustre/obdecho/echo_client.c @@ -319,7 +319,7 @@ static void echo_lock_fini(const struct lu_env *env, kmem_cache_free(echo_lock_kmem, ecl); } -static struct cl_lock_operations echo_lock_ops = { +static const struct cl_lock_operations echo_lock_ops = { .clo_fini = echo_lock_fini, };