Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 3 participants 4 messages Nov 21, 2025

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

Hi all,

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

drivers/platform/x86/intel/chtwc_int33fe.c:80:12: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?

   80 |         { .node = NULL },
      |            ^~~~
      |            swnode
drivers/platform/x86/intel/chtwc_int33fe.c: In function 'cht_int33fe_remove_nodes':
drivers/platform/x86/intel/chtwc_int33fe.c:193:33: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?
  193 |         if (fusb302_mux_refs[0].node) {
      |                                 ^~~~
      |                                 swnode
drivers/platform/x86/intel/chtwc_int33fe.c:194:76: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?
  194 |                 fwnode_handle_put(software_node_fwnode(fusb302_mux_refs[0].node));
      |                                                                            ^~~~
      |                                                                            swnode
drivers/platform/x86/intel/chtwc_int33fe.c:195:37: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?
  195 |                 fusb302_mux_refs[0].node = NULL;
      |                                     ^~~~
      |                                     swnode
drivers/platform/x86/intel/chtwc_int33fe.c: In function 'cht_int33fe_add_nodes':
drivers/platform/x86/intel/chtwc_int33fe.c:225:29: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?
  225 |         fusb302_mux_refs[0].node = mux_ref_node;
      |                             ^~~~
      |                             swnode

Caused by commit

d7cdbbc93c56 ("software node: allow referencing firmware nodes")

I have used the reset tree from next-20251120 for today.

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

Hi all,

Quoted 27 lines · On Fri, 21 Nov 2025 11:15:34 +1100 Stephen Rothwell <[email protected]>…

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

drivers/platform/x86/intel/chtwc_int33fe.c:80:12: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?

   80 |         { .node = NULL },
      |            ^~~~
      |            swnode
drivers/platform/x86/intel/chtwc_int33fe.c: In function 'cht_int33fe_remove_nodes':
drivers/platform/x86/intel/chtwc_int33fe.c:193:33: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?
  193 |         if (fusb302_mux_refs[0].node) {
      |                                 ^~~~
      |                                 swnode
drivers/platform/x86/intel/chtwc_int33fe.c:194:76: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?
  194 |                 fwnode_handle_put(software_node_fwnode(fusb302_mux_refs[0].node));
      |                                                                            ^~~~
      |                                                                            swnode
drivers/platform/x86/intel/chtwc_int33fe.c:195:37: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?
  195 |                 fusb302_mux_refs[0].node = NULL;
      |                                     ^~~~
      |                                     swnode
drivers/platform/x86/intel/chtwc_int33fe.c: In function 'cht_int33fe_add_nodes':
drivers/platform/x86/intel/chtwc_int33fe.c:225:29: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?
  225 |         fusb302_mux_refs[0].node = mux_ref_node;
      |                             ^~~~
      |                             swnode
Quoted 5 lines

Caused by commit

d7cdbbc93c56 ("software node: allow referencing firmware nodes")

I have used the reset tree from next-20251120 for today.

This same commit is also in the gpio-brgl tree, so I have used that tree from next-20251120 as well.

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

Hi all,

Quoted 27 lines · On Fri, 21 Nov 2025 11:15:34 +1100 Stephen Rothwell <[email protected]>…

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

drivers/platform/x86/intel/chtwc_int33fe.c:80:12: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?

   80 |         { .node = NULL },
      |            ^~~~
      |            swnode
drivers/platform/x86/intel/chtwc_int33fe.c: In function 'cht_int33fe_remove_nodes':
drivers/platform/x86/intel/chtwc_int33fe.c:193:33: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?
  193 |         if (fusb302_mux_refs[0].node) {
      |                                 ^~~~
      |                                 swnode
drivers/platform/x86/intel/chtwc_int33fe.c:194:76: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?
  194 |                 fwnode_handle_put(software_node_fwnode(fusb302_mux_refs[0].node));
      |                                                                            ^~~~
      |                                                                            swnode
drivers/platform/x86/intel/chtwc_int33fe.c:195:37: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?
  195 |                 fusb302_mux_refs[0].node = NULL;
      |                                     ^~~~
      |                                     swnode
drivers/platform/x86/intel/chtwc_int33fe.c: In function 'cht_int33fe_add_nodes':
drivers/platform/x86/intel/chtwc_int33fe.c:225:29: error: 'struct software_node_ref_args' has no member named 'node'; did you mean 'swnode'?
  225 |         fusb302_mux_refs[0].node = mux_ref_node;
      |                             ^~~~
      |                             swnode
Quoted 8 lines
Quoted 5 lines

Caused by commit

d7cdbbc93c56 ("software node: allow referencing firmware nodes")

I have used the reset tree from next-20251120 for today.

This same commit is also in the gpio-brgl tree, so I have used that tree from next-20251120 as well.

Commit d7cdbbc93c56 ("software node: allow referencing firmware nodes") renames the 'node' field in software_node_ref_args to 'swnode', so the trivial build fix would be:

----------8<----------

drivers/platform/x86/intel/chtwc_int33fe.c +5 -5
index 29e8b5432f4c..96400dec0baf 100644
@@ -77,7 +77,7 @@ static const struct software_node max17047_node = {
  * software node.
  */
 static struct software_node_ref_args fusb302_mux_refs[] = {
-       { .node = NULL },
+       { .swnode = NULL },
 };
 
 static const struct property_entry fusb302_properties[] = {
@@ -190,9 +190,9 @@ static void cht_int33fe_remove_nodes(struct cht_int33fe_data *data)
 {
        software_node_unregister_node_group(node_group);
 
-       if (fusb302_mux_refs[0].node) {
-               fwnode_handle_put(software_node_fwnode(fusb302_mux_refs[0].node));
-               fusb302_mux_refs[0].node = NULL;
+       if (fusb302_mux_refs[0].swnode) {
+               fwnode_handle_put(software_node_fwnode(fusb302_mux_refs[0].swnode));
+               fusb302_mux_refs[0].swnode = NULL;
        }
 
        if (data->dp) {
@@ -222,7 +222,7 @@ static int cht_int33fe_add_nodes(struct cht_int33fe_data *data)
         * rely on software_node_register_node_group() to use the original
         * instance of properties instead of copying them.
         */
-       fusb302_mux_refs[0].node = mux_ref_node;
+       fusb302_mux_refs[0].swnode = mux_ref_node;
 
        ret = software_node_register_node_group(node_group);
        if (ret)

---------->8----------

I assume it was expected that drivers don't modify contents of struct software_node_ref_args directly, but rather assign them with SOFTWARE_NODE_REFERENCE(), so maybe this is not the correct fix?

regards
Philipp

#3 lore raw
Quoted 54 lines · Philipp Zabel
Quoted 10 lines
Quoted 7 lines

Caused by commit

d7cdbbc93c56 ("software node: allow referencing firmware nodes")

I have used the reset tree from next-20251120 for today.

This same commit is also in the gpio-brgl tree, so I have used that tree from next-20251120 as well.

Commit d7cdbbc93c56 ("software node: allow referencing firmware nodes") renames the 'node' field in software_node_ref_args to 'swnode', so the trivial build fix would be:

----------8<----------

drivers/platform/x86/intel/chtwc_int33fe.c +5 -6
index 29e8b5432f4c..96400dec0baf 100644
@@ -77,7 +77,7 @@ static const struct software_node max17047_node = {
  * software node.
  */
 static struct software_node_ref_args fusb302_mux_refs[] = {
-       { .node = NULL },
+       { .swnode = NULL },
 };
 
 static const struct property_entry fusb302_properties[] = {
@@ -190,9 +190,9 @@ static void cht_int33fe_remove_nodes(struct cht_int33fe_data *data)
 {
        software_node_unregister_node_group(node_group);
 
-       if (fusb302_mux_refs[0].node) {
-               fwnode_handle_put(software_node_fwnode(fusb302_mux_refs[0].node));
-               fusb302_mux_refs[0].node = NULL;
+       if (fusb302_mux_refs[0].swnode) {
+               fwnode_handle_put(software_node_fwnode(fusb302_mux_refs[0].swnode));
+               fusb302_mux_refs[0].swnode = NULL;
        }
 
        if (data->dp) {
@@ -222,7 +222,7 @@ static int cht_int33fe_add_nodes(struct cht_int33fe_data *data)
         * rely on software_node_register_node_group() to use the original
         * instance of properties instead of copying them.
         */
-       fusb302_mux_refs[0].node = mux_ref_node;
+       fusb302_mux_refs[0].swnode = mux_ref_node;
 
        ret = software_node_register_node_group(node_group);
        if (ret)
 
---------->8----------
Quoted 4 lines

I assume it was expected that drivers don't modify contents of struct software_node_ref_args directly, but rather assign them with SOFTWARE_NODE_REFERENCE(), so maybe this is not the correct fix?

Yeah, driver definitely should not be doing that.

The comment in this file:

/*
* We are not using inline property here because those are constant,
* and we need to adjust this one at runtime to point to real
* software node.
*/

Indicates something's wrong. It looks like it's waiting for a software node called "intel-xhci-usb-sw" to appear in the system (as in: get registered as a firmware node). This is clearly an abuse of the whole concept. I'll try to figure out a way to improve it.

Bart