diff mbox

cfg80211: fix compilation error in cfg80211

Message ID 1399634516-13089-1-git-send-email-luca@coelho.fi (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Luca Coelho May 9, 2014, 11:21 a.m. UTC
From: Luciano Coelho <luciano.coelho@intel.com>

Commit 0be035a2 (mac80211: handle failed restart/resume better) broke
compilation:

net/wireless/core.c: In function 'cfg80211_shutdown_all_interfaces':
net/wireless/core.c:215:9: error: implicit declaration of function 'wiphy_to_dev' [-Werror=implicit-function-declaration]
  struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
         ^

This is due to the function name change from wiphy_to_dev() to
wiphy_to_rdev().

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
---

Feel free to squash this into your last commit, if you prefer to
rebase your mac80211-next/master branch.

 net/wireless/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Johannes Berg May 9, 2014, 11:33 a.m. UTC | #1
On Fri, 2014-05-09 at 14:21 +0300, Luca Coelho wrote:
> From: Luciano Coelho <luciano.coelho@intel.com>
> 
> Commit 0be035a2 (mac80211: handle failed restart/resume better) broke
> compilation:
> 
> net/wireless/core.c: In function 'cfg80211_shutdown_all_interfaces':
> net/wireless/core.c:215:9: error: implicit declaration of function 'wiphy_to_dev' [-Werror=implicit-function-declaration]
>   struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
>          ^
> 
> This is due to the function name change from wiphy_to_dev() to
> wiphy_to_rdev().

Yeah, my mistake, but I already had Fengguang's build bot flag it and
fixed it already. Thanks though.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/wireless/core.c b/net/wireless/core.c
index c95fddf..3978871 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -212,7 +212,7 @@  void cfg80211_stop_p2p_device(struct cfg80211_registered_device *rdev,
 
 void cfg80211_shutdown_all_interfaces(struct wiphy *wiphy)
 {
-	struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
+	struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy);
 	struct wireless_dev *wdev;
 
 	ASSERT_RTNL();