[Bug 2076262] Re: Failed to build against linux-6.11

You-Sheng Yang 2076262 at bugs.launchpad.net
Fri Aug 30 04:23:21 UTC 2024


** Description changed:

  [SRU Justification]
  
  [Impact]
  
  Upstream commit d69d804845985 ("driver core: have match() callback in
  struct bus_type take a const *") added const attribute the the second
  parameter of the match callback, and this fails the build against
  linux-6.11.
  
  [Fix]
  
  Ubuntu sauced change to accommodate to the API change. Also proposed to
  the upstream as https://github.com/intel/ipu6-drivers/pull/261.
  
  [Test Case]
  
- Install the built dkms binary package and linux-headers-
- oem-24.04b/noble. The dkms build should be triggered and complete
- successfully.
+ 1. install kernel headers packages. This should include kernel headers for generic-6.8, oem-6.8, linux-hwe-6.8/jammy according to kernel-versions dkms map. linux-oem-6.5 is outdated therefore is skipped here.
+ 2. install intel-usbio-dkms from -proposed and trigger dkms builds on all mentioned kernel versions
+ 3. reboot into the kernels to check if intel-ipu6 module was loaded automatically as before.
  
  [Where problems could occur]
  
  For Oracular, there is a new upstream release mostly for a next Intel
  platform, but there are also code refinements as well. No specious side
  effect found.
  
  For Noble, there is only preprocessor macros to satisfy the API
  compatibility.
  
  [Other Info]
  
  ipu6-drivers/oracular is used in linux/oracular and linux-
  oem-6.11/noble, and ipu6-drivers/noble is used in linux/noble, linux-
  oem-6.8/noble and linux-hwe-6.8/jammy. The Noble SRU is only to satisfy
  compiling ipu6-drivers/noble against linux-oem-6.11/noble, but that's
  not how linux-modules-ipu6-oem-24.04b is built.
  
  ========== original bug report ==========
  
  /var/lib/dkms/ipu6-drivers/0~git202406240945.aecec2aa-0ubuntu2/build/drivers/media/pci/intel/ipu6/../ipu-bus.c:145:18: error: initialization of 'int (*)(struct device
  *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)' [-Wincompatible-pointer-types]
    145 |         .match = ipu_bus_match,
        |                  ^~~~~~~~~~~~~

** Description changed:

  [SRU Justification]
  
  [Impact]
  
  Upstream commit d69d804845985 ("driver core: have match() callback in
  struct bus_type take a const *") added const attribute the the second
  parameter of the match callback, and this fails the build against
  linux-6.11.
  
  [Fix]
  
  Ubuntu sauced change to accommodate to the API change. Also proposed to
  the upstream as https://github.com/intel/ipu6-drivers/pull/261.
  
  [Test Case]
  
  1. install kernel headers packages. This should include kernel headers for generic-6.8, oem-6.8, linux-hwe-6.8/jammy according to kernel-versions dkms map. linux-oem-6.5 is outdated therefore is skipped here.
- 2. install intel-usbio-dkms from -proposed and trigger dkms builds on all mentioned kernel versions
+ 2. install intel-ipu6-dkms from -proposed and trigger dkms builds on all mentioned kernel versions
  3. reboot into the kernels to check if intel-ipu6 module was loaded automatically as before.
  
  [Where problems could occur]
  
  For Oracular, there is a new upstream release mostly for a next Intel
  platform, but there are also code refinements as well. No specious side
  effect found.
  
  For Noble, there is only preprocessor macros to satisfy the API
  compatibility.
  
  [Other Info]
  
  ipu6-drivers/oracular is used in linux/oracular and linux-
  oem-6.11/noble, and ipu6-drivers/noble is used in linux/noble, linux-
  oem-6.8/noble and linux-hwe-6.8/jammy. The Noble SRU is only to satisfy
  compiling ipu6-drivers/noble against linux-oem-6.11/noble, but that's
  not how linux-modules-ipu6-oem-24.04b is built.
  
  ========== original bug report ==========
  
  /var/lib/dkms/ipu6-drivers/0~git202406240945.aecec2aa-0ubuntu2/build/drivers/media/pci/intel/ipu6/../ipu-bus.c:145:18: error: initialization of 'int (*)(struct device
  *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)' [-Wincompatible-pointer-types]
    145 |         .match = ipu_bus_match,
        |                  ^~~~~~~~~~~~~

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2076262

Title:
  Failed to build against linux-6.11

Status in ipu6-drivers package in Ubuntu:
  Fix Released
Status in ipu6-drivers source package in Noble:
  In Progress
Status in ipu6-drivers source package in Oracular:
  Fix Released

Bug description:
  [SRU Justification]

  [Impact]

  Upstream commit d69d804845985 ("driver core: have match() callback in
  struct bus_type take a const *") added const attribute the the second
  parameter of the match callback, and this fails the build against
  linux-6.11.

  [Fix]

  Ubuntu sauced change to accommodate to the API change. Also proposed
  to the upstream as https://github.com/intel/ipu6-drivers/pull/261.

  [Test Case]

  1. install kernel headers packages. This should include kernel headers for generic-6.8, oem-6.8, linux-hwe-6.8/jammy according to kernel-versions dkms map. linux-oem-6.5 is outdated therefore is skipped here.
  2. install intel-ipu6-dkms from -proposed and trigger dkms builds on all mentioned kernel versions
  3. reboot into the kernels to check if intel-ipu6 module was loaded automatically as before.

  [Where problems could occur]

  For Oracular, there is a new upstream release mostly for a next Intel
  platform, but there are also code refinements as well. No specious
  side effect found.

  For Noble, there is only preprocessor macros to satisfy the API
  compatibility.

  [Other Info]

  ipu6-drivers/oracular is used in linux/oracular and linux-
  oem-6.11/noble, and ipu6-drivers/noble is used in linux/noble, linux-
  oem-6.8/noble and linux-hwe-6.8/jammy. The Noble SRU is only to
  satisfy compiling ipu6-drivers/noble against linux-oem-6.11/noble, but
  that's not how linux-modules-ipu6-oem-24.04b is built.

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

  /var/lib/dkms/ipu6-drivers/0~git202406240945.aecec2aa-0ubuntu2/build/drivers/media/pci/intel/ipu6/../ipu-bus.c:145:18: error: initialization of 'int (*)(struct device
  *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)' [-Wincompatible-pointer-types]
    145 |         .match = ipu_bus_match,
        |                  ^~~~~~~~~~~~~

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ipu6-drivers/+bug/2076262/+subscriptions




More information about the Ubuntu-sponsors mailing list