Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1660583 > unrolled thread
| Started by | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| First post | 2017-06-08 02:10 +0200 |
| Last post | 2017-06-08 11:10 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
linux-next: build failure after merge of the net tree Stephen Rothwell <sfr@canb.auug.org.au> - 2017-06-08 02:10 +0200
Re: linux-next: build failure after merge of the net tree David Miller <davem@davemloft.net> - 2017-06-08 02:20 +0200
Re: linux-next: build failure after merge of the net tree Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-08 09:30 +0200
Re: linux-next: build failure after merge of the net tree Stephen Rothwell <sfr@canb.auug.org.au> - 2017-06-08 11:10 +0200
| From | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| Date | 2017-06-08 02:10 +0200 |
| Subject | linux-next: build failure after merge of the net tree |
| Message-ID | <tPTbu-5gQ-95@gated-at.bofh.it> |
Hi all,
After merging the net tree, today's linux-next build (x86_64 allmodconfig)
failed like this:
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c: In function 'rtw_cfg80211_add_monitor_if':
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:2670:10: error: 'struct net_device' has no member named 'destructor'
mon_ndev->destructor = rtw_ndev_destructor;
^
Caused by commit
cf124db566e6 ("net: Fix inconsistent teardown and release of private netdev state.")
from the net tree interacting with commit
554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver"
from Linus' tree (v4.12-rc1).
I applied the following merge fix patch for today.
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Thu, 8 Jun 2017 09:49:26 +1000
Subject: [PATCH] net: fix up for "Fix inconsistent teardown and release of private netdev state"
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 3 ++-
drivers/staging/rtl8723bs/os_dep/os_intfs.c | 2 --
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
index 36c3189fc4b7..bd4352fe2de3 100644
--- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
+++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
@@ -2667,7 +2667,8 @@ static int rtw_cfg80211_add_monitor_if (struct adapter *padapter, char *name, st
mon_ndev->type = ARPHRD_IEEE80211_RADIOTAP;
strncpy(mon_ndev->name, name, IFNAMSIZ);
mon_ndev->name[IFNAMSIZ - 1] = 0;
- mon_ndev->destructor = rtw_ndev_destructor;
+ mon_ndev->needs_free_netdev = true;
+ mon_ndev->priv_destructor = rtw_ndev_destructor;
mon_ndev->netdev_ops = &rtw_cfg80211_monitor_if_ops;
diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
index f83cfc76505c..021589913681 100644
--- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c
+++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
@@ -1207,8 +1207,6 @@ void rtw_ndev_destructor(struct net_device *ndev)
if (ndev->ieee80211_ptr)
kfree((u8 *)ndev->ieee80211_ptr);
-
- free_netdev(ndev);
}
void rtw_dev_unload(struct adapter *padapter)
--
2.11.0
--
Cheers,
Stephen Rothwell
[toc] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2017-06-08 02:20 +0200 |
| Message-ID | <tPTl8-5lN-25@gated-at.bofh.it> |
| In reply to | #1660583 |
From: Stephen Rothwell <sfr@canb.auug.org.au> Date: Thu, 8 Jun 2017 10:08:58 +1000 > I applied the following merge fix patch for today. > > From: Stephen Rothwell <sfr@canb.auug.org.au> > Date: Thu, 8 Jun 2017 09:49:26 +1000 > Subject: [PATCH] net: fix up for "Fix inconsistent teardown and release of private netdev state" > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Looks good to me, thanks Stephen.
[toc] | [prev] | [next] | [standalone]
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2017-06-08 09:30 +0200 |
| Message-ID | <tQ03f-1dY-1@gated-at.bofh.it> |
| In reply to | #1660583 |
On Thu, Jun 08, 2017 at 10:08:58AM +1000, Stephen Rothwell wrote:
> Hi all,
>
> After merging the net tree, today's linux-next build (x86_64 allmodconfig)
> failed like this:
>
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c: In function 'rtw_cfg80211_add_monitor_if':
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:2670:10: error: 'struct net_device' has no member named 'destructor'
> mon_ndev->destructor = rtw_ndev_destructor;
> ^
>
> Caused by commit
>
> cf124db566e6 ("net: Fix inconsistent teardown and release of private netdev state.")
>
> from the net tree interacting with commit
>
> 554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver"
>
> from Linus' tree (v4.12-rc1).
>
> I applied the following merge fix patch for today.
>
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Thu, 8 Jun 2017 09:49:26 +1000
> Subject: [PATCH] net: fix up for "Fix inconsistent teardown and release of private netdev state"
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 3 ++-
> drivers/staging/rtl8723bs/os_dep/os_intfs.c | 2 --
> 2 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> index 36c3189fc4b7..bd4352fe2de3 100644
> --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> @@ -2667,7 +2667,8 @@ static int rtw_cfg80211_add_monitor_if (struct adapter *padapter, char *name, st
> mon_ndev->type = ARPHRD_IEEE80211_RADIOTAP;
> strncpy(mon_ndev->name, name, IFNAMSIZ);
> mon_ndev->name[IFNAMSIZ - 1] = 0;
> - mon_ndev->destructor = rtw_ndev_destructor;
> + mon_ndev->needs_free_netdev = true;
> + mon_ndev->priv_destructor = rtw_ndev_destructor;
>
> mon_ndev->netdev_ops = &rtw_cfg80211_monitor_if_ops;
>
> diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
> index f83cfc76505c..021589913681 100644
> --- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c
> +++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
> @@ -1207,8 +1207,6 @@ void rtw_ndev_destructor(struct net_device *ndev)
>
> if (ndev->ieee80211_ptr)
> kfree((u8 *)ndev->ieee80211_ptr);
> -
> - free_netdev(ndev);
> }
>
> void rtw_dev_unload(struct adapter *padapter)
Looks good to me, thanks for this, I'll keep it around for when the
merge window happens.
greg k-h
[toc] | [prev] | [next] | [standalone]
| From | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| Date | 2017-06-08 11:10 +0200 |
| Message-ID | <tQ1C2-2gD-21@gated-at.bofh.it> |
| In reply to | #1660827 |
Hi Greg, On Thu, 8 Jun 2017 09:22:20 +0200 Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote: > > Looks good to me, thanks for this, I'll keep it around for when the > merge window happens. Actually, that patch needs to go into the net tree before Dave asks Linus to merge it - the net tree is based post v4.12-rc1 and contains fixes for the current merge window. -- Cheers, Stephen Rothwell
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web