[PATCH] x86/setup: do not include kexec_handover.h from asm/setup.h

Mike Rapoport rppt at kernel.org
Thu Jul 2 23:19:11 PDT 2026


On Thu, Jul 02, 2026 at 05:11:28PM -0700, Borislav Petkov wrote:
> On Thu, Jul 02, 2026 at 10:31:11PM +0300, Mike Rapoport wrote:
> > The examples there are really x86 specific.
> > KHO needs decompressor to recognise 'struct kho_scratch' that's defined in
> > include/linux/kexec_handover.h
> 
> That struct is huuuge :-P
> 
> struct kho_scratch {
>         phys_addr_t addr;
>         phys_addr_t size;
> };
 
The size does not matter ;-P

> > I see there's a duplicated 'struct efi_unaccepted_memory' for decompressor
> > needs, should KHO do the same for 'struct kho_scratch'?
> 
> You could. But it would go out of sync perhaps.
> 
> You could also try a 
> 
> include/asm-generic/kho.h
> 
> and put only really generic, basic gunk there and include it everywhere.

asm-generic would be my preference too if that's fine to include in
decompressor.

-- 
Sincerely yours,
Mike.



More information about the kexec mailing list