Failed to build against linux-unstable 6.6.0-8-generic: error: 'struct genl_info' has no member named 'userhdr'

Bug #2042059 reported by You-Sheng Yang
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
backport-iwlwifi-dkms (Ubuntu)
Status tracked in Noble
Mantic
In Progress
High
You-Sheng Yang
Noble
Fix Released
High
You-Sheng Yang

Bug Description

[SRU Justification]

[Impact]

backport-iwlwifi-dkms fails to compile against kernel > 6.6 due to API changes.

[Fix]

Upstream fix commit 8fd541f76cdc ("backport: genetlink: adjust to info->userhdr removal").

[Test Case]
```
$ sudo add-apt-repository ppa:canonical-kernel-team/unstable
$ sudo apt-get install linux-headers-generic-wip

$ sudo add-apt-repository ppa:vicamo/ppa-2042059
$ sudo apt-get install backport-iwlwifi-dkms
```

[Where problems could occur]

We're pulling new upstream version with around 200+ commits for backport-iwlwifi-dkms/noble, but only backport the required fix commit for mantic. Likely to expect issue in Noble only.

[Other Info]

Mantic is nominated because we're still using mantic environment for preparing linux-unstable.

========== original bug report ==========

In file included from /var/lib/dkms/backport-iwlwifi/11289/build/drivers/net/wireless/intel/iwlwifi/iwl-tm-gnl.c:8:
/var/lib/dkms/backport-iwlwifi/11289/build/backport-include/net/genetlink.h: In function '__bp_genl_info_userhdr_set':
/var/lib/dkms/backport-iwlwifi/11289/build/backport-include/net/genetlink.h:9:13: error: 'struct genl_info' has no member named 'userhdr'
    9 | info->userhdr = userhdr;
      | ^~
/var/lib/dkms/backport-iwlwifi/11289/build/backport-include/net/genetlink.h: In function '__bp_genl_info_userhdr':
/var/lib/dkms/backport-iwlwifi/11289/build/backport-include/net/genetlink.h:14:20: error: 'struct genl_info' has no member named 'userhdr'
   14 | return info->userhdr;
      | ^~
/var/lib/dkms/backport-iwlwifi/11289/build/backport-include/net/genetlink.h: At top level:
/var/lib/dkms/backport-iwlwifi/11289/build/backport-include/net/genetlink.h:48:21: error: conflicting types for 'genl_info_userhdr'; have 'void *(struct genl_info *)'
   48 | static inline void *genl_info_userhdr(struct genl_info *info)
      | ^~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/backport-iwlwifi/11289/build/backport-include/net/genetlink.h:3:
./include/net/genetlink.h:126:21: note: previous definition of 'genl_info_userhdr' with type 'void *(const struct genl_info *)'
  126 | static inline void *genl_info_userhdr(const struct genl_info *info)
      | ^~~~~~~~~~~~~~~~~
make[8]: *** [scripts/Makefile.build:251: /var/lib/dkms/backport-iwlwifi/11289/build/drivers/net/wireless/intel/iwlwifi/iwl-tm-gnl.o] Error 1
make[8]: *** Waiting for unfinished jobs....

Revision history for this message
You-Sheng Yang (vicamo) wrote :
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Probably has been fixed by upstream commit 8fd541f76cdc ("backport: genetlink: adjust to info->userhdr removal") (>= 11461)

Revision history for this message
You-Sheng Yang (vicamo) wrote :
Changed in backport-iwlwifi-dkms (Ubuntu Noble):
assignee: nobody → You-Sheng Yang (vicamo)
importance: Undecided → High
status: New → In Progress
Revision history for this message
You-Sheng Yang (vicamo) wrote :

debdiff based on new upstream version 11510 for Noble 24.04.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Need sponsor for above debdiff.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Add debdiff for mantic as well. Need sponsoring, too.

Changed in backport-iwlwifi-dkms (Ubuntu Mantic):
status: New → In Progress
importance: Undecided → High
assignee: nobody → You-Sheng Yang (vicamo)
You-Sheng Yang (vicamo)
description: updated
Revision history for this message
Alberto Milone (albertomilone) wrote :

I have uploaded the one for mantic as backport-iwlwifi-dkms_11289-0ubuntu1.23.10.1.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package backport-iwlwifi-dkms - 11510-0ubuntu1

---------------
backport-iwlwifi-dkms (11510-0ubuntu1) noble; urgency=low

  [You-Sheng Yang]
  * New release
    - upstream version 11510 commit 41e354fb5f32f. (LP: #2042059)
    - debian: refresh patches
  * dkms: bump OBSOLETE_BY version to v6.7.0

 -- You-Sheng Yang <email address hidden> Tue, 31 Oct 2023 14:39:23 +0800

Changed in backport-iwlwifi-dkms (Ubuntu Noble):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.