arch/x86/kvm/hyperv.c failing to compile: frame size of 1048 bytes is larger than 1024 bytes

From: Logan Devine
Date: Fri Mar 26 2021 - 22:19:51 EST


Compiling the kernel for the second time, and now kvm/hyperv.c is failing to build:


  AR      kernel/built-in.a
  CC [M]  arch/x86/kvm/ioapic.o
  CC [M]  arch/x86/kvm/irq_comm.o
  CC [M]  arch/x86/kvm/cpuid.o
  CC [M]  arch/x86/kvm/pmu.o
  CC [M]  arch/x86/kvm/mtrr.o
  CC [M]  arch/x86/kvm/hyperv.o
  CC [M]  arch/x86/kvm/debugfs.o
  CC [M]  arch/x86/kvm/mmu/mmu.o
  CC [M]  arch/x86/kvm/mmu/page_track.o
arch/x86/kvm/hyperv.c: In function ‘kvm_hv_send_ipi.isra’:
arch/x86/kvm/hyperv.c:1799:1: error: the frame size of 1048 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
 1799 | }
      | ^
  CC [M]  arch/x86/kvm/mmu/spte.o
  CC [M]  arch/x86/kvm/mmu/tdp_iter.o
  CC [M]  arch/x86/kvm/mmu/tdp_mmu.o
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:271: arch/x86/kvm/hyperv.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.build:514: arch/x86/kvm] Error 2
make: *** [Makefile:1851: arch/x86] Error 2
  CC [M]  kernel/kheaders.o


(Sorry if I did this wrong, it's my first time on the list.)


I'm on gregkh/staging branch staging-testing.