From patchwork Fri Aug 11 15:33:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankit Kumar X-Patchwork-Id: 13350545 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F4DAC0015E for ; Fri, 11 Aug 2023 10:21:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235894AbjHKKVQ (ORCPT ); Fri, 11 Aug 2023 06:21:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235591AbjHKKUw (ORCPT ); Fri, 11 Aug 2023 06:20:52 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B775358C for ; Fri, 11 Aug 2023 03:20:15 -0700 (PDT) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20230811102012epoutp044a656db7d3c25b0800dc9a8be98f90b4~6TPIJsOdj2782027820epoutp04f for ; Fri, 11 Aug 2023 10:20:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20230811102012epoutp044a656db7d3c25b0800dc9a8be98f90b4~6TPIJsOdj2782027820epoutp04f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1691749212; bh=xK/C7pUY7BW9RDauehwRtOOiTo7CY+gR9Le8RVIUu3s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DZShAyYLaGjOULeCqVTvw2ApgvU2iGxQYp+JwhfHnvehcX3W6jdJIhw/QzLw+lavt 1t+bawtRERYg5CG5y/gkU6XMFZ22T4IK9rPYuGEaDnafmwa+UymOFeeyRcTAoDqhu/ xr5gvH61YfBPVkjHJjQcxX6deW9qgc/F6am0V6+8= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20230811102011epcas5p1d0d254fa923b448056dec3be86abc4e3~6TPHiAaxy1165811658epcas5p1d; Fri, 11 Aug 2023 10:20:11 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.182]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4RMftd3QmCz4x9Pp; Fri, 11 Aug 2023 10:20:09 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 69.64.55522.75B06D46; Fri, 11 Aug 2023 19:20:07 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20230811101911epcas5p1b090eea2adf03e143ef6445a32278295~6TOP1JgK83174731747epcas5p1W; Fri, 11 Aug 2023 10:19:11 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230811101911epsmtrp2b48ee5d82b57624a0a828e34c67d3fbe~6TOP0h7540365303653epsmtrp2j; Fri, 11 Aug 2023 10:19:11 +0000 (GMT) X-AuditID: b6c32a49-c94d0a800000d8e2-73-64d60b577678 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id AD.C1.64355.F1B06D46; Fri, 11 Aug 2023 19:19:11 +0900 (KST) Received: from unvme-desktop.sa.corp.samsungelectronics.net (unknown [107.99.41.39]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230811101910epsmtip1f01b7e9c16cbbd33c13623f8dcdb5259~6TOOj2UvX1729217292epsmtip1Z; Fri, 11 Aug 2023 10:19:10 +0000 (GMT) From: Ankit Kumar To: Jens Axboe , "Martin K. Petersen" , Keith Busch Cc: gost.dev@samsung.com, Ankit Kumar , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] block:t10-pi: remove redundant Type2 check during t10 PI verify Date: Fri, 11 Aug 2023 21:03:12 +0530 Message-Id: <20230811153313.93786-2-ankit.kumar@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230811153313.93786-1-ankit.kumar@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplk+LIzCtJLcpLzFFi42LZdlhTSzec+1qKwa8DWhZrrvxmt1h9t5/N 4uaBnUwWkw5dY7TYe0vb4vKuOWwWy4//Y3Jg97h8ttRj06pONo+PT2+xePRtWcXo8XmTXABr VLZNRmpiSmqRQmpecn5KZl66rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtARSgpl iTmlQKGAxOJiJX07m6L80pJUhYz84hJbpdSClJwCkwK94sTc4tK8dL281BIrQwMDI1OgwoTs jKWHnjMW3GWtOPP3NGsD40WWLkYODgkBE4mn7+u7GLk4hAR2M0rM/bebCcL5xChxrGUqI5yz bNJ8oA5OsI5bLydDJXYySuxas4wNwulkkph9rpMdpIpNQFvi1dsbzCC2iECZxJuHO8FsZoEa ic57s5hAbGGBMIlvB58wg9zBIqAq0fgULMwrYCNxZOZmRohl8hIzL30HG8kpYCsx9ccbRoga QYmTM5+wQIyUl2jeOpsZ5AYJgUfsEu3fp7NDNLtITDg6lQ3CFpZ4dXwLVFxK4vO7vVDxbIlN D38yQdgFEkde9DJD2PYSraf6wW5jFtCUWL9LHyIsKzH11DomiL18Er2/n0C18krsmAdjq0r8 vXcbGljSEjffXYWyPSQm374LDbgJjBJ/ev8wTmBUmIXkn1lI/pmFsHoBI/MqRsnUguLc9NRi 0wLDvNRyeCQn5+duYgSnSy3PHYx3H3zQO8TIxMF4iFGCg1lJhNc2+FKKEG9KYmVValF+f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bLLBhVr4hFruwjavprMXnB628Tf1ZB7x9PJ4ZcLXdNF7v2PP1 spvktOKvNyWnBnkoGYiybnN7ZqidaK16/8dJs1hPg85jXaplN/wOb1OL7hT425zLo3ej5InD nCnb94iGi3pfz6hTmp3G5OYb42XHFSYj8i7k/cY3tpYse5Itqsv0otlKD7tOO5nB7mK3ZWp4 RaA401fD0CUBp94t3H38mbJ23zruc5WTFjueE7zZNFd009SuPqdDv95blUvMk+ms4eYLtHJP +7WAKXhxzEvTnOps6SVce3LKp53pXr9/Y/DKs01v7yqxFGckGmoxFxUnAgAbTiVg0wIAAA== X-CMS-MailID: 20230811101911epcas5p1b090eea2adf03e143ef6445a32278295 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230811101911epcas5p1b090eea2adf03e143ef6445a32278295 References: <20230811153313.93786-1-ankit.kumar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org T10_PI_TYPE2_PROTECTION is neither used to generate nor verify crc and ip. Remove this redundant check. Signed-off-by: Ankit Kumar Reviewed-by: Martin K. Petersen --- block/t10-pi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/block/t10-pi.c b/block/t10-pi.c index 914d8cddd43a..bf0bba01417f 100644 --- a/block/t10-pi.c +++ b/block/t10-pi.c @@ -64,8 +64,7 @@ static blk_status_t t10_pi_verify(struct blk_integrity_iter *iter, struct t10_pi_tuple *pi = iter->prot_buf; __be16 csum; - if (type == T10_PI_TYPE1_PROTECTION || - type == T10_PI_TYPE2_PROTECTION) { + if (type == T10_PI_TYPE1_PROTECTION) { if (pi->app_tag == T10_PI_APP_ESCAPE) goto next; From patchwork Fri Aug 11 15:33:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankit Kumar X-Patchwork-Id: 13350546 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98D21C04A94 for ; Fri, 11 Aug 2023 10:21:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235934AbjHKKVR (ORCPT ); Fri, 11 Aug 2023 06:21:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234340AbjHKKUx (ORCPT ); Fri, 11 Aug 2023 06:20:53 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D844C3593 for ; Fri, 11 Aug 2023 03:20:16 -0700 (PDT) Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20230811102015epoutp04cbec2276a6e04d85465845a63f310cc1~6TPK3uDGl2849728497epoutp04h for ; Fri, 11 Aug 2023 10:20:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20230811102015epoutp04cbec2276a6e04d85465845a63f310cc1~6TPK3uDGl2849728497epoutp04h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1691749215; bh=c2jLjNWnQ/M9Rw0sJ/cfW/hL9LXxiP2rzuneLjpKg+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u3JjtO8w08CzCEqYZZi0EVjTjjbkfLDPglCybFEkQiulj1cHLR8QNUFsFr7ElLVBh z2ruPwWSr3XwnhwW29HrXtXY+DEMkYU/dlQOP9+OD+TJTAttvjdWOl9XGB+3dVRsLF CI0TWpxEghwbutlleUT4vhbecbQqhwHjxsL4BZfw= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20230811102015epcas5p1c3fa8a8e05124e96c0e828a432592ea8~6TPKlq-wA1319413194epcas5p1l; Fri, 11 Aug 2023 10:20:15 +0000 (GMT) Received: from epsmgec5p1new.samsung.com (unknown [182.195.38.177]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4RMftj269cz4x9Px; Fri, 11 Aug 2023 10:20:13 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmgec5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D1.3C.57354.B5B06D46; Fri, 11 Aug 2023 19:20:11 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20230811101913epcas5p3a007d4594f5313a04ed5b6414aeb5b61~6TORWLndn0497904979epcas5p3B; Fri, 11 Aug 2023 10:19:13 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230811101913epsmtrp1fd2bd3a233f190012a121c571fb7b52f~6TORS0Lzr1422214222epsmtrp1H; Fri, 11 Aug 2023 10:19:13 +0000 (GMT) X-AuditID: b6c32a44-007ff7000001e00a-e6-64d60b5b361c Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D9.FF.14748.12B06D46; Fri, 11 Aug 2023 19:19:13 +0900 (KST) Received: from unvme-desktop.sa.corp.samsungelectronics.net (unknown [107.99.41.39]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230811101912epsmtip1bf5b373082dc71d4fe6a38b17a225e6d~6TOQNw61V1269712697epsmtip1L; Fri, 11 Aug 2023 10:19:12 +0000 (GMT) From: Ankit Kumar To: Jens Axboe , "Martin K. Petersen" , Keith Busch Cc: gost.dev@samsung.com, Ankit Kumar , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] block:t10-pi: remove duplicate module license Date: Fri, 11 Aug 2023 21:03:13 +0530 Message-Id: <20230811153313.93786-3-ankit.kumar@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230811153313.93786-1-ankit.kumar@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjk+LIzCtJLcpLzFFi42LZdlhTSzea+1qKwfyTahZrrvxmt1h9t5/N 4uaBnUwWkw5dY7TYe0vb4vKuOWwWy4//Y3Jg97h8ttRj06pONo+PT2+xePRtWcXo8XmTXABr VLZNRmpiSmqRQmpecn5KZl66rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtARSgpl iTmlQKGAxOJiJX07m6L80pJUhYz84hJbpdSClJwCkwK94sTc4tK8dL281BIrQwMDI1OgwoTs jL/NR9kLVrJULLtzlamB8RpzFyMnh4SAicTxxU1ANheHkMBuRonpj/cwQjifGCXuzDvFCFIl JPCNUWL1Wj2YjgV3XrJAFO1llNi0cwkThNPJJHGl+S3YXDYBbYlXb2+A2SICZRJvHu4Es5kF aiQ6781iArGFBZwk7q5/xAZiswioSixYvhmshlfARmLl/v3sENvkJWZe+g5mcwrYSkz98YYR okZQ4uTMJywQM+UlmrfOBvtBQuAtu8TjKXuhml0kHn5YzwJhC0u8Or4FKi4l8bK/DcrOltj0 8CcThF0gceRFLzRg7CVaT/UD2RxACzQl1u/ShwjLSkw9tY4JYi+fRO/vJ1CtvBI75sHYqhJ/ 792GWistcfPdVSjbQ+L1vpXQ4J3AKNH/7yPrBEaFWUj+mYXkn1kIqxcwMq9ilEwtKM5NT002 LTDMSy2Hx3Jyfu4mRnDC1HLZwXhj/j+9Q4xMHIyHGCU4mJVEeG2DL6UI8aYkVlalFuXHF5Xm pBYfYjQFBvhEZinR5Hxgys4riTc0sTQwMTMzM7E0NjNUEud93To3RUggPbEkNTs1tSC1CKaP iYNTqoEpLPPDOZdjBjdmbf+a3zVZfpbsXV+Vk8W+zuFf9sc/tu7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P4Vxye fanWkcEzX9Odt6Ble73eBp00x1TBgljz88fVUni125W9Z3Fk7Ks/9sKzd03Zlv9HFm1pdzrE Ne3CJGYjnxXx7/ufRq/q6Ypdc32BfdRsC5NFL98d5eVNN4h/n8n2Xf6Wp6mOvmVA7sUH++Vv eO248Ec3QG/nN9Vdanx6f5e88d61ZlvZZlXmvLdMk87PK572q1WJpTgj0VCLuag4EQDO5JFd 1wIAAA== X-CMS-MailID: 20230811101913epcas5p3a007d4594f5313a04ed5b6414aeb5b61 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230811101913epcas5p3a007d4594f5313a04ed5b6414aeb5b61 References: <20230811153313.93786-1-ankit.kumar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Remove duplicate MODULE_LICENSE("GPL") from t10-pi.c Fixes: a7d4383f17e1 ("block: add pi for extended integrity") Signed-off-by: Ankit Kumar Reviewed-by: Martin K. Petersen --- block/t10-pi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/t10-pi.c b/block/t10-pi.c index bf0bba01417f..042f21b0e2e5 100644 --- a/block/t10-pi.c +++ b/block/t10-pi.c @@ -471,4 +471,3 @@ const struct blk_integrity_profile ext_pi_type3_crc64 = { EXPORT_SYMBOL_GPL(ext_pi_type3_crc64); MODULE_LICENSE("GPL"); -MODULE_LICENSE("GPL");