Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lockd: Make two symbols static

Fix sparse warnings:

fs/lockd/clntproc.c:57:6: warning: symbol 'nlmclnt_put_lockowner' was not declared. Should it be static?
fs/lockd/svclock.c:409:35: warning: symbol 'nlmsvc_lock_ops' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>

authored by

YueHaibing and committed by
J. Bruce Fields
291adeb2 f85d9338

+2 -2
+1 -1
fs/lockd/clntproc.c
··· 54 54 return lockowner; 55 55 } 56 56 57 - void nlmclnt_put_lockowner(struct nlm_lockowner *lockowner) 57 + static void nlmclnt_put_lockowner(struct nlm_lockowner *lockowner) 58 58 { 59 59 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) 60 60 return;
+1 -1
fs/lockd/svclock.c
··· 406 406 nlmsvc_put_lockowner((struct nlm_lockowner *)fl->fl_owner); 407 407 } 408 408 409 - const struct file_lock_operations nlmsvc_lock_ops = { 409 + static const struct file_lock_operations nlmsvc_lock_ops = { 410 410 .fl_copy_lock = nlmsvc_locks_copy_lock, 411 411 .fl_release_private = nlmsvc_locks_release_private, 412 412 };