From: Borislav Petkov (AMD) Date: Thu, 4 Dec 2025 12:48:07 +0000 (+0100) Subject: x86/sev: Add internal header guards X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f01c6489ad6ceb8d06eae0c5123fc6cf39276ff1;p=thirdparty%2Fkernel%2Flinux.git x86/sev: Add internal header guards All headers need guards ifdeffery. Reviewed-by: Tom Lendacky Signed-off-by: Borislav Petkov (AMD) Link: https://patch.msgid.link/20251204124809.31783-3-bp@kernel.org --- diff --git a/arch/x86/coco/sev/internal.h b/arch/x86/coco/sev/internal.h index c58c47c68ab6f..af991f1da0957 100644 --- a/arch/x86/coco/sev/internal.h +++ b/arch/x86/coco/sev/internal.h @@ -1,4 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __X86_COCO_SEV_INTERNAL_H__ +#define __X86_COCO_SEV_INTERNAL_H__ #define DR7_RESET_VALUE 0x400 @@ -85,3 +87,4 @@ enum es_result sev_es_ghcb_handle_msr(struct ghcb *ghcb, struct es_em_ctxt *ctxt u64 get_hv_features(void); const struct snp_cpuid_table *snp_cpuid_get_table(void); +#endif /* __X86_COCO_SEV_INTERNAL_H__ */