This reverts commit b448de2459b6d62a53892487ab18b7d823ff0529.
For some reasons we don't understand, b448de2459b6d6 ("mm/sparsemem: fix
race in accessing memory_section->usage") prevents us from compiling the
proprietary Nvidia Unix driver with versions 510.108.03 and 535.104.05
in the 5.15 series. No problems with the 6.5 series, although the patch
is included there as well
make -j $(nproc) CC=gcc SYSSRC=/scratch/local/linux clean && make -j $(nproc) CC=gcc SYSSRC=/scratch/local/linux V=2 modules
[...]
MODPOST /scratch/local/bee-buczek/nvidia/test_535-104-05/kernel/Module.symvers - due to target missing
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'rcu_read_unlock_strict'
make[2]: *** [scripts/Makefile.modpost:133: /scratch/local/bee-buczek/nvidia/test_535-104-05/kernel/Module.symvers] Error 1
make[2]: *** Deleting file '/scratch/local/bee-buczek/nvidia/test_535-104-05/kernel/Module.symvers'
make[1]: *** [Makefile:1826: modules] Error 2
make[1]: Leaving directory '/scratch/local/linux'
make: *** [Makefile:82: modules] Error 2