From patchwork Fri May 10 00:37:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Foryun Ma X-Patchwork-Id: 13660763 Received: from SG2PR03CU006.outbound.protection.outlook.com (mail-southeastasiaazon11020002.outbound.protection.outlook.com [52.101.133.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 389494A33; Fri, 10 May 2024 00:37:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.133.2 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715301477; cv=fail; b=lmds/ZUcONhZQzpeMvkRtFeHAkymegKKGAfGibdHGUjdSyA5umICBoiIkQ0zEBPfGVWR2k1u79jx4bwUipzZvB3HVMnCYmrDLKWXpa52dqN0msxIkrzyPbXI0oQsQkOgc1A2d1zVcTNvs2iclN/NWj7X5nyptF8aHv6phJENOKE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715301477; c=relaxed/simple; bh=5vn1YGaQCnaKUz9iQLpCKwUxJi7HkkEnfYNsGr6hbpg=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=fL0hvMSIze4Q5qJgKfiy2ae6mvG5u1OELX/JYiFvLMlupLs7dczgDbukYYq0uEddLd3eLLqh+BXdVAnma6gSjLH0ugid79ZW5HHdHtuQvPUrSZ2SmTa7gSJfuvUni32lVTbZ4DPW3En2QDiH41C1sK4Xpn4r/AlCqraGxjS4q18= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jaguarmicro.com; spf=pass smtp.mailfrom=jaguarmicro.com; dkim=pass (2048-bit key) header.d=jaguarmicro.com header.i=@jaguarmicro.com header.b=WzsE+sp5; arc=fail smtp.client-ip=52.101.133.2 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jaguarmicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jaguarmicro.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jaguarmicro.com header.i=@jaguarmicro.com header.b="WzsE+sp5" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ewthdat6nnuBFVlKBMtNIxpLz/N3mpUmx56yoYmbPMjqvUC62fQLAU5mMqxbBUNZagbW0MDnjttEnEd2I8VIS4sgeBgYGzaT9llwHSNKr8Mf1pHae8W66ZVKs2p7H2Vv7bohjpB+XvZpWwwohp73hw3x6pSxm7zLfpba8oR77KyXZiLlKjehcC0HHEtIkvPPqbBLP2quip8e4j17ADkoOhPdoAV6vF7lQbYn1yzUwLsrTjFIm6wnpNze9vd6jkMtBtNL7eK9x1tey1ABdvssBwl+q5JQWfDjx7JauWwzNV1kTtPeFpOp6pWJrulzXLQeH1Z1eVYCu8IKvxihmvKwzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AC1JAacRssBq3LzzaU8NpbMnKNxIhvj9sWlUpaIlI6E=; b=WRn9mP3OEiX44Zu2CrCZpA8OqAzkZcmA66U0LzYmBdw3Zo1JRHQuRCVZ/cZ2e8ssZKkXJBJjE2FMYixgQVwNIV92FpdHGgGiBSmjYWU8bUP3Pb2ieGvijGKFF3O8IYYZVWG808WeyXXw6ncRwSCjRrt1aez8czyuMiH8Z/DFnkLlpFz6D1mxLkHkfGmZVHDp54mDj46hdAzuqaURvgxpmYkKC1eoxuI99syN5vXbSQLPSVZVvEU9nmPiq9WN052CMlKk0kCrQqNkt3YBYbbMZ5fOAIO9jXggf+PDkx77RefeYfoLFMQeKg3N+waNurOXgH85h1IsRhKR3jFqW1tVdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jaguarmicro.com; dmarc=pass action=none header.from=jaguarmicro.com; dkim=pass header.d=jaguarmicro.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jaguarmicro.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AC1JAacRssBq3LzzaU8NpbMnKNxIhvj9sWlUpaIlI6E=; b=WzsE+sp5yg18KK4Xw68hoKVNL8EMIesgsXIXOsMyfDLOxe7rkn8mq8rEqZICxgFGg/iFNB/XWXFmT4g4nL0LNogV5VfcylVZbM6E53ADZ/36TqBIpiL9AKtkljOw4HpIxqBBkaIAH6h6l77CHnGlqYE0wDHVse+1oQL8ze0tojrusvqDxquVCMcN3VK+JXgr/x36YRaFscF5pLG7YQ7OO43UWSdYU4y2qUNmRGDtpH+cS4hMtnUT2hfr7Wsj0I5pyvHbr0rkpDDCBLOVxpekHrKkACXwiR1blM3koTe/olGAbHfrSHRbV5Osap4d48Y4Q/QbHlH/dkmpby8H1BH1XQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=jaguarmicro.com; Received: from SEYPR06MB5256.apcprd06.prod.outlook.com (2603:1096:101:83::14) by SG2PR06MB5431.apcprd06.prod.outlook.com (2603:1096:4:1bb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.47; Fri, 10 May 2024 00:37:48 +0000 Received: from SEYPR06MB5256.apcprd06.prod.outlook.com ([fe80::ea7:4953:3160:4916]) by SEYPR06MB5256.apcprd06.prod.outlook.com ([fe80::ea7:4953:3160:4916%3]) with mapi id 15.20.7544.048; Fri, 10 May 2024 00:37:48 +0000 From: "foryun.ma" To: corbet@lwn.net Cc: alex.williamson@redhat.com, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, angus.chen@jaguarmicro.com, "foryun.ma" Subject: [PATCH] vfio: remove an extra semicolon Date: Fri, 10 May 2024 14:37:35 +1400 Message-Id: <20240510003735.2766-1-foryun.ma@jaguarmicro.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SG2PR06CA0189.apcprd06.prod.outlook.com (2603:1096:4:1::21) To SEYPR06MB5256.apcprd06.prod.outlook.com (2603:1096:101:83::14) Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEYPR06MB5256:EE_|SG2PR06MB5431:EE_ X-MS-Office365-Filtering-Correlation-Id: 5a87dd87-31f8-49ac-2e83-08dc70896ad1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007|52116005|38350700005; X-Microsoft-Antispam-Message-Info: NZoCsTHzVblDhF+BPq6oGxqW93F61/HaqKH5jJLl59SqjXD8H0r9VrFTyXQ32p+pWGerPT+Kr/YMjhc6vbjfo3JskVZhZvmk89cRusSFSEu+14N2UTiEiXAOmoSw8SVgVCypvU2+Kck4z7gNj/o4sEfMhHBy+DHHrLkXPtloE7LsMt5FXBaQ4DyPf++AMn29e4zHD45Cipf5Fa6BcjtXHytGZQhXIznp7bEqE2xL125qr1fr25WBjGYRtcyJKynlrlnAWS3octgLpdIxUS10ZbDFNjRqvnoX5jyktIwTorMlCXHsZdn1ZOhtrWmDoLerdmPA6m06JW6Vxboif7XGusTr2hJRbq47oPbzV5urVdpsu39K0yeGgrvJkgiDsb6x1a+jCRYImBQQL4CouXMzqx6MepRMq+UIHS2uUMx59WJUG4WIcJlG5vh3g1iSIa4TZbUAc3XkGyRBagxFrlvrP9UR8FvtvIrNCxLSAUDymlE1bQI0rnW9Cq75fPiTrv0MFy7uEuzNy4Huj5GzH5i0mjoe3lk2H5Ftwk5bGRrkRDNXsPpe7bhGmHnSDi8ipZ2iqrJbPpf28KI8hLpr2w3JrCwASv2ImSQlSYSOEDv+0WQoPeFMHEBjTZtB1w8WKDfdF3RAQFTiOPgYodAsYoMeo9Vx5Q/UiXjFDUlom1IFznD74sB8GGgIs1oQa5cc/m39UUxlSE4g2ObiHrntg3pbfLoLPCuSncovO4vdAzeKPxdKuCat7ESLKwMENZgzjTE3EuATASbyBFAH9HMeKONJ7e+LZ6HMxDkq+I8wi0HyFWrkoEPQ9ji2iHJSz17dqpK9jCazhS5yueGhy08YAkYKqy4xhF/Qq8kLL/dgROrJTB4PGKIrdEvP1JWs6YXSWBKTQ9rZdJ75f3HOIQCLxwXzwHD5pz2sqHYxm9jFSJ99j+yllYOJyqTi+FrdHlv0RIdyLWtJXc23YhsPaYEK/UeXXfwKeXpeVYzcCZFY+76cvyBji937oqdkgm+nzeSSidGAV4D+RTyjyEVRMfvkPPf7bqIX8L8OywFO/ZIjRB8BVd6Rilej436V2pZgBQEW2cKkp+573pDO/kboJc523pSEjkB1Wa1rIRHH5txdSIBeGE9rWrdgm0wY1trflqcqOfboyaXbfl1eaoatRNLKSsaoz9KzWVaev4DeIYSwu9/H89BfgK18wN7qLbvZeyj4Mp0p6sJRWEK3R8xeQOUGuAg/iwLkySWqUG+i1sfwC4feQ1mOaOAmR1HnSDOYy5esCrWRtSWRRPJhIaVZu9pzVmQhYyHkYyKDF3pqcQhxumZARkQm1JowH/4jeMmUsX3XiiEtsDgKFFkxzwFsYgAkvvH1Mw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEYPR06MB5256.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007)(52116005)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exch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g1LUdQziInE7MSPEXlABA8itO4Qn+AA2belKSlSI/5tHPmVW0VPsQh1enfpu3x87UkxKh8W0loHzVAbbGjtFI1F61Zxd1YlFP2mlc9LC7SQ83cC54IrGqY+A6LIxEdjdKoqgC5Ea80eIYGW5aUeRmPgdg3JhV6gFMzRudKyXVN25CY6rMKZmEWH4ru+MLZi+6fRidY1224xZOkhODDfv3cWmTCpV3I08PujrTjZ9b7sLswcQFc5cuu2quUsaZ81oo7Fz7NvdONBHJdbn43ODJwbV56hoea0mv5VhnTAnzghXqNZaWiDDyQypuFRAM4kXugMXCHFT6IMcIw9r5+4gnhQkmNPKcpI6HKVZMHxLNSx7+gpZjTF60jp4WnlAMdKfN7/ccFag8LCBH92kXWYCe1w91m/3ttxeKHGGKU0q/eQHaQSK1vo00xBF2eYnBA2wukKZ9067Jy8bRPlnKGK1jCVUJwE21SiK0tB9IW+EMuEN69zHQwO5L9VYiRf4T5mCvmYeDeL+0ldzagHEmxiGn+31QnL3PNBdt4sBSQ3Pnipk14is1uoPawsSwtw== X-OriginatorOrg: jaguarmicro.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5a87dd87-31f8-49ac-2e83-08dc70896ad1 X-MS-Exchange-CrossTenant-AuthSource: SEYPR06MB5256.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2024 00:37:48.7044 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1e45a5c2-d3e1-46b3-a0e6-c5ebf6d8ba7b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PsXwlyxbvCNOIpsqXc6ILexBAG0TNCORjBmXu8XKC+K7sp4dfgtu4qFhbSqwR+b2p4hqTF8K5/50FCh6J9UZO1Tnm+CSDRtqISfq5HP3zrc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB5431 remove an extra semicolon from the example code Signed-off-by: foryun.ma --- Documentation/driver-api/vfio.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/driver-api/vfio.rst b/Documentation/driver-api/vfio.rst index 633d11c7fa71..2a21a42c9386 100644 --- a/Documentation/driver-api/vfio.rst +++ b/Documentation/driver-api/vfio.rst @@ -364,7 +364,7 @@ IOMMUFD IOAS/HWPT to enable userspace DMA:: MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); map.iova = 0; /* 1MB starting at 0x0 from device view */ map.length = 1024 * 1024; - map.ioas_id = alloc_data.out_ioas_id;; + map.ioas_id = alloc_data.out_ioas_id; ioctl(iommufd, IOMMU_IOAS_MAP, &map);