Commit 25bbe418 authored by Patrick Boettcher's avatar Patrick Boettcher Committed by Greg Kroah-Hartman

staging: lustre-libcfs: fix sparse warning

Fix sparse warnings of the following type:

warning: symbol '....' was not declared. Should it be static?
Signed-off-by: default avatarPatrick Boettcher <patrick.boettcher@posteo.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0df4e3e9
...@@ -148,4 +148,17 @@ void *libcfs_kvzalloc(size_t size, gfp_t flags); ...@@ -148,4 +148,17 @@ void *libcfs_kvzalloc(size_t size, gfp_t flags);
void *libcfs_kvzalloc_cpt(struct cfs_cpt_table *cptab, int cpt, size_t size, void *libcfs_kvzalloc_cpt(struct cfs_cpt_table *cptab, int cpt, size_t size,
gfp_t flags); gfp_t flags);
extern struct miscdevice libcfs_dev;
/**
* The path of debug log dump upcall script.
*/
extern char lnet_upcall[1024];
extern char lnet_debug_log_upcall[1024];
extern void libcfs_init_nidstrings(void);
extern struct cfs_psdev_ops libcfs_psdev_ops;
extern struct cfs_wi_sched *cfs_sched_rehash;
#endif /* _LIBCFS_H */ #endif /* _LIBCFS_H */
...@@ -96,8 +96,6 @@ int libcfs_ioctl_popdata(void *arg, void *data, int size) ...@@ -96,8 +96,6 @@ int libcfs_ioctl_popdata(void *arg, void *data, int size)
return 0; return 0;
} }
extern struct cfs_psdev_ops libcfs_psdev_ops;
static int static int
libcfs_psdev_open(struct inode *inode, struct file *file) libcfs_psdev_open(struct inode *inode, struct file *file)
{ {
......
...@@ -66,19 +66,10 @@ MODULE_AUTHOR("Peter J. Braam <braam@clusterfs.com>"); ...@@ -66,19 +66,10 @@ MODULE_AUTHOR("Peter J. Braam <braam@clusterfs.com>");
MODULE_DESCRIPTION("Portals v3.1"); MODULE_DESCRIPTION("Portals v3.1");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
extern struct miscdevice libcfs_dev;
extern struct cfs_wi_sched *cfs_sched_rehash;
extern void libcfs_init_nidstrings(void);
static void insert_debugfs(void); static void insert_debugfs(void);
static void remove_debugfs(void); static void remove_debugfs(void);
static struct dentry *lnet_debugfs_root; static struct dentry *lnet_debugfs_root;
extern char lnet_upcall[1024];
/**
* The path of debug log dump upcall script.
*/
extern char lnet_debug_log_upcall[1024];
static void kportal_memhog_free(struct libcfs_device_userstate *ldu) static void kportal_memhog_free(struct libcfs_device_userstate *ldu)
{ {
...@@ -716,7 +707,7 @@ struct lnet_debugfs_symlink_def { ...@@ -716,7 +707,7 @@ struct lnet_debugfs_symlink_def {
char *target; char *target;
}; };
struct lnet_debugfs_symlink_def lnet_debugfs_symlinks[] = { static struct lnet_debugfs_symlink_def lnet_debugfs_symlinks[] = {
{ "console_ratelimit", { "console_ratelimit",
"/sys/module/libcfs/parameters/libcfs_console_ratelimit"}, "/sys/module/libcfs/parameters/libcfs_console_ratelimit"},
{ "debug_path", { "debug_path",
......
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