Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 5 messages May 11, 2021 – May 13, 2021

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

Hi all,

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

drivers/usb/class/cdc-wdm.c: In function 'wdm_wwan_port_stop':
drivers/usb/class/cdc-wdm.c:858:2: error: implicit declaration of function 'kill_urbs' [-Werror=implicit-function-declaration]

  858 |  kill_urbs(desc);
      |  ^~~~~~~~~

Caused by commit

cac6fb015f71 ("usb: class: cdc-wdm: WWAN framework integration")

kill_urbs() was removed by commit

18abf8743674 ("cdc-wdm: untangle a circular dependency between callback and softint")

Which is included in v5.13-rc1.

I have used the net-next tree from next-20210511 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen,

Quoted 11 lines · On Wed, 12 May 2021 09:52:01 +1000 Stephen Rothwell <[email protected]>…

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

drivers/usb/class/cdc-wdm.c: In function 'wdm_wwan_port_stop':
drivers/usb/class/cdc-wdm.c:858:2: error: implicit declaration of function 'kill_urbs' [-Werror=implicit-function-declaration]

  858 |  kill_urbs(desc);
      |  ^~~~~~~~~

Caused by commit

Quoted 7 lines

cac6fb015f71 ("usb: class: cdc-wdm: WWAN framework integration")

kill_urbs() was removed by commit

18abf8743674 ("cdc-wdm: untangle a circular dependency between callback and softint")

Which is included in v5.13-rc1.

Sorry, that commit is only in linux-next (from the usb.current tree). I will do a merge fix up tomorrow - unless someone provides one.

Quoted 1 line

I have used the net-next tree from next-20210511 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#2 lore raw

Hi all,

Quoted 15 lines · On Wed, 12 May 2021 09:54:18 +1000 Stephen Rothwell <[email protected]>…
Quoted 13 lines · On Wed, 12 May 2021 09:52:01 +1000 Stephen Rothwell <[email protected]>…

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

drivers/usb/class/cdc-wdm.c: In function 'wdm_wwan_port_stop':
drivers/usb/class/cdc-wdm.c:858:2: error: implicit declaration of function 'kill_urbs' [-Werror=implicit-function-declaration]

  858 |  kill_urbs(desc);
      |  ^~~~~~~~~

Caused by commit

cac6fb015f71 ("usb: class: cdc-wdm: WWAN framework integration")

Quoted 10 lines
Quoted 5 lines

kill_urbs() was removed by commit

18abf8743674 ("cdc-wdm: untangle a circular dependency between callback and softint")

Which is included in v5.13-rc1.

Sorry, that commit is only in linux-next (from the usb.current tree). I will do a merge fix up tomorrow - unless someone provides one.

Quoted 1 line

I have used the net-next tree from next-20210511 for today.

I have used the following merge fix patch for today. I don't know if this is sufficient (or even correct), but it does build.

From: Stephen Rothwell <[email protected]>
Date: Thu, 13 May 2021 11:04:09 +1000
Subject: [PATCH] usb: class: cdc-wdm: fix for kill_urbs() removal

---
 drivers/usb/class/cdc-wdm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/class/cdc-wdm.c +1 -1
index c88dcc4b6618..489b0e049402 100644
@@ -855,7 +855,7 @@ static void wdm_wwan_port_stop(struct wwan_port *port)
 	struct wdm_device *desc = wwan_port_get_drvdata(port);
 
 	/* Stop all transfers and disable WWAN mode */
-	kill_urbs(desc);
+	poison_urbs(desc);
 	desc->manage_power(desc->intf, 0);
 	clear_bit(WDM_READ, &desc->flags);
 	clear_bit(WDM_WWAN_IN_USE, &desc->flags);
Signature · 5 lines
2.30.2

-- 
Cheers,
Stephen Rothwell
#3 lore raw

Hi Stephen,

Quoted 25 lines · Stephen Rothwell

Hi all,

Quoted 21 lines · On Wed, 12 May 2021 09:54:18 +1000 Stephen Rothwell <[email protected]>…
Quoted 18 lines · On Wed, 12 May 2021 09:52:01 +1000 Stephen Rothwell <[email protected]>…

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

drivers/usb/class/cdc-wdm.c: In function 'wdm_wwan_port_stop':
drivers/usb/class/cdc-wdm.c:858:2: error: implicit declaration of function 'kill_urbs' [-Werror=implicit-function-declaration]

  858 |  kill_urbs(desc);
      |  ^~~~~~~~~

Caused by commit

cac6fb015f71 ("usb: class: cdc-wdm: WWAN framework integration")

kill_urbs() was removed by commit

18abf8743674 ("cdc-wdm: untangle a circular dependency between callback and softint")

Which is included in v5.13-rc1.

Quoted 7 lines
Quoted 4 lines

Sorry, that commit is only in linux-next (from the usb.current tree). I will do a merge fix up tomorrow - unless someone provides one.

Quoted 1 line

I have used the net-next tree from next-20210511 for today.

I have used the following merge fix patch for today. I don't know if this is sufficient (or even correct), but it does build.

Thanks for working on this.

Quoted 15 lines

From: Stephen Rothwell <[email protected]>
Date: Thu, 13 May 2021 11:04:09 +1000
Subject: [PATCH] usb: class: cdc-wdm: fix for kill_urbs() removal

---
 drivers/usb/class/cdc-wdm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/class/cdc-wdm.c +0 -0
index c88dcc4b6618..489b0e049402 100644

drivers/usb/class/cdc-wdm.c static void wdm_wwan_port_stop(struct wwan_port *port) · line 861

Quoted 8 lines
drivers/usb/class/cdc-wdm.c +1 -1
@@ -855,7 +855,7 @@ static void wdm_wwan_port_stop(struct wwan_port *port)
        struct wdm_device *desc = wwan_port_get_drvdata(port);
 
        /* Stop all transfers and disable WWAN mode */
-       kill_urbs(desc);
+       poison_urbs(desc);
        desc->manage_power(desc->intf, 0);
        clear_bit(WDM_READ, &desc->flags);
        clear_bit(WDM_WWAN_IN_USE, &desc->flags);

AFAIU, each poison call must be balanced with unpoison call. So you probably want to call unpoison_urbs right here, similarly to wdm_release or wdm_suspend.

Regards,
Loic

Quoted 6 lines

--
2.30.2

--
Cheers,
Stephen Rothwell

#4 lore raw

Hi Loic,

Quoted 52 lines · On Thu, 13 May 2021 08:35:50 +0200 Loic Poulain <[email protected]> wrote:
Quoted 23 lines · Stephen Rothwell
Quoted 21 lines · On Wed, 12 May 2021 09:54:18 +1000 Stephen Rothwell <[email protected]>…
Quoted 18 lines · On Wed, 12 May 2021 09:52:01 +1000 Stephen Rothwell <[email protected]>…

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

drivers/usb/class/cdc-wdm.c: In function 'wdm_wwan_port_stop':
drivers/usb/class/cdc-wdm.c:858:2: error: implicit declaration of function 'kill_urbs' [-Werror=implicit-function-declaration]

  858 |  kill_urbs(desc);
      |  ^~~~~~~~~

Caused by commit

cac6fb015f71 ("usb: class: cdc-wdm: WWAN framework integration")

kill_urbs() was removed by commit

18abf8743674 ("cdc-wdm: untangle a circular dependency between callback and softint")

Which is included in v5.13-rc1.

Quoted 7 lines
Quoted 4 lines

Sorry, that commit is only in linux-next (from the usb.current tree). I will do a merge fix up tomorrow - unless someone provides one.

Quoted 1 line

I have used the net-next tree from next-20210511 for today.

I have used the following merge fix patch for today. I don't know if this is sufficient (or even correct), but it does build.

Thanks for working on this.

Quoted 17 lines

From: Stephen Rothwell <[email protected]>
Date: Thu, 13 May 2021 11:04:09 +1000
Subject: [PATCH] usb: class: cdc-wdm: fix for kill_urbs() removal

---
 drivers/usb/class/cdc-wdm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/class/cdc-wdm.c +0 -0
index c88dcc4b6618..489b0e049402 100644
@@ -855,7 +855,7 @@ static void wdm_wwan_port_stop(struct wwan_port *port)
        struct wdm_device *desc = wwan_port_get_drvdata(port);
 
Quoted 10 lines

drivers/usb/class/cdc-wdm.c static void wdm_wwan_port_stop(struct wwan_port *port) · line 861

Quoted 6 lines
drivers/usb/class/cdc-wdm.c +1 -1
        /* Stop all transfers and disable WWAN mode */
-       kill_urbs(desc);
+       poison_urbs(desc);
        desc->manage_power(desc->intf, 0);
        clear_bit(WDM_READ, &desc->flags);
        clear_bit(WDM_WWAN_IN_USE, &desc->flags);  

AFAIU, each poison call must be balanced with unpoison call. So you probably want to call unpoison_urbs right here, similarly to wdm_release or wdm_suspend.

I have added that call today.

Thanks for the feedback.

Signature · 2 lines
Cheers,
Stephen Rothwell