Hi!
Usually for testing upstream patches I could easily include patch to spec file.
For example:
%if !%{nopatches}
Patch1: patch-%{patchversion}-redhat.patch
+ Patch2: nct6775.diff
%endif
%if !%{nopatches}
ApplyOptionalPatch patch-%{patchversion}-redhat.patch
+ ApplyOptionalPatch nct6775.diff
%endif
But today I ran into an error for the first time:
+ echo 'Depmod failure'
+ cat depmod.out
Depmod failure
depmod: WARNING:
/builddir/build/BUILDROOT/kernel-5.15.6-200.fc35.x86_64/./lib/modules/5.15.6-200.fc35.x86_64+debug/kernel/drivers/hwmon/nct6775.ko
needs unknown symbol wmi_evaluate_method
+ exit 1
I don’t know how to fix it.
Full build log is here:
https://pastebin.com/T3bLWFEd
Here is topic with patch:
https://bugzilla.kernel.org/show_bug.cgi?id=204807