drivers/usb/gadget/function/u_ether_configfs.h | 1 + 1 file changed, 1 insertion(+)
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 <sfr@canb.auug.org.au>
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.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/usb/gadget/function/u_ether_configfs.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/gadget/function/u_ether_configfs.h b/drivers/usb/gadget/function/u_ether_configfs.h
index 39d3a261496d..c2f8903d1400 100644
--- a/drivers/usb/gadget/function/u_ether_configfs.h
+++ b/drivers/usb/gadget/function/u_ether_configfs.h
@@ -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) \
--
2.52.0
--
Cheers,
Stephen Rothwell
Gi,
On 1/12/26 8:07 PM, Stephen Rothwell wrote:
> 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 <sfr@canb.auug.org.au>
> 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.
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> drivers/usb/gadget/function/u_ether_configfs.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/gadget/function/u_ether_configfs.h b/drivers/usb/gadget/function/u_ether_configfs.h
> index 39d3a261496d..c2f8903d1400 100644
> --- a/drivers/usb/gadget/function/u_ether_configfs.h
> +++ b/drivers/usb/gadget/function/u_ether_configfs.h
> @@ -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.
> #define USB_ETHERNET_CONFIGFS_ITEM(_f_) \
> static void _f_##_attr_release(struct config_item *item) \
Thanks.
--
~Randy
On Mon, Jan 12, 2026 at 10:44:29PM -0800, Randy Dunlap wrote:
> Gi,
>
> On 1/12/26 8:07 PM, Stephen Rothwell wrote:
> > 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 <sfr@canb.auug.org.au>
> > 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.
> >
> > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > ---
> > drivers/usb/gadget/function/u_ether_configfs.h | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/usb/gadget/function/u_ether_configfs.h b/drivers/usb/gadget/function/u_ether_configfs.h
> > index 39d3a261496d..c2f8903d1400 100644
> > --- a/drivers/usb/gadget/function/u_ether_configfs.h
> > +++ b/drivers/usb/gadget/function/u_ether_configfs.h
> > @@ -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
On 1/12/26 10:53 PM, Greg KH wrote:
> On Mon, Jan 12, 2026 at 10:44:29PM -0800, Randy Dunlap wrote:
>> Gi,
>>
>> On 1/12/26 8:07 PM, Stephen Rothwell wrote:
>>> 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 <sfr@canb.auug.org.au>
>>> 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.
>>>
>>> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
>>> ---
>>> drivers/usb/gadget/function/u_ether_configfs.h | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/drivers/usb/gadget/function/u_ether_configfs.h b/drivers/usb/gadget/function/u_ether_configfs.h
>>> index 39d3a261496d..c2f8903d1400 100644
>>> --- a/drivers/usb/gadget/function/u_ether_configfs.h
>>> +++ b/drivers/usb/gadget/function/u_ether_configfs.h
>>> @@ -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?
Yes, it just needs that additional header file.
Thanks.
--
~Randy
On 1/12/26 11:01 PM, Randy Dunlap wrote:
>
>
> On 1/12/26 10:53 PM, Greg KH wrote:
>> On Mon, Jan 12, 2026 at 10:44:29PM -0800, Randy Dunlap wrote:
>>> Gi,
>>>
>>> On 1/12/26 8:07 PM, Stephen Rothwell wrote:
>>>> 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 <sfr@canb.auug.org.au>
>>>> 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.
>>>>
>>>> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
>>>> ---
>>>> drivers/usb/gadget/function/u_ether_configfs.h | 1 +
>>>> 1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/drivers/usb/gadget/function/u_ether_configfs.h b/drivers/usb/gadget/function/u_ether_configfs.h
>>>> index 39d3a261496d..c2f8903d1400 100644
>>>> --- a/drivers/usb/gadget/function/u_ether_configfs.h
>>>> +++ b/drivers/usb/gadget/function/u_ether_configfs.h
>>>> @@ -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?
>
> 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.
--
~Randy
© 2016 - 2026 Red Hat, Inc.