]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/sgx: Fix a typo in the kernel-doc comment for enum sgx_attribute
authorSean Christopherson <seanjc@google.com>
Wed, 12 Nov 2025 16:07:08 +0000 (08:07 -0800)
committerDave Hansen <dave.hansen@linux.intel.com>
Fri, 14 Nov 2025 23:30:32 +0000 (15:30 -0800)
Use the exact enum name when documenting "enum sgx_attribute" to fix a
warning if the file is fed into kernel-doc processing:

  WARNING: ./arch/x86/include/asm/sgx.h:139 expecting prototype for enum
           sgx_attributes. Prototype was for enum sgx_attribute instead

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Link: https://patch.msgid.link/20251112160708.1343355-6-seanjc%40google.com
arch/x86/include/asm/sgx.h

index 3c90cae04e1d5c4342b4765cd48d9208a68f7db5..04958459a7ca79d66f61ae4931001575e6e28bb6 100644 (file)
@@ -112,7 +112,7 @@ enum sgx_miscselect {
 #define SGX_SSA_MISC_EXINFO_SIZE       16
 
 /**
- * enum sgx_attributes - the attributes field in &struct sgx_secs
+ * enum sgx_attribute - the attributes field in &struct sgx_secs
  * @SGX_ATTR_INIT:             Enclave can be entered (is initialized).
  * @SGX_ATTR_DEBUG:            Allow ENCLS(EDBGRD) and ENCLS(EDBGWR).
  * @SGX_ATTR_MODE64BIT:                Tell that this a 64-bit enclave.