mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 13:44:15 +08:00
7bcfaf2f43
We can save a lot of code and pointers in the structs by using debugfs_remove_recursive(). First, change cfg80211 to use debugfs_remove_recursive() so that drivers do not need to clean up any files they added to the per-wiphy debugfs (if and only if they are ok to be accessed until after wiphy_unregister!). Then also make mac80211 use debugfs_remove_recursive() where necessary -- it need not remove per-wiphy files as cfg80211 now removes those, but netdev etc. files still need to be handled but can now be removed without needing struct dentry pointers to all of them. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
15 lines
354 B
C
15 lines
354 B
C
#ifndef __MAC80211_DEBUGFS_H
|
|
#define __MAC80211_DEBUGFS_H
|
|
|
|
#ifdef CONFIG_MAC80211_DEBUGFS
|
|
extern void debugfs_hw_add(struct ieee80211_local *local);
|
|
extern int mac80211_open_file_generic(struct inode *inode, struct file *file);
|
|
#else
|
|
static inline void debugfs_hw_add(struct ieee80211_local *local)
|
|
{
|
|
return;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MAC80211_DEBUGFS_H */
|