Skip to contentSkip to conversation

x86/cc: fix enum spelling to fix kernel-doc warnings

PATCH Applied Randy Dunlap 2 participants 2 messages Nov 25, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/cc: fix enum spelling to fix kernel-doc warnings

Make the enum name in kernel-doc match the code to prevent kernel-doc warnings:

Warning: include/linux/cc_platform.h:106 Enum value
'CC_ATTR_GUEST_SEV_SNP' not described in enum 'cc_attr'
Warning: include/linux/cc_platform.h:106 Excess enum value
'%CC_ATTR_SEV_SNP' description in 'cc_attr'

Fixes f742b90e61bb ("x86/mm: Extend cc_attr to include AMD SEV-SNP")

---
Cc: Brijesh Singh <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: [email protected]

---
 include/linux/cc_platform.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/cc_platform.h +1 -1
@@ -74,7 +74,7 @@ enum cc_attr {
 	CC_ATTR_GUEST_UNROLL_STRING_IO,
 
 	/**
-	 * @CC_ATTR_SEV_SNP: Guest SNP is active.
+	 * @CC_ATTR_GUEST_SEV_SNP: Guest SNP is active.
 	 *
 	 * The platform/OS is running as a guest/virtual machine and actively
 	 * using AMD SEV-SNP features.
merge bot Applied
#1 lore raw

[tip: x86/sev] x86/cc: Fix enum spelling to fix kernel-doc warnings

The following commit has been merged into the x86/sev branch of tip:

The following commit has been merged into the x86/sev branch of tip:

Commit-ID:     73029e73ccd07b64905f441d4f474a9bb91e7027
Gitweb:        https://git.kernel.org/tip/73029e73ccd07b64905f441d4f474a9bb91e7027
Author:        Randy Dunlap <[email protected]>
AuthorDate:    Mon, 24 Nov 2025 18:27:30 -08:00
Committer:     Borislav Petkov (AMD) <[email protected]>
CommitterDate: Tue, 25 Nov 2025 09:17:13 +01:00

x86/cc: Fix enum spelling to fix kernel-doc warnings

Make the enum name in kernel-doc match the code to prevent kernel-doc warnings:

Warning: include/linux/cc_platform.h:106 Enum value
'CC_ATTR_GUEST_SEV_SNP' not described in enum 'cc_attr'
Warning: include/linux/cc_platform.h:106 Excess enum value
'%CC_ATTR_SEV_SNP' description in 'cc_attr'

Fixes f742b90e61bb ("x86/mm: Extend cc_attr to include AMD SEV-SNP")
---
 include/linux/cc_platform.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/cc_platform.h +1 -1
index 7fcec02..559353a 100644
@@ -74,7 +74,7 @@ enum cc_attr {
 	CC_ATTR_GUEST_UNROLL_STRING_IO,
 
 	/**
-	 * @CC_ATTR_SEV_SNP: Guest SNP is active.
+	 * @CC_ATTR_GUEST_SEV_SNP: Guest SNP is active.
 	 *
 	 * The platform/OS is running as a guest/virtual machine and actively
 	 * using AMD SEV-SNP features.