Alexander Aring | b1815fd | 2015-12-09 22:46:30 +0100 | [diff] [blame] | 1 | #ifndef __6LOWPAN_I_H |
| 2 | #define __6LOWPAN_I_H |
| 3 | |
| 4 | #include <linux/netdevice.h> |
| 5 | |
| 6 | #ifdef CONFIG_6LOWPAN_DEBUGFS |
| 7 | int lowpan_dev_debugfs_init(struct net_device *dev); |
| 8 | void lowpan_dev_debugfs_exit(struct net_device *dev); |
| 9 | |
| 10 | int __init lowpan_debugfs_init(void); |
| 11 | void lowpan_debugfs_exit(void); |
| 12 | #else |
| 13 | static inline int lowpan_dev_debugfs_init(struct net_device *dev) |
| 14 | { |
| 15 | return 0; |
| 16 | } |
| 17 | |
| 18 | static inline void lowpan_dev_debugfs_exit(struct net_device *dev) { } |
| 19 | |
| 20 | static inline int __init lowpan_debugfs_init(void) |
| 21 | { |
| 22 | return 0; |
| 23 | } |
| 24 | |
| 25 | static inline void lowpan_debugfs_exit(void) { } |
| 26 | #endif /* CONFIG_6LOWPAN_DEBUGFS */ |
| 27 | |
| 28 | #endif /* __6LOWPAN_I_H */ |