diff options
author | Antonio Quartulli <ordex@autistici.org> | 2011-11-06 06:23:55 -0500 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-11-07 14:00:22 -0500 |
commit | 172244748204c894864def59133d0133ccfabe30 (patch) | |
tree | 1fbf50d85f91ae0ef253b2080556b455a28c7789 /net/batman-adv/debugfs.c | |
parent | c384ea3ec930ef11060a7308fbbd02b4871384f9 (diff) |
batman-adv: Distributed ARP Table - add compile option
This patch makes it possible to decide whether to include DAT within the
batman-adv binary or not.
It is extremely useful when the user wants to reduce the size of the resulting
module by cutting off any not needed feature.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/debugfs.c')
-rw-r--r-- | net/batman-adv/debugfs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/batman-adv/debugfs.c b/net/batman-adv/debugfs.c index ebc5f4d1f53c..3f679cb2d0e2 100644 --- a/net/batman-adv/debugfs.c +++ b/net/batman-adv/debugfs.c | |||
@@ -281,6 +281,7 @@ static int batadv_bla_backbone_table_open(struct inode *inode, | |||
281 | 281 | ||
282 | #endif | 282 | #endif |
283 | 283 | ||
284 | #ifdef CONFIG_BATMAN_ADV_DAT | ||
284 | /** | 285 | /** |
285 | * batadv_dat_cache_open - Prepare file handler for reads from dat_chache | 286 | * batadv_dat_cache_open - Prepare file handler for reads from dat_chache |
286 | * @inode: inode which was opened | 287 | * @inode: inode which was opened |
@@ -291,7 +292,7 @@ static int batadv_dat_cache_open(struct inode *inode, struct file *file) | |||
291 | struct net_device *net_dev = (struct net_device *)inode->i_private; | 292 | struct net_device *net_dev = (struct net_device *)inode->i_private; |
292 | return single_open(file, batadv_dat_cache_seq_print_text, net_dev); | 293 | return single_open(file, batadv_dat_cache_seq_print_text, net_dev); |
293 | } | 294 | } |
294 | 295 | #endif | |
295 | 296 | ||
296 | static int batadv_transtable_local_open(struct inode *inode, struct file *file) | 297 | static int batadv_transtable_local_open(struct inode *inode, struct file *file) |
297 | { | 298 | { |
@@ -332,7 +333,9 @@ static BATADV_DEBUGINFO(bla_claim_table, S_IRUGO, batadv_bla_claim_table_open); | |||
332 | static BATADV_DEBUGINFO(bla_backbone_table, S_IRUGO, | 333 | static BATADV_DEBUGINFO(bla_backbone_table, S_IRUGO, |
333 | batadv_bla_backbone_table_open); | 334 | batadv_bla_backbone_table_open); |
334 | #endif | 335 | #endif |
336 | #ifdef CONFIG_BATMAN_ADV_DAT | ||
335 | static BATADV_DEBUGINFO(dat_cache, S_IRUGO, batadv_dat_cache_open); | 337 | static BATADV_DEBUGINFO(dat_cache, S_IRUGO, batadv_dat_cache_open); |
338 | #endif | ||
336 | static BATADV_DEBUGINFO(transtable_local, S_IRUGO, | 339 | static BATADV_DEBUGINFO(transtable_local, S_IRUGO, |
337 | batadv_transtable_local_open); | 340 | batadv_transtable_local_open); |
338 | static BATADV_DEBUGINFO(vis_data, S_IRUGO, batadv_vis_data_open); | 341 | static BATADV_DEBUGINFO(vis_data, S_IRUGO, batadv_vis_data_open); |
@@ -345,7 +348,9 @@ static struct batadv_debuginfo *batadv_mesh_debuginfos[] = { | |||
345 | &batadv_debuginfo_bla_claim_table, | 348 | &batadv_debuginfo_bla_claim_table, |
346 | &batadv_debuginfo_bla_backbone_table, | 349 | &batadv_debuginfo_bla_backbone_table, |
347 | #endif | 350 | #endif |
351 | #ifdef CONFIG_BATMAN_ADV_DAT | ||
348 | &batadv_debuginfo_dat_cache, | 352 | &batadv_debuginfo_dat_cache, |
353 | #endif | ||
349 | &batadv_debuginfo_transtable_local, | 354 | &batadv_debuginfo_transtable_local, |
350 | &batadv_debuginfo_vis_data, | 355 | &batadv_debuginfo_vis_data, |
351 | NULL, | 356 | NULL, |