Re: [PATCH] x86/kvm: Include linux/types.h in asm/kvm_para.h

From: Thomas Huth

Date: Tue May 05 2026 - 04:03:16 EST


On 05/05/2026 08.58, WEI-HONG, YE wrote:
arch/x86/include/asm/kvm_para.h uses u32 in function declarations, but
does not include linux/types.h itself. One user, mtrr.c, carried an
explicit workaround for this dependency.

Include linux/types.h from asm/kvm_para.h and remove the workaround from
mtrr.c.

Build-tested with x86_64 defconfig.

Signed-off-by: WEI-HONG, YE <1234567weewee457@xxxxxxxxx>
---
arch/x86/include/asm/kvm_para.h | 2 ++
arch/x86/kernel/cpu/mtrr/mtrr.c | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Thomas Huth <thuth@xxxxxxxxxx>