All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cfg80211: fix compile error with CONFIG_CFG80211_DEBUGFS
@ 2009-05-19  1:43 Pavel Roskin
  2009-05-19  2:16 ` Luis R. Rodriguez
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Roskin @ 2009-05-19  1:43 UTC (permalink / raw)
  To: linux-wireless, John W Linville

If CONFIG_CFG80211_DEBUGFS is enabled and CONFIG_MAC80211_DEBUGFS is
not, compilation fails in net/wireless/debugfs.c:

net/wireless/debugfs.c: In function 'cfg80211_debugfs_drv_add':
net/wireless/debugfs.c:117: error: 'struct cfg80211_registered_device'
has no member named 'debugfs'

The debugfs filed is needed if and only if CONFIG_CFG80211_DEBUGFS is
enabled, so use that instead of CONFIG_MAC80211_DEBUGFS.

Signed-off-by: Pavel Roskin <proski@gnu.org>
---

 net/wireless/core.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/wireless/core.h b/net/wireless/core.h
index 9511c2b..ab512bc 100644
--- a/net/wireless/core.h
+++ b/net/wireless/core.h
@@ -51,7 +51,7 @@ struct cfg80211_registered_device {
 	struct cfg80211_scan_request *scan_req; /* protected by RTNL */
 	unsigned long suspend_at;
 
-#ifdef CONFIG_MAC80211_DEBUGFS
+#ifdef CONFIG_CFG80211_DEBUGFS
 	/* Debugfs entries */
 	struct wiphy_debugfsdentries {
 		struct dentry *rts_threshold;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cfg80211: fix compile error with CONFIG_CFG80211_DEBUGFS
  2009-05-19  1:43 [PATCH] cfg80211: fix compile error with CONFIG_CFG80211_DEBUGFS Pavel Roskin
@ 2009-05-19  2:16 ` Luis R. Rodriguez
  0 siblings, 0 replies; 2+ messages in thread
From: Luis R. Rodriguez @ 2009-05-19  2:16 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: linux-wireless, John W Linville

On Mon, May 18, 2009 at 6:43 PM, Pavel Roskin <proski@gnu.org> wrote:
> If CONFIG_CFG80211_DEBUGFS is enabled and CONFIG_MAC80211_DEBUGFS is
> not, compilation fails in net/wireless/debugfs.c:
>
> net/wireless/debugfs.c: In function 'cfg80211_debugfs_drv_add':
> net/wireless/debugfs.c:117: error: 'struct cfg80211_registered_device'
> has no member named 'debugfs'
>
> The debugfs filed is needed if and only if CONFIG_CFG80211_DEBUGFS is
> enabled, so use that instead of CONFIG_MAC80211_DEBUGFS.
>
> Signed-off-by: Pavel Roskin <proski@gnu.org>

Sorry for the trouble and thanks...

  Luis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-19  2:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-19  1:43 [PATCH] cfg80211: fix compile error with CONFIG_CFG80211_DEBUGFS Pavel Roskin
2009-05-19  2:16 ` Luis R. Rodriguez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.