Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package bbswitch for openSUSE:Factory checked in at 2022-06-15 00:32:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bbswitch (Old) and /work/SRC/openSUSE:Factory/.bbswitch.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "bbswitch" Wed Jun 15 00:32:00 2022 rev:11 rq:982451 version:0.8 Changes: -------- --- /work/SRC/openSUSE:Factory/bbswitch/bbswitch.changes 2021-04-15 16:58:15.106753522 +0200 +++ /work/SRC/openSUSE:Factory/.bbswitch.new.1548/bbswitch.changes 2022-06-15 00:32:01.102501706 +0200 @@ -1,0 +2,7 @@ +Fri Jun 3 18:06:48 UTC 2022 - Simone Pilia <[email protected]> + +- Fix build in kernel >= 5.18.1 due to deprecated acpi_bus_get_device + inclusion: + fix-deprecated-acpi_bus_get_device-in-5.18.patch + +------------------------------------------------------------------- New: ---- fix-deprecated-acpi_bus_get_device-in-5.18.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bbswitch.spec ++++++ --- /var/tmp/diff_new_pack.gYPPpY/_old 2022-06-15 00:32:02.066503123 +0200 +++ /var/tmp/diff_new_pack.gYPPpY/_new 2022-06-15 00:32:02.070503128 +0200 @@ -1,7 +1,7 @@ # # spec file for package bbswitch # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,7 @@ Source0: https://github.com/Bumblebee-Project/bbswitch/archive/v%{version}.tar.gz Patch0: bbswitch-fix-header-inclusion.patch Patch1: 0001-Update-proc_create_call-for-5.6-kernel.patch +Patch2: fix-deprecated-acpi_bus_get_device-in-5.18.patch BuildRequires: %{kernel_module_package_buildreqs} BuildRequires: libelf-devel BuildRequires: pkgconfig(libsystemd) @@ -49,6 +50,9 @@ %if %{?pkg_vcmp:%{pkg_vcmp kernel-devel >= 5.6.0}}%{!?pkg_vcmp:0} %patch1 -p1 %endif +%if %{?pkg_vcmp:%{pkg_vcmp kernel-devel >= 5.18.1}}%{!?pkg_vcmp:0} +%patch2 -p1 +%endif set -- * mkdir source mv "$@" source/ ++++++ fix-deprecated-acpi_bus_get_device-in-5.18.patch ++++++ From: Simone Pilia <[email protected]> Subject: Replace deprecated acpi_bus_get_device with acpi_fetch_acpi_dev to build in 5.18 --- a/bbswitch.c +++ b/bbswitch.c @@ -262,10 +262,9 @@ pci_disable_device(dis_dev); do { struct acpi_device *ad = NULL; - int r; - r = acpi_bus_get_device(dis_handle, &ad); - if (r || !ad) { + ad = acpi_fetch_acpi_dev(dis_handle); + if (!ad) { pr_warn("Cannot get ACPI device for PCI device\n"); break; }
