Skip to contentSkip to conversation

linux-next: build failure after merge of the staging tree

PATCH Stephen Rothwell 2 participants 2 messages Apr 18, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3426:25: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.change_virtual_intf = cfg80211_rtw_change_iface,

                         ^
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3426:25: note: (near initialization for 'rtw_cfg80211_ops.change_virtual_intf')
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3445:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .add_virtual_intf = cfg80211_rtw_add_virtual_intf,
                      ^

drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3445:22: note: (near initialization for 'rtw_cfg80211_ops.add_virtual_intf')

Caused by commit

554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver")

interacting with commit

818a986e4eba ("cfg80211: move add/change interface monitor flags into params")

from the mac80211-next tree.

I have added the following merge fix patch:

From: Stephen Rothwell <[email protected]>
Date: Tue, 18 Apr 2017 15:43:43 +1000
Subject: [PATCH] staging: merge fix for add/change_virtual-intf API change

---
 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +2 -2
index 52aa65bfd890..f17f4fbd3396 100644
@@ -1310,7 +1310,7 @@ extern int netdev_open(struct net_device *pnetdev);
 
 static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
 				     struct net_device *ndev,
-				     enum nl80211_iftype type, u32 *flags,
+				     enum nl80211_iftype type,
 				     struct vif_params *params)
 {
 	enum nl80211_iftype old_type;
@@ -2711,7 +2711,7 @@ static struct wireless_dev *
 		struct wiphy *wiphy,
 		const char *name,
 		unsigned char name_assign_type,
-		enum nl80211_iftype type, u32 *flags, struct vif_params *params)
+		enum nl80211_iftype type, struct vif_params *params)
 {
 	int ret = 0;
 	struct net_device* ndev = NULL;
Signature · 5 lines
2.11.0

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 3 lines · Stephen Rothwell

Caused by commit

  554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver")

Oh, another new driver :)

Quoted 5 lines

interacting with commit

  818a986e4eba ("cfg80211: move add/change interface monitor flags into params")

Quoted 8 lines

from the mac80211-next tree.

I have added the following merge fix patch:

From: Stephen Rothwell <[email protected]>
Date: Tue, 18 Apr 2017 15:43:43 +1000
Subject: [PATCH] staging: merge fix for add/change_virtual-intf API change

That looks good, evidently it doesn't care about the parameter then.

Thanks!

johannes