]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging: lustre: ldlm: Fix extern variable declaration
authorImre Deak <imre.deak@gmail.com>
Sat, 24 Sep 2016 01:11:37 +0000 (04:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Sep 2016 10:42:35 +0000 (12:42 +0200)
commitc297d30756a427aa82b57f1fc0e6fb4343315ffd
tree6e5733f67583ec194546a4401202b04a5dfb5f2a
parentb941f067ead3099eeeb3562d9de25664af3949f4
staging: lustre: ldlm: Fix extern variable declaration

Move the extern declaration to a header file common to all users of the
variable. This fixes the following sparse warning:
symbol 'ldlm_cancel_unused_locks_before_replay' was not declared.
Should it be static?

Signed-off-by: Imre Deak <imre.deak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_internal.h
drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c