]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Staging: lustre: osc: Declare osc_attr_set as static
authorShraddha Barke <shraddha.6596@gmail.com>
Thu, 17 Dec 2015 21:10:29 +0000 (02:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 23:47:30 +0000 (15:47 -0800)
osc_attr_set is used only in this particular file. Thus declare it
as static.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/osc/osc_object.c

index c29a0d45ffed2ee3b23f212044b691e76b9c5c29..fdd6219aacf699f59b01b6e7ff1a875f17daa0f3 100644 (file)
@@ -158,8 +158,8 @@ static int osc_attr_get(const struct lu_env *env, struct cl_object *obj,
        return 0;
 }
 
-int osc_attr_set(const struct lu_env *env, struct cl_object *obj,
-                const struct cl_attr *attr, unsigned valid)
+static int osc_attr_set(const struct lu_env *env, struct cl_object *obj,
+                       const struct cl_attr *attr, unsigned valid)
 {
        struct lov_oinfo *oinfo = cl2osc(obj)->oo_oinfo;
        struct ost_lvb *lvb = &oinfo->loi_lvb;