Commit 22628c7d authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman

staging/lustre/libcfs: Move EXPORT_SYMBOLs under function/variable

Found with checkpatch
Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ae0b4833
...@@ -47,15 +47,15 @@ ...@@ -47,15 +47,15 @@
static char debug_file_name[1024]; static char debug_file_name[1024];
unsigned int libcfs_subsystem_debug = ~0; unsigned int libcfs_subsystem_debug = ~0;
EXPORT_SYMBOL(libcfs_subsystem_debug);
module_param(libcfs_subsystem_debug, int, 0644); module_param(libcfs_subsystem_debug, int, 0644);
MODULE_PARM_DESC(libcfs_subsystem_debug, "Lustre kernel debug subsystem mask"); MODULE_PARM_DESC(libcfs_subsystem_debug, "Lustre kernel debug subsystem mask");
EXPORT_SYMBOL(libcfs_subsystem_debug);
unsigned int libcfs_debug = (D_CANTMASK | unsigned int libcfs_debug = (D_CANTMASK |
D_NETERROR | D_HA | D_CONFIG | D_IOCTL); D_NETERROR | D_HA | D_CONFIG | D_IOCTL);
EXPORT_SYMBOL(libcfs_debug);
module_param(libcfs_debug, int, 0644); module_param(libcfs_debug, int, 0644);
MODULE_PARM_DESC(libcfs_debug, "Lustre kernel debug mask"); MODULE_PARM_DESC(libcfs_debug, "Lustre kernel debug mask");
EXPORT_SYMBOL(libcfs_debug);
static int libcfs_param_debug_mb_set(const char *val, static int libcfs_param_debug_mb_set(const char *val,
const struct kernel_param *kp) const struct kernel_param *kp)
......
...@@ -1702,7 +1702,6 @@ cfs_hash_hlist_for_each(struct cfs_hash *hs, unsigned hindex, ...@@ -1702,7 +1702,6 @@ cfs_hash_hlist_for_each(struct cfs_hash *hs, unsigned hindex,
cfs_hash_unlock(hs, 0); cfs_hash_unlock(hs, 0);
cfs_hash_for_each_exit(hs); cfs_hash_for_each_exit(hs);
} }
EXPORT_SYMBOL(cfs_hash_hlist_for_each); EXPORT_SYMBOL(cfs_hash_hlist_for_each);
/* /*
......
...@@ -65,6 +65,7 @@ void cfs_cap_raise(cfs_cap_t cap) ...@@ -65,6 +65,7 @@ void cfs_cap_raise(cfs_cap_t cap)
commit_creds(cred); commit_creds(cred);
} }
} }
EXPORT_SYMBOL(cfs_cap_raise);
void cfs_cap_lower(cfs_cap_t cap) void cfs_cap_lower(cfs_cap_t cap)
{ {
...@@ -76,11 +77,13 @@ void cfs_cap_lower(cfs_cap_t cap) ...@@ -76,11 +77,13 @@ void cfs_cap_lower(cfs_cap_t cap)
commit_creds(cred); commit_creds(cred);
} }
} }
EXPORT_SYMBOL(cfs_cap_lower);
int cfs_cap_raised(cfs_cap_t cap) int cfs_cap_raised(cfs_cap_t cap)
{ {
return cap_raised(current_cap(), cap); return cap_raised(current_cap(), cap);
} }
EXPORT_SYMBOL(cfs_cap_raised);
static void cfs_kernel_cap_pack(kernel_cap_t kcap, cfs_cap_t *cap) static void cfs_kernel_cap_pack(kernel_cap_t kcap, cfs_cap_t *cap)
{ {
...@@ -95,10 +98,6 @@ cfs_cap_t cfs_curproc_cap_pack(void) ...@@ -95,10 +98,6 @@ cfs_cap_t cfs_curproc_cap_pack(void)
cfs_kernel_cap_pack(current_cap(), &cap); cfs_kernel_cap_pack(current_cap(), &cap);
return cap; return cap;
} }
EXPORT_SYMBOL(cfs_cap_raise);
EXPORT_SYMBOL(cfs_cap_lower);
EXPORT_SYMBOL(cfs_cap_raised);
EXPORT_SYMBOL(cfs_curproc_cap_pack); EXPORT_SYMBOL(cfs_curproc_cap_pack);
/* /*
......
...@@ -144,6 +144,7 @@ void libcfs_run_lbug_upcall(struct libcfs_debug_msg_data *msgdata) ...@@ -144,6 +144,7 @@ void libcfs_run_lbug_upcall(struct libcfs_debug_msg_data *msgdata)
libcfs_run_upcall (argv); libcfs_run_upcall (argv);
} }
EXPORT_SYMBOL(libcfs_run_lbug_upcall);
/* coverity[+kill] */ /* coverity[+kill] */
void __noreturn lbug_with_loc(struct libcfs_debug_msg_data *msgdata) void __noreturn lbug_with_loc(struct libcfs_debug_msg_data *msgdata)
...@@ -166,6 +167,7 @@ void __noreturn lbug_with_loc(struct libcfs_debug_msg_data *msgdata) ...@@ -166,6 +167,7 @@ void __noreturn lbug_with_loc(struct libcfs_debug_msg_data *msgdata)
while (1) while (1)
schedule(); schedule();
} }
EXPORT_SYMBOL(lbug_with_loc);
static int panic_notifier(struct notifier_block *self, unsigned long unused1, static int panic_notifier(struct notifier_block *self, unsigned long unused1,
void *unused2) void *unused2)
...@@ -194,6 +196,3 @@ void libcfs_unregister_panic_notifier(void) ...@@ -194,6 +196,3 @@ void libcfs_unregister_panic_notifier(void)
{ {
atomic_notifier_chain_unregister(&panic_notifier_list, &libcfs_panic_notifier); atomic_notifier_chain_unregister(&panic_notifier_list, &libcfs_panic_notifier);
} }
EXPORT_SYMBOL(libcfs_run_lbug_upcall);
EXPORT_SYMBOL(lbug_with_loc);
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