Commit 5b26f052 authored by frank zago's avatar frank zago Committed by Greg Kroah-Hartman

staging: lustre: remove unnecessary EXPORT_SYMBOL in libcfs

A lot of symbols don't need to be exported at all because they are
only used in the module they belong to.
Signed-off-by: default avatarfrank zago <fzago@cray.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5829
Reviewed-on: http://review.whamcloud.com/13319Reviewed-by: default avatarJames Simmons <uja.ornl@yahoo.com>
Reviewed-by: default avatarJohn L. Hammond <john.hammond@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cf02dfef
...@@ -94,17 +94,14 @@ static struct kernel_param_ops param_ops_debugmb = { ...@@ -94,17 +94,14 @@ static struct kernel_param_ops param_ops_debugmb = {
static unsigned int libcfs_debug_mb; static unsigned int libcfs_debug_mb;
module_param(libcfs_debug_mb, debugmb, 0644); module_param(libcfs_debug_mb, debugmb, 0644);
MODULE_PARM_DESC(libcfs_debug_mb, "Total debug buffer size."); MODULE_PARM_DESC(libcfs_debug_mb, "Total debug buffer size.");
EXPORT_SYMBOL(libcfs_debug_mb);
unsigned int libcfs_printk = D_CANTMASK; unsigned int libcfs_printk = D_CANTMASK;
module_param(libcfs_printk, uint, 0644); module_param(libcfs_printk, uint, 0644);
MODULE_PARM_DESC(libcfs_printk, "Lustre kernel debug console mask"); MODULE_PARM_DESC(libcfs_printk, "Lustre kernel debug console mask");
EXPORT_SYMBOL(libcfs_printk);
unsigned int libcfs_console_ratelimit = 1; unsigned int libcfs_console_ratelimit = 1;
module_param(libcfs_console_ratelimit, uint, 0644); module_param(libcfs_console_ratelimit, uint, 0644);
MODULE_PARM_DESC(libcfs_console_ratelimit, "Lustre kernel debug console ratelimit (0 to disable)"); MODULE_PARM_DESC(libcfs_console_ratelimit, "Lustre kernel debug console ratelimit (0 to disable)");
EXPORT_SYMBOL(libcfs_console_ratelimit);
static int param_set_delay_minmax(const char *val, static int param_set_delay_minmax(const char *val,
const struct kernel_param *kp, const struct kernel_param *kp,
...@@ -135,9 +132,7 @@ static int param_get_delay(char *buffer, const struct kernel_param *kp) ...@@ -135,9 +132,7 @@ static int param_get_delay(char *buffer, const struct kernel_param *kp)
} }
unsigned int libcfs_console_max_delay; unsigned int libcfs_console_max_delay;
EXPORT_SYMBOL(libcfs_console_max_delay);
unsigned int libcfs_console_min_delay; unsigned int libcfs_console_min_delay;
EXPORT_SYMBOL(libcfs_console_min_delay);
static int param_set_console_max_delay(const char *val, static int param_set_console_max_delay(const char *val,
const struct kernel_param *kp) const struct kernel_param *kp)
...@@ -207,10 +202,8 @@ static struct kernel_param_ops param_ops_uintpos = { ...@@ -207,10 +202,8 @@ static struct kernel_param_ops param_ops_uintpos = {
unsigned int libcfs_console_backoff = CDEBUG_DEFAULT_BACKOFF; unsigned int libcfs_console_backoff = CDEBUG_DEFAULT_BACKOFF;
module_param(libcfs_console_backoff, uintpos, 0644); module_param(libcfs_console_backoff, uintpos, 0644);
MODULE_PARM_DESC(libcfs_console_backoff, "Lustre kernel debug console backoff factor"); MODULE_PARM_DESC(libcfs_console_backoff, "Lustre kernel debug console backoff factor");
EXPORT_SYMBOL(libcfs_console_backoff);
unsigned int libcfs_debug_binary = 1; unsigned int libcfs_debug_binary = 1;
EXPORT_SYMBOL(libcfs_debug_binary);
unsigned int libcfs_stack = 3 * THREAD_SIZE / 4; unsigned int libcfs_stack = 3 * THREAD_SIZE / 4;
EXPORT_SYMBOL(libcfs_stack); EXPORT_SYMBOL(libcfs_stack);
...@@ -221,7 +214,6 @@ EXPORT_SYMBOL(libcfs_catastrophe); ...@@ -221,7 +214,6 @@ EXPORT_SYMBOL(libcfs_catastrophe);
unsigned int libcfs_panic_on_lbug = 1; unsigned int libcfs_panic_on_lbug = 1;
module_param(libcfs_panic_on_lbug, uint, 0644); module_param(libcfs_panic_on_lbug, uint, 0644);
MODULE_PARM_DESC(libcfs_panic_on_lbug, "Lustre kernel panic on LBUG"); MODULE_PARM_DESC(libcfs_panic_on_lbug, "Lustre kernel panic on LBUG");
EXPORT_SYMBOL(libcfs_panic_on_lbug);
static wait_queue_head_t debug_ctlwq; static wait_queue_head_t debug_ctlwq;
...@@ -572,5 +564,3 @@ void libcfs_debug_set_level(unsigned int debug_level) ...@@ -572,5 +564,3 @@ void libcfs_debug_set_level(unsigned int debug_level)
debug_level); debug_level);
libcfs_debug = debug_level; libcfs_debug = debug_level;
} }
EXPORT_SYMBOL(libcfs_debug_set_level);
...@@ -593,7 +593,6 @@ cfs_hash_bd_move_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd_old, ...@@ -593,7 +593,6 @@ cfs_hash_bd_move_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd_old,
if (unlikely(nbkt->hsb_version == 0)) if (unlikely(nbkt->hsb_version == 0))
nbkt->hsb_version++; nbkt->hsb_version++;
} }
EXPORT_SYMBOL(cfs_hash_bd_move_locked);
enum { enum {
/** always set, for sanity (avoid ZERO intent) */ /** always set, for sanity (avoid ZERO intent) */
...@@ -830,21 +829,18 @@ cfs_hash_dual_bd_get(struct cfs_hash *hs, const void *key, ...@@ -830,21 +829,18 @@ cfs_hash_dual_bd_get(struct cfs_hash *hs, const void *key,
cfs_hash_bd_order(&bds[0], &bds[1]); cfs_hash_bd_order(&bds[0], &bds[1]);
} }
EXPORT_SYMBOL(cfs_hash_dual_bd_get);
void void
cfs_hash_dual_bd_lock(struct cfs_hash *hs, struct cfs_hash_bd *bds, int excl) cfs_hash_dual_bd_lock(struct cfs_hash *hs, struct cfs_hash_bd *bds, int excl)
{ {
cfs_hash_multi_bd_lock(hs, bds, 2, excl); cfs_hash_multi_bd_lock(hs, bds, 2, excl);
} }
EXPORT_SYMBOL(cfs_hash_dual_bd_lock);
void void
cfs_hash_dual_bd_unlock(struct cfs_hash *hs, struct cfs_hash_bd *bds, int excl) cfs_hash_dual_bd_unlock(struct cfs_hash *hs, struct cfs_hash_bd *bds, int excl)
{ {
cfs_hash_multi_bd_unlock(hs, bds, 2, excl); cfs_hash_multi_bd_unlock(hs, bds, 2, excl);
} }
EXPORT_SYMBOL(cfs_hash_dual_bd_unlock);
struct hlist_node * struct hlist_node *
cfs_hash_dual_bd_lookup_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, cfs_hash_dual_bd_lookup_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds,
...@@ -852,7 +848,6 @@ cfs_hash_dual_bd_lookup_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, ...@@ -852,7 +848,6 @@ cfs_hash_dual_bd_lookup_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds,
{ {
return cfs_hash_multi_bd_lookup_locked(hs, bds, 2, key); return cfs_hash_multi_bd_lookup_locked(hs, bds, 2, key);
} }
EXPORT_SYMBOL(cfs_hash_dual_bd_lookup_locked);
struct hlist_node * struct hlist_node *
cfs_hash_dual_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, cfs_hash_dual_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds,
...@@ -862,7 +857,6 @@ cfs_hash_dual_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, ...@@ -862,7 +857,6 @@ cfs_hash_dual_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds,
return cfs_hash_multi_bd_findadd_locked(hs, bds, 2, key, return cfs_hash_multi_bd_findadd_locked(hs, bds, 2, key,
hnode, noref); hnode, noref);
} }
EXPORT_SYMBOL(cfs_hash_dual_bd_findadd_locked);
struct hlist_node * struct hlist_node *
cfs_hash_dual_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, cfs_hash_dual_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds,
...@@ -870,7 +864,6 @@ cfs_hash_dual_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, ...@@ -870,7 +864,6 @@ cfs_hash_dual_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds,
{ {
return cfs_hash_multi_bd_finddel_locked(hs, bds, 2, key, hnode); return cfs_hash_multi_bd_finddel_locked(hs, bds, 2, key, hnode);
} }
EXPORT_SYMBOL(cfs_hash_dual_bd_finddel_locked);
static void static void
cfs_hash_buckets_free(struct cfs_hash_bucket **buckets, cfs_hash_buckets_free(struct cfs_hash_bucket **buckets,
...@@ -1792,7 +1785,6 @@ cfs_hash_rehash_cancel_locked(struct cfs_hash *hs) ...@@ -1792,7 +1785,6 @@ cfs_hash_rehash_cancel_locked(struct cfs_hash *hs)
cfs_hash_lock(hs, 1); cfs_hash_lock(hs, 1);
} }
} }
EXPORT_SYMBOL(cfs_hash_rehash_cancel_locked);
void void
cfs_hash_rehash_cancel(struct cfs_hash *hs) cfs_hash_rehash_cancel(struct cfs_hash *hs)
...@@ -1801,7 +1793,6 @@ cfs_hash_rehash_cancel(struct cfs_hash *hs) ...@@ -1801,7 +1793,6 @@ cfs_hash_rehash_cancel(struct cfs_hash *hs)
cfs_hash_rehash_cancel_locked(hs); cfs_hash_rehash_cancel_locked(hs);
cfs_hash_unlock(hs, 1); cfs_hash_unlock(hs, 1);
} }
EXPORT_SYMBOL(cfs_hash_rehash_cancel);
int int
cfs_hash_rehash(struct cfs_hash *hs, int do_rehash) cfs_hash_rehash(struct cfs_hash *hs, int do_rehash)
...@@ -1831,7 +1822,6 @@ cfs_hash_rehash(struct cfs_hash *hs, int do_rehash) ...@@ -1831,7 +1822,6 @@ cfs_hash_rehash(struct cfs_hash *hs, int do_rehash)
return cfs_hash_rehash_worker(&hs->hs_rehash_wi); return cfs_hash_rehash_worker(&hs->hs_rehash_wi);
} }
EXPORT_SYMBOL(cfs_hash_rehash);
static int static int
cfs_hash_rehash_bd(struct cfs_hash *hs, struct cfs_hash_bd *old) cfs_hash_rehash_bd(struct cfs_hash *hs, struct cfs_hash_bd *old)
......
...@@ -134,7 +134,6 @@ cfs_percpt_current(void *vars) ...@@ -134,7 +134,6 @@ cfs_percpt_current(void *vars)
return arr->va_ptrs[cpt]; return arr->va_ptrs[cpt];
} }
EXPORT_SYMBOL(cfs_percpt_current);
void * void *
cfs_percpt_index(void *vars, int idx) cfs_percpt_index(void *vars, int idx)
...@@ -146,7 +145,6 @@ cfs_percpt_index(void *vars, int idx) ...@@ -146,7 +145,6 @@ cfs_percpt_index(void *vars, int idx)
LASSERT(idx >= 0 && idx < arr->va_count); LASSERT(idx >= 0 && idx < arr->va_count);
return arr->va_ptrs[idx]; return arr->va_ptrs[idx];
} }
EXPORT_SYMBOL(cfs_percpt_index);
/* /*
* free variable array, see more detail in cfs_array_alloc * free variable array, see more detail in cfs_array_alloc
......
...@@ -195,6 +195,5 @@ void libcfs_unregister_panic_notifier(void) ...@@ -195,6 +195,5 @@ 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_upcall);
EXPORT_SYMBOL(libcfs_run_lbug_upcall); EXPORT_SYMBOL(libcfs_run_lbug_upcall);
EXPORT_SYMBOL(lbug_with_loc); 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