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

staging: lustre: echo_client: fix sparse declaration warnings

Fixes the following sparse warnings:

drivers/staging/lustre/lustre/obdecho/echo_client.c:2142:5: warning: symbol 'echo_client_init' was not declared. Should it be static?
drivers/staging/lustre/lustre/obdecho/echo_client.c:2157:6: warning: symbol 'echo_client_exit' was not declared. Should it be static?

Signed-off-by: Zoltán Lajos Kis <zoltan.lajos.kis@gmail.com>"
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zoltán Lajos Kis and committed by
Greg Kroah-Hartman
5b34cd29 5bb546f7

+2 -2
+2 -2
drivers/staging/lustre/lustre/obdecho/echo_client.c
··· 2139 2139 .o_disconnect = echo_client_disconnect 2140 2140 }; 2141 2141 2142 - int echo_client_init(void) 2142 + static int echo_client_init(void) 2143 2143 { 2144 2144 int rc; 2145 2145 ··· 2154 2154 return rc; 2155 2155 } 2156 2156 2157 - void echo_client_exit(void) 2157 + static void echo_client_exit(void) 2158 2158 { 2159 2159 class_unregister_type(LUSTRE_ECHO_CLIENT_NAME); 2160 2160 lu_kmem_fini(echo_caches);