This bug was fixed in the package backport-iwlwifi-dkms - 9904-0ubuntu3
--------------- backport-iwlwifi-dkms (9904-0ubuntu3) kinetic; urgency=medium
* Preserve CC setting in the make wrapper script, to ensure module can be built correctly with the kernel's custom compiler. Fixes FTBFS in hwe-5.19 build. LP: #1991664
-- Dimitri John Ledkov <email address hidden> Thu, 06 Oct 2022 12:52:22 +0100
This bug was fixed in the package backport- iwlwifi- dkms - 9904-0ubuntu3
--------------- iwlwifi- dkms (9904-0ubuntu3) kinetic; urgency=medium
backport-
* Preserve CC setting in the make wrapper script, to ensure module can
be built correctly with the kernel's custom compiler. Fixes FTBFS in
hwe-5.19 build. LP: #1991664
-- Dimitri John Ledkov <email address hidden> Thu, 06 Oct 2022 12:52:22 +0100