staging: lustre: lnet: declare internal symbols as static
authorLuca Ceresoli <luca@lucaceresoli.net>
Sun, 18 Jan 2015 14:06:52 +0000 (15:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 11:59:15 +0000 (19:59 +0800)
Fixes sparse warnings like:
  warning: symbol '...' was not declared. Should it be static?

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Peng Tao <bergwolf@gmail.com>
Cc: Jinshan Xiong <jinshan.xiong@intel.com>
Cc: Srikrishan Malik <srikrishanmalik@gmail.com>
Cc: HPDD-discuss@lists.01.org
Cc: devel@driverdev.osuosl.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/module.c
drivers/staging/lustre/lnet/selftest/conctl.c
drivers/staging/lustre/lnet/selftest/conrpc.c
drivers/staging/lustre/lnet/selftest/console.c

index 3c23677bc2807bb87afa8b6eb30107fe291dcc04..72b7fbc837180b7b6603b6fb812b720c8185fc4d 100644 (file)
@@ -108,7 +108,7 @@ lnet_ioctl(unsigned int cmd, struct libcfs_ioctl_data *data)
        }
 }
 
-DECLARE_IOCTL_HANDLER(lnet_ioctl_handler, lnet_ioctl);
+static DECLARE_IOCTL_HANDLER(lnet_ioctl_handler, lnet_ioctl);
 
 static int __init
 init_lnet(void)
index 5bc615309e7233f5b484d4031d3b32f6d45d822a..fbff84cea52fc65774b2548c5c22ca220922d012 100644 (file)
@@ -721,7 +721,7 @@ lst_stat_query_ioctl(lstio_stat_args_t *args)
        return rc;
 }
 
-int lst_test_add_ioctl(lstio_test_args_t *args)
+static int lst_test_add_ioctl(lstio_test_args_t *args)
 {
        char            *batch_name;
        char            *src_name = NULL;
index 9999b0dc03e4f2beb895d9b17b087676be59b52b..77f02b76128e0ae8499949ffbab686f09fbf3920 100644 (file)
@@ -703,7 +703,7 @@ lstcon_statrpc_prep(lstcon_node_t *nd, unsigned feats, lstcon_rpc_t **crpc)
        return 0;
 }
 
-lnet_process_id_packed_t *
+static lnet_process_id_packed_t *
 lstcon_next_id(int idx, int nkiov, lnet_kiov_t *kiov)
 {
        lnet_process_id_packed_t *pid;
index 49cb6543d538209bbc09d58d207de975e4a06068..3bb47fa5d5c3279a85354ae6b7bac0b5b956d166 100644 (file)
@@ -1986,7 +1986,7 @@ static void lstcon_init_acceptor_service(void)
 
 extern int lstcon_ioctl_entry(unsigned int cmd, struct libcfs_ioctl_data *data);
 
-DECLARE_IOCTL_HANDLER(lstcon_ioctl_handler, lstcon_ioctl_entry);
+static DECLARE_IOCTL_HANDLER(lstcon_ioctl_handler, lstcon_ioctl_entry);
 
 /* initialize console */
 int