Kernel 6.1.165 compilation issue

From: Łukasz Kalamłacki

Date: Wed Mar 04 2026 - 11:40:32 EST


Hi Kernel developers,


I was trying to compile newest Linux kernel 6.1.165 on Debian Bookworm
using default gcc and I get this:

arch/x86/kernel/setup.c: In function ‘ima_get_kexec_buffer’:
arch/x86/kernel/setup.c:385:15: error: implicit declaration of function
‘ima_validate_range’ [-Werror=implicit-function-declaration]
  385 |         ret = ima_validate_range(ima_kexec_buffer_phys,
ima_kexec_buffer_size);
      |               ^~~~~~~~~~~~~~~~~~
  CC      arch/x86/kernel/e820.o
  CC      arch/x86/kernel/pci-dma.o
  CC      arch/x86/kernel/quirks.o
  CC      arch/x86/kernel/topology.o
  CC      arch/x86/kernel/kdebugfs.o
cc1: some warnings being treated as errors
  CC      arch/x86/kernel/alternative.o
make[6]: *** [scripts/Makefile.build:250: arch/x86/kernel/setup.o] Błąd 1
make[6]: *** Oczekiwanie na niezakończone zadania....
make[5]: *** [scripts/Makefile.build:503: arch/x86/kernel] Błąd 2
make[4]: *** [scripts/Makefile.build:503: arch/x86] Błąd 2
make[4]: *** Oczekiwanie na niezakończone zadania....
make[3]: *** [Makefile:2025: .] Błąd 2
make[2]: *** [debian/rules:7: build-arch] Błąd 2
dpkg-buildpackage: błąd: debian/rules binary subprocess returned exit
status 2
make[1]: *** [scripts/Makefile.package:86: bindeb-pkg] Błąd 2
make: *** [Makefile:1671: bindeb-pkg] Błąd 2


So it is not compiling.


Best regards,

Łukasz Kalamłacki