Kernel compilation error: Missing AMD GPU driver file

I was updating my distribution and when a new kernel was being compiled (with the command make j8) everything went fine until I got the following error message:

ld: drivers/gpu/drm/amd/amdgpu/gmc_v6_0.o can't find: There is no file or directory for this.
make[6]: *** [scripts/Makefile.build:443: drivers/gpu/drm/amd/amdgpu/amdgpu.o] Error 1
make[5]: *** [scripts/Makefile.build:485: drivers/gpu/drm/amd/amdgpu] Error 2
make[4]: *** [scripts/Makefile.build:485: drivers/gpu/drm] Error 2
make[3]: *** [scripts/Makefile.build:485: drivers/gpu] Error 2
make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[1]: *** [/home/melih/linux-6.10.1/Makefile:1934: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2