From patchwork Thu Nov 3 05:53:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keoseong Park X-Patchwork-Id: 622007 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 C8B84C4332F for ; Thu, 3 Nov 2022 05:55:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230348AbiKCFzI (ORCPT ); Thu, 3 Nov 2022 01:55:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbiKCFya (ORCPT ); Thu, 3 Nov 2022 01:54:30 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 462A81A80A for ; Wed, 2 Nov 2022 22:53:53 -0700 (PDT) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20221103055351epoutp03b0c197d0d33d1be21d2ab2fa28a9a417~j-VWkBkb10497704977epoutp03t for ; Thu, 3 Nov 2022 05:53:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20221103055351epoutp03b0c197d0d33d1be21d2ab2fa28a9a417~j-VWkBkb10497704977epoutp03t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667454831; bh=CRL1m9ZAg2bvQ2jrsxr/t17JLuW2dDtkmywMYXFsY5s=; h=Subject:Reply-To:From:To:Date:References:From; b=FwUOfTHG5ob0A/SLck+3E35svTp9G85jBhkxsW6ucV4+ETzKrqC+0IOyLo5CH+JaI zPyh2af322SIMg4khKCyptqLzyTTYGncPl15b56QJOO0KIpzGfb0p9Cz63lODyCBgO 6CXnfMa8jY2znNJ1eWlozs2n+/OTsgE6D+xThm14= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20221103055350epcas2p353f530c2f9dca4b8e91f309c4479b1ea~j-VWE4ySb0577605776epcas2p3F; Thu, 3 Nov 2022 05:53:50 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.36.99]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4N2tH23MXyz4x9QJ; Thu, 3 Nov 2022 05:53:50 +0000 (GMT) X-AuditID: b6c32a45-643fb7000001f07d-2b-6363576e6638 Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id F6.FD.61565.E6753636; Thu, 3 Nov 2022 14:53:50 +0900 (KST) Mime-Version: 1.0 Subject: [PATCH] scsi: ufs: Remove check_upiu_size() from ufshcd.h Reply-To: keosung.park@samsung.com Sender: Keoseong Park From: Keoseong Park To: "martin.petersen@oracle.com" , "bvanassche@acm.org" , "beanhuo@micron.com" , "avri.altman@wdc.com" , "adrian.hunter@intel.com" , "stanley.chu@mediatek.com" , "yoshihiro.shimoda.uh@renesas.com" , "draviv@codeaurora.org" , "linux-kernel@vger.kernel.org" , "linux-scsi@vger.kernel.org" X-Priority: 3 X-Content-Kind-Code: NORMAL X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20221103055349epcms2p338f2550c2dd78d00231a83b24719a3d4@epcms2p3> Date: Thu, 03 Nov 2022 14:53:49 +0900 X-CMS-MailID: 20221103055349epcms2p338f2550c2dd78d00231a83b24719a3d4 X-Sendblock-Type: AUTO_CONFIDENTIAL X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGJsWRmVe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Kz2t+Cry//he/7jtyb37p05VtCo+ CVS+skj11MubIU4ld9sPffB8KuR38tzzFx+Eq9u8Ao0r86ZXBT82M/8p4BZ45FpYj+l0sxtf Tlz6srt2dob2gld/rNWPlK012jUj+9V073lbSxM2FkzaEPl6gpf8z4ZVQgwfsv8dUWIpzkg0 1GIuKk4EAPSwRZJJBAAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221103055349epcms2p338f2550c2dd78d00231a83b24719a3d4 References: Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Commit 68078d5cc1a5 ("[SCSI] ufs: Set fDeviceInit flag to initiate device initialization") added check_upiu_size(), but no caller. Cc: Dolev Raviv Signed-off-by: Keoseong Park --- include/ufs/ufshcd.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/ufs/ufshcd.h b/include/ufs/ufshcd.h index 96538eb3a6c0..5cf81dff60aa 100644 --- a/include/ufs/ufshcd.h +++ b/include/ufs/ufshcd.h @@ -1072,12 +1072,6 @@ void ufshcd_update_evt_hist(struct ufs_hba *hba, u32 id, u32 val); void ufshcd_hba_stop(struct ufs_hba *hba); void ufshcd_schedule_eh_work(struct ufs_hba *hba); -static inline void check_upiu_size(void) -{ - BUILD_BUG_ON(ALIGNED_UPIU_SIZE < - GENERAL_UPIU_REQUEST_SIZE + QUERY_DESC_MAX_SIZE); -} - /** * ufshcd_set_variant - set variant specific data to the hba * @hba: per adapter instance