@@ -14,7 +14,6 @@
.code64
.section .text, "ax"
-#ifdef SGX_KERNEL_DOC
/**
* __vdso_sgx_enter_enclave() - Enter an SGX enclave
* @leaf: ENCLU leaf, must be EENTER or ERESUME
@@ -53,6 +52,8 @@
* -EFAULT if ENCL or the enclave faults or non-positive value is returned
* from the callback.
*/
+#ifdef SGX_KERNEL_DOC
+/* C-style function prototype to coerce kernel-doc into parsing the comment. */
int __vdso_sgx_enter_enclave(int leaf, void *tcs,
struct sgx_enclave_exception *e,
sgx_enclave_exit_handler_t handler);
Move the fake SGX_KERNEL_DOC ifdef and add a comment to explicitly state that the C-style prototype exists to trigger kernel-doc parsing. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> --- arch/x86/entry/vdso/vsgx_enter_enclave.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)