Re: [PATCH 1/2] x86, KVM:SVM: Move sev specific parsing into arch/x86/virt/svm
From: Borislav Petkov
Date: Thu Aug 29 2024 - 10:24:21 EST
On Thu, Aug 29, 2024 at 03:24:38PM +0200, Borislav Petkov wrote:
> On Thu, Aug 01, 2024 at 03:56:37PM -0500, Pavan Kumar Paluri wrote:
> > +#include <linux/memblock.h>
>
> What's the idea of adding some random include here?
>
> Does this file use memblock?
>
> I don't think so.
>
> You need to resolve include visibility by including the headers where you need
> them:
And with this applied, your next patch needs includes too.
Please include only those headers into sev/cmdline.c which supply the
facilities you're using. IOW, include only those headers and only into those
files which need the respective facilities.
This needs to be done right because otherwise we have an include hell and some
poor moron gets to mop up after you in the future.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette