Commit d372a4cd authored by Serguey Parkhomovsky's avatar Serguey Parkhomovsky Committed by Greg Kroah-Hartman

staging: lustre: libcfs: fix sparse warnings about static declaration

Fixes the following sparse warnings:

drivers/staging/lustre/lustre/libcfs/linux/linux-prim.c:198:1: warning:
 symbol 'libcfs_arch_init' was not declared. Should it be static?
drivers/staging/lustre/lustre/libcfs/linux/linux-prim.c:204:1: warning:
 symbol 'libcfs_arch_cleanup' was not declared. Should it be static?
Signed-off-by: default avatarSerguey Parkhomovsky <sergueyparkhomovsky@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f96d1d7e
...@@ -85,6 +85,9 @@ static inline int __is_po2(unsigned long long val) ...@@ -85,6 +85,9 @@ static inline int __is_po2(unsigned long long val)
#include <linux/list.h> #include <linux/list.h>
int libcfs_arch_init(void);
void libcfs_arch_cleanup(void);
/* libcfs tcpip */ /* libcfs tcpip */
int libcfs_ipif_query(char *name, int *up, __u32 *ip, __u32 *mask); int libcfs_ipif_query(char *name, int *up, __u32 *ip, __u32 *mask);
int libcfs_ipif_enumerate(char ***names); int libcfs_ipif_enumerate(char ***names);
......
...@@ -332,8 +332,6 @@ extern struct mutex cfs_trace_thread_mutex; ...@@ -332,8 +332,6 @@ extern struct mutex cfs_trace_thread_mutex;
extern struct cfs_wi_sched *cfs_sched_rehash; extern struct cfs_wi_sched *cfs_sched_rehash;
extern void libcfs_init_nidstrings(void); extern void libcfs_init_nidstrings(void);
extern int libcfs_arch_init(void);
extern void libcfs_arch_cleanup(void);
static int init_libcfs_module(void) static int init_libcfs_module(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment