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

Mike Rapoport <[email protected]>
Newsgroups org.infradead.lists.kexec,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.