Fix to support 5.19 kernels in attach.

** Patch added: "bbswitch-support-kernel-5.19.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1981716/+attachment/5603157/+files/bbswitch-support-kernel-5.19.debdiff

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to bbswitch in Ubuntu.
https://bugs.launchpad.net/bugs/1981716

Title:
  bbswitch fails to build on 5.19 kernel (kinetic)

Status in bbswitch package in Ubuntu:
  New

Bug description:
  [Impact]

  bbswitch fails to build with the latest 5.19 kernel, the error is the
  following:

  /var/lib/dkms/bbswitch/0.8/build/bbswitch.c:273:13: error: implicit 
declaration of function ‘acpi_bus_get_device’; did you mean 
‘acpi_is_pnp_device’? [-Werror=implicit-function-declaration]
    273 |         r = acpi_bus_get_device(dis_handle, &ad);
        |             ^~~~~~~~~~~~~~~~~~~
        |             acpi_is_pnp_device
  cc1: some warnings being treated as errors

  
  [Test case]

  $ sudo apt install bbswitch-dkms

  [Fix]

  Replace acpi_bus_get_device() with the equivalent interface -
  acpi_fetch_acpi_dev() - in 5.19 kernels.

  [Regression potential]

  We may see bbswitch regressions in kernels >= 5.19 (fix isn't
  affecting older kernels).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1981716/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to