Skip to contentSkip to conversation

linux-next: manual merge of the usb tree with the nn-nonmm-unstable tree

PATCH Stephen Rothwell 3 participants 5 messages Jan 13

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

Hi all,

After merging the usb tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

In file included from drivers/usb/gadget/function/f_ncm.c:27:
drivers/usb/gadget/function/f_ncm.c: In function 'ncm_opts_dev_addr_store':
drivers/usb/gadget/function/u_ether_configfs.h:243:31: error: implicit declaration of function 'hex_to_bin' [-Wimplicit-function-declaration]

  243 |                         num = hex_to_bin(*p++) << 4;                            \
      |                               ^~~~~~~~~~
drivers/usb/gadget/function/f_ncm.c:1600:1: note: in expansion of macro 'USB_ETHER_OPTS_ATTR_DEV_ADDR'
 1600 | USB_ETHER_OPTS_ATTR_DEV_ADDR(ncm);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

30034bbf280f ("kernel.h: drop hex.h and update all hex.h users")

from the mm-nonmm-unstable tree interacting with commits

e065c6a7e46c ("usb: gadget: u_ether: add gether_opts for config caching") 56a512a9b410 ("usb: gadget: f_ncm: align net_device lifecycle with bind/unbind")

from the USB tree.

I have applied the following merge resolution patch for today.

From: Stephen Rothwell <[email protected]>
Date: Tue, 13 Jan 2026 14:36:59 +1100
Subject: [PATCH] fix up for "usb: gadget: u_ether: add gether_opts for config
caching"

interacting with commit

30034bbf280f ("kernel.h: drop hex.h and update all hex.h users")

from the mm-nonmm-unstable tree.

---
 drivers/usb/gadget/function/u_ether_configfs.h | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/function/u_ether_configfs.h +1 -0
index 39d3a261496d..c2f8903d1400 100644
@@ -18,6 +18,7 @@
 #include <linux/mutex.h>
 #include <linux/netdevice.h>
 #include <linux/rtnetlink.h>
+#include <linux/hex.h>
 
 #define USB_ETHERNET_CONFIGFS_ITEM(_f_)					\
 	static void _f_##_attr_release(struct config_item *item)	\
Signature · 5 lines
2.52.0

-- 
Cheers,
Stephen Rothwell
#1 lore raw

Gi,

Quoted 48 lines · Stephen Rothwell

Hi all,

After merging the usb tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

In file included from drivers/usb/gadget/function/f_ncm.c:27:
drivers/usb/gadget/function/f_ncm.c: In function 'ncm_opts_dev_addr_store':
drivers/usb/gadget/function/u_ether_configfs.h:243:31: error: implicit declaration of function 'hex_to_bin' [-Wimplicit-function-declaration]

  243 |                         num = hex_to_bin(*p++) << 4;                            \
      |                               ^~~~~~~~~~
drivers/usb/gadget/function/f_ncm.c:1600:1: note: in expansion of macro 'USB_ETHER_OPTS_ATTR_DEV_ADDR'
 1600 | USB_ETHER_OPTS_ATTR_DEV_ADDR(ncm);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

30034bbf280f ("kernel.h: drop hex.h and update all hex.h users")

from the mm-nonmm-unstable tree interacting with commits

e065c6a7e46c ("usb: gadget: u_ether: add gether_opts for config caching") 56a512a9b410 ("usb: gadget: f_ncm: align net_device lifecycle with bind/unbind")

from the USB tree.

I have applied the following merge resolution patch for today.

From: Stephen Rothwell <[email protected]>
Date: Tue, 13 Jan 2026 14:36:59 +1100
Subject: [PATCH] fix up for "usb: gadget: u_ether: add gether_opts for config
caching"

interacting with commit

30034bbf280f ("kernel.h: drop hex.h and update all hex.h users")

from the mm-nonmm-unstable tree.

---
 drivers/usb/gadget/function/u_ether_configfs.h | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/function/u_ether_configfs.h +0 -0
index 39d3a261496d..c2f8903d1400 100644

drivers/usb/gadget/function/u_ether_configfs.h line 21

Quoted 4 lines
drivers/usb/gadget/function/u_ether_configfs.h +1 -0
@@ -18,6 +18,7 @@
 #include <linux/mutex.h>
 #include <linux/netdevice.h>
 #include <linux/rtnetlink.h>
+#include <linux/hex.h>

LGTM. What is the procedure for this? (my first AFAIK)

I can send a patch to Greg or Kuen-Han could do that.

drivers/usb/gadget/function/u_ether_configfs.h line 24

Quoted 2 lines
drivers/usb/gadget/function/u_ether_configfs.h +0 -0
 #define USB_ETHERNET_CONFIGFS_ITEM(_f_)					\
 	static void _f_##_attr_release(struct config_item *item)	\

Thanks.

Signature · 1 line
~Randy
#2 lore raw
Quoted 46 lines · Randy Dunlap

Gi,

Quoted 43 lines · Stephen Rothwell

Hi all,

After merging the usb tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

In file included from drivers/usb/gadget/function/f_ncm.c:27:
drivers/usb/gadget/function/f_ncm.c: In function 'ncm_opts_dev_addr_store':
drivers/usb/gadget/function/u_ether_configfs.h:243:31: error: implicit declaration of function 'hex_to_bin' [-Wimplicit-function-declaration]

  243 |                         num = hex_to_bin(*p++) << 4;                            \
      |                               ^~~~~~~~~~
drivers/usb/gadget/function/f_ncm.c:1600:1: note: in expansion of macro 'USB_ETHER_OPTS_ATTR_DEV_ADDR'
 1600 | USB_ETHER_OPTS_ATTR_DEV_ADDR(ncm);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

30034bbf280f ("kernel.h: drop hex.h and update all hex.h users")

from the mm-nonmm-unstable tree interacting with commits

e065c6a7e46c ("usb: gadget: u_ether: add gether_opts for config caching") 56a512a9b410 ("usb: gadget: f_ncm: align net_device lifecycle with bind/unbind")

from the USB tree.

I have applied the following merge resolution patch for today.

From: Stephen Rothwell <[email protected]>
Date: Tue, 13 Jan 2026 14:36:59 +1100
Subject: [PATCH] fix up for "usb: gadget: u_ether: add gether_opts for config
caching"

interacting with commit

30034bbf280f ("kernel.h: drop hex.h and update all hex.h users")

from the mm-nonmm-unstable tree.

---
 drivers/usb/gadget/function/u_ether_configfs.h | 1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

drivers/usb/gadget/function/u_ether_configfs.h line 21

Quoted 9 lines
drivers/usb/gadget/function/u_ether_configfs.h +1 -0
index 39d3a261496d..c2f8903d1400 100644
@@ -18,6 +18,7 @@
 #include <linux/mutex.h>
 #include <linux/netdevice.h>
 #include <linux/rtnetlink.h>
+#include <linux/hex.h>

LGTM. What is the procedure for this? (my first AFAIK)

I can take a patch for this now in my tree, as it would "just work" for that, right?

thanks,

greg k-h

#3 lore raw
Quoted 59 lines · Greg KH
Quoted 46 lines · Randy Dunlap

Gi,

Quoted 43 lines · Stephen Rothwell

Hi all,

After merging the usb tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

In file included from drivers/usb/gadget/function/f_ncm.c:27:
drivers/usb/gadget/function/f_ncm.c: In function 'ncm_opts_dev_addr_store':
drivers/usb/gadget/function/u_ether_configfs.h:243:31: error: implicit declaration of function 'hex_to_bin' [-Wimplicit-function-declaration]

  243 |                         num = hex_to_bin(*p++) << 4;                            \
      |                               ^~~~~~~~~~
drivers/usb/gadget/function/f_ncm.c:1600:1: note: in expansion of macro 'USB_ETHER_OPTS_ATTR_DEV_ADDR'
 1600 | USB_ETHER_OPTS_ATTR_DEV_ADDR(ncm);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

30034bbf280f ("kernel.h: drop hex.h and update all hex.h users")

from the mm-nonmm-unstable tree interacting with commits

e065c6a7e46c ("usb: gadget: u_ether: add gether_opts for config caching") 56a512a9b410 ("usb: gadget: f_ncm: align net_device lifecycle with bind/unbind")

from the USB tree.

I have applied the following merge resolution patch for today.

From: Stephen Rothwell <[email protected]>
Date: Tue, 13 Jan 2026 14:36:59 +1100
Subject: [PATCH] fix up for "usb: gadget: u_ether: add gether_opts for config
caching"

interacting with commit

30034bbf280f ("kernel.h: drop hex.h and update all hex.h users")

from the mm-nonmm-unstable tree.

---
 drivers/usb/gadget/function/u_ether_configfs.h | 1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

drivers/usb/gadget/function/u_ether_configfs.h line 21

Quoted 9 lines
drivers/usb/gadget/function/u_ether_configfs.h +1 -0
index 39d3a261496d..c2f8903d1400 100644
@@ -18,6 +18,7 @@
 #include <linux/mutex.h>
 #include <linux/netdevice.h>
 #include <linux/rtnetlink.h>
+#include <linux/hex.h>

LGTM. What is the procedure for this? (my first AFAIK)

Quoted 2 lines

I can take a patch for this now in my tree, as it would "just work" for that, right?

Yes, it just needs that additional header file.
Thanks.

Signature · 1 line
~Randy
#4 lore raw
Quoted 62 lines · Randy Dunlap
Quoted 59 lines · Greg KH
Quoted 57 lines · Randy Dunlap

Gi,

Quoted 48 lines · Stephen Rothwell

Hi all,

After merging the usb tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

In file included from drivers/usb/gadget/function/f_ncm.c:27:
drivers/usb/gadget/function/f_ncm.c: In function 'ncm_opts_dev_addr_store':
drivers/usb/gadget/function/u_ether_configfs.h:243:31: error: implicit declaration of function 'hex_to_bin' [-Wimplicit-function-declaration]

  243 |                         num = hex_to_bin(*p++) << 4;                            \
      |                               ^~~~~~~~~~
drivers/usb/gadget/function/f_ncm.c:1600:1: note: in expansion of macro 'USB_ETHER_OPTS_ATTR_DEV_ADDR'
 1600 | USB_ETHER_OPTS_ATTR_DEV_ADDR(ncm);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

30034bbf280f ("kernel.h: drop hex.h and update all hex.h users")

from the mm-nonmm-unstable tree interacting with commits

e065c6a7e46c ("usb: gadget: u_ether: add gether_opts for config caching") 56a512a9b410 ("usb: gadget: f_ncm: align net_device lifecycle with bind/unbind")

from the USB tree.

I have applied the following merge resolution patch for today.

From: Stephen Rothwell <[email protected]>
Date: Tue, 13 Jan 2026 14:36:59 +1100
Subject: [PATCH] fix up for "usb: gadget: u_ether: add gether_opts for config
caching"

interacting with commit

30034bbf280f ("kernel.h: drop hex.h and update all hex.h users")

from the mm-nonmm-unstable tree.

---
 drivers/usb/gadget/function/u_ether_configfs.h | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/function/u_ether_configfs.h +0 -0
index 39d3a261496d..c2f8903d1400 100644

drivers/usb/gadget/function/u_ether_configfs.h line 21

Quoted 4 lines
drivers/usb/gadget/function/u_ether_configfs.h +1 -0
@@ -18,6 +18,7 @@
 #include <linux/mutex.h>
 #include <linux/netdevice.h>
 #include <linux/rtnetlink.h>
+#include <linux/hex.h>

LGTM. What is the procedure for this? (my first AFAIK)

Quoted 5 lines
Quoted 2 lines

I can take a patch for this now in my tree, as it would "just work" for that, right?

Yes, it just needs that additional header file.
Thanks.

I'm sending a patch, or you can just go with the patch that Stephen added.

Signature · 1 line
~Randy