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

staging/lustre/obdclass: export debugfs functionality for GPL only.

Turns out we mistakenly export some pretty-wide-reaching debugfs
functions as EXPORT_SYMBOL instead of EXPORT_SYMBOL_GPL as we should,
so this patch rectifies the situation.
Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 49a76d70
...@@ -261,7 +261,7 @@ struct dentry *ldebugfs_add_simple(struct dentry *root, ...@@ -261,7 +261,7 @@ struct dentry *ldebugfs_add_simple(struct dentry *root,
} }
return entry; return entry;
} }
EXPORT_SYMBOL(ldebugfs_add_simple); EXPORT_SYMBOL_GPL(ldebugfs_add_simple);
static struct file_operations lprocfs_generic_fops = { }; static struct file_operations lprocfs_generic_fops = { };
...@@ -294,14 +294,14 @@ int ldebugfs_add_vars(struct dentry *parent, ...@@ -294,14 +294,14 @@ int ldebugfs_add_vars(struct dentry *parent,
} }
return 0; return 0;
} }
EXPORT_SYMBOL(ldebugfs_add_vars); EXPORT_SYMBOL_GPL(ldebugfs_add_vars);
void ldebugfs_remove(struct dentry **entryp) void ldebugfs_remove(struct dentry **entryp)
{ {
debugfs_remove_recursive(*entryp); debugfs_remove_recursive(*entryp);
*entryp = NULL; *entryp = NULL;
} }
EXPORT_SYMBOL(ldebugfs_remove); EXPORT_SYMBOL_GPL(ldebugfs_remove);
struct dentry *ldebugfs_register(const char *name, struct dentry *ldebugfs_register(const char *name,
struct dentry *parent, struct dentry *parent,
...@@ -327,7 +327,7 @@ struct dentry *ldebugfs_register(const char *name, ...@@ -327,7 +327,7 @@ struct dentry *ldebugfs_register(const char *name,
out: out:
return entry; return entry;
} }
EXPORT_SYMBOL(ldebugfs_register); EXPORT_SYMBOL_GPL(ldebugfs_register);
/* Generic callbacks */ /* Generic callbacks */
int lprocfs_rd_uint(struct seq_file *m, void *data) int lprocfs_rd_uint(struct seq_file *m, void *data)
...@@ -942,7 +942,7 @@ int lprocfs_obd_setup(struct obd_device *obd, struct lprocfs_vars *list, ...@@ -942,7 +942,7 @@ int lprocfs_obd_setup(struct obd_device *obd, struct lprocfs_vars *list,
return rc; return rc;
} }
EXPORT_SYMBOL(lprocfs_obd_setup); EXPORT_SYMBOL_GPL(lprocfs_obd_setup);
int lprocfs_obd_cleanup(struct obd_device *obd) int lprocfs_obd_cleanup(struct obd_device *obd)
{ {
...@@ -957,7 +957,7 @@ int lprocfs_obd_cleanup(struct obd_device *obd) ...@@ -957,7 +957,7 @@ int lprocfs_obd_cleanup(struct obd_device *obd)
return 0; return 0;
} }
EXPORT_SYMBOL(lprocfs_obd_cleanup); EXPORT_SYMBOL_GPL(lprocfs_obd_cleanup);
int lprocfs_stats_alloc_one(struct lprocfs_stats *stats, unsigned int cpuid) int lprocfs_stats_alloc_one(struct lprocfs_stats *stats, unsigned int cpuid)
{ {
...@@ -1219,7 +1219,7 @@ int ldebugfs_register_stats(struct dentry *parent, const char *name, ...@@ -1219,7 +1219,7 @@ int ldebugfs_register_stats(struct dentry *parent, const char *name,
return 0; return 0;
} }
EXPORT_SYMBOL(ldebugfs_register_stats); EXPORT_SYMBOL_GPL(ldebugfs_register_stats);
void lprocfs_counter_init(struct lprocfs_stats *stats, int index, void lprocfs_counter_init(struct lprocfs_stats *stats, int index,
unsigned conf, const char *name, const char *units) unsigned conf, const char *name, const char *units)
...@@ -1446,7 +1446,7 @@ int ldebugfs_seq_create(struct dentry *parent, ...@@ -1446,7 +1446,7 @@ int ldebugfs_seq_create(struct dentry *parent,
return 0; return 0;
} }
EXPORT_SYMBOL(ldebugfs_seq_create); EXPORT_SYMBOL_GPL(ldebugfs_seq_create);
int ldebugfs_obd_seq_create(struct obd_device *dev, int ldebugfs_obd_seq_create(struct obd_device *dev,
const char *name, const char *name,
...@@ -1457,7 +1457,7 @@ int ldebugfs_obd_seq_create(struct obd_device *dev, ...@@ -1457,7 +1457,7 @@ int ldebugfs_obd_seq_create(struct obd_device *dev,
return ldebugfs_seq_create(dev->obd_debugfs_entry, name, return ldebugfs_seq_create(dev->obd_debugfs_entry, name,
mode, seq_fops, data); mode, seq_fops, data);
} }
EXPORT_SYMBOL(ldebugfs_obd_seq_create); EXPORT_SYMBOL_GPL(ldebugfs_obd_seq_create);
void lprocfs_oh_tally(struct obd_histogram *oh, unsigned int value) void lprocfs_oh_tally(struct obd_histogram *oh, unsigned int value)
{ {
......
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