aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_debugfs.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-06-05 16:31:27 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-07-01 16:47:20 -0400
commit7f223c0c323a9ac2e88714669994007776e966a8 (patch)
tree3c446703e95bb557952400885275821b51e010cc /net/batman-adv/bat_debugfs.c
parent39c75a51eda38ca5ce8b75f0a62a621eb3820a54 (diff)
batman-adv: Prefix local debugfs structs with batadv_
Reported-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/bat_debugfs.c')
-rw-r--r--net/batman-adv/bat_debugfs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/batman-adv/bat_debugfs.c b/net/batman-adv/bat_debugfs.c
index 4dcda43d6822..bd618e4df865 100644
--- a/net/batman-adv/bat_debugfs.c
+++ b/net/batman-adv/bat_debugfs.c
@@ -265,13 +265,13 @@ static int batadv_vis_data_open(struct inode *inode, struct file *file)
265 return single_open(file, batadv_vis_seq_print_text, net_dev); 265 return single_open(file, batadv_vis_seq_print_text, net_dev);
266} 266}
267 267
268struct bat_debuginfo { 268struct batadv_debuginfo {
269 struct attribute attr; 269 struct attribute attr;
270 const struct file_operations fops; 270 const struct file_operations fops;
271}; 271};
272 272
273#define BATADV_DEBUGINFO(_name, _mode, _open) \ 273#define BATADV_DEBUGINFO(_name, _mode, _open) \
274struct bat_debuginfo batadv_debuginfo_##_name = { \ 274struct batadv_debuginfo batadv_debuginfo_##_name = { \
275 .attr = { .name = __stringify(_name), \ 275 .attr = { .name = __stringify(_name), \
276 .mode = _mode, }, \ 276 .mode = _mode, }, \
277 .fops = { .owner = THIS_MODULE, \ 277 .fops = { .owner = THIS_MODULE, \
@@ -294,7 +294,7 @@ static BATADV_DEBUGINFO(transtable_local, S_IRUGO,
294 batadv_transtable_local_open); 294 batadv_transtable_local_open);
295static BATADV_DEBUGINFO(vis_data, S_IRUGO, batadv_vis_data_open); 295static BATADV_DEBUGINFO(vis_data, S_IRUGO, batadv_vis_data_open);
296 296
297static struct bat_debuginfo *batadv_mesh_debuginfos[] = { 297static struct batadv_debuginfo *batadv_mesh_debuginfos[] = {
298 &batadv_debuginfo_originators, 298 &batadv_debuginfo_originators,
299 &batadv_debuginfo_gateways, 299 &batadv_debuginfo_gateways,
300 &batadv_debuginfo_transtable_global, 300 &batadv_debuginfo_transtable_global,
@@ -308,7 +308,7 @@ static struct bat_debuginfo *batadv_mesh_debuginfos[] = {
308 308
309void batadv_debugfs_init(void) 309void batadv_debugfs_init(void)
310{ 310{
311 struct bat_debuginfo *bat_debug; 311 struct batadv_debuginfo *bat_debug;
312 struct dentry *file; 312 struct dentry *file;
313 313
314 batadv_debugfs = debugfs_create_dir(BATADV_DEBUGFS_SUBDIR, NULL); 314 batadv_debugfs = debugfs_create_dir(BATADV_DEBUGFS_SUBDIR, NULL);
@@ -340,7 +340,7 @@ void batadv_debugfs_destroy(void)
340int batadv_debugfs_add_meshif(struct net_device *dev) 340int batadv_debugfs_add_meshif(struct net_device *dev)
341{ 341{
342 struct bat_priv *bat_priv = netdev_priv(dev); 342 struct bat_priv *bat_priv = netdev_priv(dev);
343 struct bat_debuginfo **bat_debug; 343 struct batadv_debuginfo **bat_debug;
344 struct dentry *file; 344 struct dentry *file;
345 345
346 if (!batadv_debugfs) 346 if (!batadv_debugfs)