Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1371935imw; Sat, 9 Jul 2022 03:09:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ula6QHdXA/wuCGnLhLaOo7J5as7v/ApCmn9gk3LnB9snuF8Ic3BhrnBIWRkYmOC/babfkJ X-Received: by 2002:a63:7d45:0:b0:40b:e6ad:8e80 with SMTP id m5-20020a637d45000000b0040be6ad8e80mr7357886pgn.59.1657361357807; Sat, 09 Jul 2022 03:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657361357; cv=none; d=google.com; s=arc-20160816; b=K6+deQNZcfxqd9CJZt0wUCwfIj9dN1ASHMDWx4BLZxJNEdm73z2bdpjRzl0Alhy2MI m+8gysh/s0kPNDU0inFqU+tlEvytdmnnK+utgfgi2GNSo/QINCnJg99SjAj9G7BpTMYj mHZog/IuOer019GjMKH/OrwW9/b01k0OT5IUdkQTKqxDTS1amq3n6NFvK9ARdRoKYehR VdMxSjBP+28uN3N95KynQH0rdFLLA95R/z0dJyE+0+vMRUZQwTFtl+LcLz/FYaaE34vp GnogktBJWk1KxcH8s3dIsv1PtcJtAL4UKkEkuduSraaM7Ki52K8ujzf14feAAYXew/8p fIBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GEqVictS7q5aXn/HRep8f2Pky9KyT/ugj+2cyDXnR+w=; b=IcN2xjOyg13uK4pbutlh7GINAUGeB5h4YUnMESUbbCuS+G+5LHdL/Ckx5ZIAI2QRUA N11RQrC2iJxp2ezekT2O4VayXuCvvwoEFohnV4jc4DZQWqksyQCAWkJ6Hxe/E+lIEdv6 yvINByyypbiWKnef9XQuEEZ/50nR1VUieqnGX7ObPGnS2AgLgKNrFbmzyOaG7uEFe7xD UhZxBPUbYg+3QyB/vRPeO5DbfUlnqMmy4B9s53WQYqMJI98XTJScEzOCaxOvnhziQliG VFAvovJPGhN/wok7Y9DIOaoHe0DGgFUmjdiZzmOBmiBl86P40ekgGeqd76I6U+OYD4Ey YDLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=txfkeUHy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n26-20020a635c5a000000b0040de29fae99si1552884pgm.540.2022.07.09.03.09.05; Sat, 09 Jul 2022 03:09:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=txfkeUHy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229809AbiGIKHx (ORCPT + 99 others); Sat, 9 Jul 2022 06:07:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiGIKHk (ORCPT ); Sat, 9 Jul 2022 06:07:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77CF04AD50; Sat, 9 Jul 2022 03:07:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0427A60DFF; Sat, 9 Jul 2022 10:07:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 578BDC341C7; Sat, 9 Jul 2022 10:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657361258; bh=A54g7vRsszk0/l1GimW6ZYYbGXwakZHP+vpX+YjS5YU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=txfkeUHyqV+qQ6KQYrH+fXWNG3C3QN3k0OAtb3RKcZVk6lMKvW0ABrV1yszCa/UIJ FRRTUilsYdnjPl2B8X7TUYojG/LM/xdPyAh96e11W78xKuROGnEiXhFxSMgbY9QFbK gbq+Jr9Dce5Df+H0SBnizRlyR1KOOUopauc+1lLeGOrESWVh8AkZ1a9MKZGq3KodQN zb2tGYZERy3TVuVZUIzWzDjAgG0GaadwiGQ+tuvPngarizdFrN5iwv6xdBmFej0F7q viidYSXkPY7JgyY9Wl966tkwcnMc4PVR8b9KaYUmgluyPfvba/PZAVR08bc51+Ni8p AMwRQbzEYM67A== Received: from mchehab by mail.kernel.org with local (Exim 4.95) (envelope-from ) id 1oA7N9-004EGi-GN; Sat, 09 Jul 2022 11:07:35 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "H. Peter Anvin" , "Jonathan Corbet" , "Mauro Carvalho Chehab" , Borislav Petkov , Dave Hansen , Ingo Molnar , Jarkko Sakkinen , Jethro Beekman , Sean Christopherson , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-sgx@vger.kernel.org, x86@kernel.org Subject: [PATCH v3 06/21] x86/sgx: fix kernel-doc markups Date: Sat, 9 Jul 2022 11:07:19 +0100 Message-Id: <9f0f8f41c2544c34371ca003814aadd24b5698c3.1657360984.git.mchehab@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are a couple typos there, violating kernel-doc syntax. Also, on a function typedef, the register snapshots aren't documented. This should fix those warnings: arch/x86/include/uapi/asm/sgx.h:19: warning: Enum value 'SGX_PAGE_MEASURE' not described in enum 'sgx_page_flags' arch/x86/include/uapi/asm/sgx.h:97: warning: Function parameter or member 'rdi' not described in 'sgx_enclave_user_handler_t' arch/x86/include/uapi/asm/sgx.h:97: warning: Function parameter or member 'rsi' not described in 'sgx_enclave_user_handler_t' arch/x86/include/uapi/asm/sgx.h:97: warning: Function parameter or member 'rdx' not described in 'sgx_enclave_user_handler_t' arch/x86/include/uapi/asm/sgx.h:97: warning: Function parameter or member 'rsp' not described in 'sgx_enclave_user_handler_t' arch/x86/include/uapi/asm/sgx.h:97: warning: Function parameter or member 'r8' not described in 'sgx_enclave_user_handler_t' arch/x86/include/uapi/asm/sgx.h:97: warning: Function parameter or member 'r9' not described in 'sgx_enclave_user_handler_t' arch/x86/include/uapi/asm/sgx.h:124: warning: Function parameter or member 'reserved' not described in 'sgx_enclave_run' Fixes: 3fa97bf00126 ("Documentation/x86: Document SGX kernel architecture") Reviewed-by: Jarkko Sakkinen Acked-by: Dave Hansen Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v3 00/21] at: https://lore.kernel.org/all/cover.1657360984.git.mchehab@kernel.org/ arch/x86/include/uapi/asm/sgx.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/uapi/asm/sgx.h b/arch/x86/include/uapi/asm/sgx.h index f4b81587e90b..6306bcaaf67a 100644 --- a/arch/x86/include/uapi/asm/sgx.h +++ b/arch/x86/include/uapi/asm/sgx.h @@ -10,7 +10,7 @@ /** * enum sgx_page_flags - page control flags - * %SGX_PAGE_MEASURE: Measure the page contents with a sequence of + * @SGX_PAGE_MEASURE: Measure the page contents with a sequence of * ENCLS[EEXTEND] operations. */ enum sgx_page_flags { @@ -81,6 +81,12 @@ struct sgx_enclave_run; /** * typedef sgx_enclave_user_handler_t - Exit handler function accepted by * __vdso_sgx_enter_enclave() + * @rdi: snapshot of RDI register at enclave exit + * @rsi: snapshot of RSI register at enclave exit + * @rdx: snapshot of RDX register at enclave exit + * @rsp: snapshot of RSP register at enclave exit + * @r8: snapshot of R8 register at enclave exit + * @r9: snapshot of R9 register at enclave exit * @run: The run instance given by the caller * * The register parameters contain the snapshot of their values at enclave @@ -104,7 +110,7 @@ typedef int (*sgx_enclave_user_handler_t)(long rdi, long rsi, long rdx, * @exception_addr: The address that triggered the exception * @user_handler: User provided callback run on exception * @user_data: Data passed to the user handler - * @reserved Reserved for future extensions + * @reserved: Reserved for future extensions * * If @user_handler is provided, the handler will be invoked on all return paths * of the normal flow. The user handler may transfer control, e.g. via a -- 2.36.1