According to a report by aguador on the dev ML, dkms-bbswitch fails building with kernel 5.18:
I added a patch provided by Juan Magallón to fix it.
Updated dkms-bbswitch to fix support for kernel 5.18+
This update adds a patch to fix support for kernel 5.18 and later in
SRPM in core/updates_testing:
RPM in core/updates_testing:
Patched version works perfectly in Cauldron...
No optimus here, and all the bumblebees are outside, so I can't test this for function in MGA8. But, I can say that it built successfully with kernel-desktop 5.18.15.
So, following guidance from earlier updates, I'm giving this an OK and validating. Advisory in Comment 0.
An update for this issue has been pushed to the Mageia Updates repository.