Re: [PATCH 1/3] x86/sev: Move the internal header
From: Borislav Petkov
Date: Thu Dec 04 2025 - 09:57:35 EST
On Thu, Dec 04, 2025 at 08:18:42AM -0600, Tom Lendacky wrote:
> > +#include "../coco/sev/internal.h"
>
> Shouldn't this be "../../coco/sev/internal.h" ?
>
> What is strange is that it works with either.
Pure luck :-\
gcc cmdline is:
gcc -Wp,-MMD,arch/x86/boot/startup/.sev-startup.o.d -nostdinc
-I./arch/x86/include...
so the include path becomes:
# 1 "./arch/x86/include/../coco/sev/internal.h" 1
which is
$ readlink -f arch/x86/include/../coco/sev/internal.h
/mnt/kernel/kernel/linux/arch/x86/coco/sev/internal.h
And /mnt/kernel is my kernel-sources-containing SSD :-)
In any case, good catch!
I'll do the "../../" so that it is perfectly clear and future
potential include directives changes do not break this.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette