On Sun, May 02, 2021 at 08:43:30PM +0300, Andrei Borzenkov wrote:
Yes, I can reproduce it. It is due to this line of nvidia/nvidia.Kbuild:
always += $(NVIDIA_INTERFACE)
Changing it to
always-m += $(NVIDIA_INTERFACE)
allows build to complete. I am not exactly sure what this part does and why it fails for 5.12 and not for 5.11, but you should open bug report on openSUSE bugzilla and possibly report it nvidia.
OK, apparently older kernels accepted "always" and 5.12 no more. This is usual case of nVidia build being broken with kernel updates.
tw:/usr/src/kernel-modules/nvidia-460.73.01-default # make -f Makefile nv-linux.o SYSSRC=/lib/modules/5.11.15-1-default/source SYSOUT=/usr/src/linux-5.11.15-1-obj/x86_64/default make[1]: Entering directory '/usr/src/linux-5.11.15-1' make[2]: Entering directory '/usr/src/linux-5.11.15-1-obj/x86_64/default' scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead
Open bug report for openSUSE and possible for nVidia.
P.S. I was not sure whether to use always-y or always-m, apparently both work. Some kernel guru needs to chime in. Kernel documentation mentions both.
Actually I already fixed this on April 20, but I haven't triggered an update of the repositories yet. I wasn't aware that Kernel 5.12 has already been released. :-( Seems this happened with TW 20210428 on April 30. I'll take care of this tomorrow ... so no need to open a bugreport for this. Thanks, Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE Software Solutions Germany GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany ---------------------------------------------------------------- (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer ----------------------------------------------------------------