From: Oleg Drokin Date: Wed, 7 May 2025 21:44:27 +0000 (-0400) Subject: LU-19859 misc: Declare symbols static X-Git-Tag: 2.16.55~2 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=fbfc62c1fa92e3116be96dc99924ffaa16b4623a;p=fs%2Flustre-release.git LU-19859 misc: Declare symbols static Previous iteration missed osp_ping_show and qsd_caches that are not used outside the files they are in. Change-Id: Ib2a0455d81ef0ff96537055ba62651c482a3159b Test-Parameters: trivial Signed-off-by: Oleg Drokin Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59143 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Timothy Day Reviewed-by: Andreas Dilger --- diff --git a/lustre/osp/lproc_osp.c b/lustre/osp/lproc_osp.c index 12b0c14..a9cd9b9 100644 --- a/lustre/osp/lproc_osp.c +++ b/lustre/osp/lproc_osp.c @@ -859,8 +859,8 @@ static ssize_t lfsck_max_rpcs_in_flight_store(struct kobject *kobj, } LUSTRE_RW_ATTR(lfsck_max_rpcs_in_flight); -ssize_t osp_ping_show(struct kobject *kobj, struct attribute *attr, - char *buffer) +static ssize_t osp_ping_show(struct kobject *kobj, struct attribute *attr, + char *buffer) { struct dt_device *dt = container_of(kobj, struct dt_device, dd_kobj); diff --git a/lustre/quota/qsd_lib.c b/lustre/quota/qsd_lib.c index e0fcab4..2cc7ebe 100644 --- a/lustre/quota/qsd_lib.c +++ b/lustre/quota/qsd_lib.c @@ -36,7 +36,7 @@ struct kmem_cache *upd_kmem; -struct lu_kmem_descr qsd_caches[] = { +static struct lu_kmem_descr qsd_caches[] = { { .ckd_cache = &upd_kmem, .ckd_name = "upd_kmem",