Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2132800lqo; Sun, 19 May 2024 15:26:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0ibtoeNWh4PEgQJnGSl9nBGQLZSmkQe21HDzqAKp5+7FlcsxFuSUajU0KbErK33AOH90cZi6o5vdi+CVyEoR2sRV7TIiHJu+OjdY58Q== X-Google-Smtp-Source: AGHT+IEG72+yR2xMlF9H8QcjPDpTNE47/BIQf6CVRHRg1zKcfhcfEhdgM6uB1WO1X+vgwgRbDXyN X-Received: by 2002:a05:6214:5b02:b0:6a0:a98a:4846 with SMTP id 6a1803df08f44-6a1681532b9mr288951056d6.17.1716157585785; Sun, 19 May 2024 15:26:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716157585; cv=pass; d=google.com; s=arc-20160816; b=RWDdsT4EdvR7+f5uT9yVRVxx5devmmZwohDle99H6mkqsaPuVP+aoL2rJyeWyI0QNl V0zl4lX4VwKRmoixGR3l5QvvN3/jjXGShZCkl/FbLOb4mV/RGTVstBJSc45/7nFwhOqb ZgBB3X7e+3cNwtrrAYBb41UuSj7eZCakZTHz1LXBD9Y8+7nSJg2Lk8tS17mKJQH79Mjs cBceZbAS2SPgd8cbSbvaouoMtNugNyCJPIBX4Z0hGnD4W9I+Iv3hNHFisET2l/RIvNIW WnPBs5u7xDKsC+uQBHH1X/ZnAap6sEMQJaxXsmfSYCFbIBjvstRZdNEKWvVnjGqYDD0b VerQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=PgDI/bMjdgVCYmG1zHkg2MC/8ynUaS5Yh6Yuf3VKhsM=; fh=7TiGNbPoDm3o5beb3ZZUJ6/o+fSQo7Cq13cjjn0M/i4=; b=iTpVe1uvPCnQkYQNIbxcWhzRHAByGTvuvbG2ityWvy/CMOZ2yx28x6jDdtNUhgSlA0 SrPzWgILVAwOd7guimsgM3tiPr44FIeAB119QPIz9DExTd5lBXs5aNGNsFfy0QC3rcFZ 7BG7TccgxGZiwFgGxCOKuN1o3MqCoGE6AnhGm3Cxu7sBclA2n7UYOaDFul8MgCdskUiI yQULS0PMsEUeFLgkN+bdXweqYAJDo5cbp0w4HWlhI3uXb9q9tNz4SMVeFoxd72V0a7Le reeD2bcwK49KWYuM+Cttr01Nkez70v+DPSzg3LuxYruP++9+X3J/58UZvHOyz6wpnJpn 5oRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=AvMy9RkQ; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-183290-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f1d6d48si246758256d6.48.2024.05.19.15.26.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 15:26:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183290-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=AvMy9RkQ; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-183290-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 729FA1C20842 for ; Sun, 19 May 2024 22:26:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14A287352B; Sun, 19 May 2024 22:26:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="AvMy9RkQ" Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) (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 21F7C6BFD4 for ; Sun, 19 May 2024 22:26:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.24 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716157572; cv=none; b=MDBWsNQlDLsDasduboV5jjCgx0+oCmVmTZKP1yRnrsNGysODNIssB1OuQeO8qzwB36tzzs7pZKpdIZZAK9vPlu7xpqo0HCKAu36Y0C0bKONOIB0thdEXsA6VhtTyU/bI58eOTtD/gByyp9fJFaM+6T3qfePAzETsLc10OhOmYPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716157572; c=relaxed/simple; bh=Szu9njIL0tIEKdHzkoPwCn2+lvTZdhLreYacJvxijn0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: References; b=HIfBxX7SXnO/tCFbYnz+PC/bNJWBSh2xIoiTNgPG1izIOlZsNj3Y/taeIATibyuI7tvjaYeBoe+eiu9NSn/Eh+0QQAFcOw8Eu71Pid8aEGb9Km6FibkDeCIo9Bq9UO0l/M4ddNMIIoccdQ2SqlfABfRmZglGrL46IBqMVHiYT7E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=AvMy9RkQ; arc=none smtp.client-ip=203.254.224.24 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20240519222605epoutp01480179a5dbb190879d9a47677f558e45~RBDazsHHI1751817518epoutp01C for ; Sun, 19 May 2024 22:26:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20240519222605epoutp01480179a5dbb190879d9a47677f558e45~RBDazsHHI1751817518epoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1716157566; bh=PgDI/bMjdgVCYmG1zHkg2MC/8ynUaS5Yh6Yuf3VKhsM=; h=From:To:Cc:Subject:Date:References:From; b=AvMy9RkQXyeTyEVOe1vfCJuna/Si9F8ZhCW11BD0iBjlWA1lW8jewbjALPg3E8CK4 z97VwECt4rtIxtpV6O9hynpeRz+MxbBShnrwODvY+aQFU6MO8gZQ6BeoQMy67CurbM bW0/mErMvxyoKj4URCUC9FBRgXvF+X6NqZ2Gz3RA= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20240519222605epcas2p213aa99fa1635db33711693cff10aba2f~RBDahJany2706827068epcas2p2D; Sun, 19 May 2024 22:26:05 +0000 (GMT) Received: from epsmgec2p1.samsung.com (unknown [182.195.36.101]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4VjFf46F3Gz4x9Pt; Sun, 19 May 2024 22:26:04 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmgec2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 47.1D.08666.C7C7A466; Mon, 20 May 2024 07:26:04 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20240519222604epcas2p3d427f2f5b3b0156881f6840443210931~RBDZN_waB0281302813epcas2p3O; Sun, 19 May 2024 22:26:04 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240519222604epsmtrp1bf2e98b6bc334be84d9f3dd05f8d88dc~RBDZNUXes2746627466epsmtrp1R; Sun, 19 May 2024 22:26:04 +0000 (GMT) X-AuditID: b6c32a43-aa9fa700000021da-a5-664a7c7ce137 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id CA.40.19234.C7C7A466; Mon, 20 May 2024 07:26:04 +0900 (KST) Received: from localhost.dsn.sec.samsung.com (unknown [10.229.54.230]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240519222604epsmtip27ac701456c85d36b41aadf47ffb03d2a~RBDY_hv4d0625506255epsmtip23; Sun, 19 May 2024 22:26:04 +0000 (GMT) From: Minwoo Im To: "James E . J . Bottomley" , "Martin K . Petersen" , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Joel Granados , gost.dev@samsung.com, Minwoo Im , Asutosh Das Subject: [PATCH v2 0/2] ufs: mcq: Fix and cleanup unsafe macros Date: Mon, 20 May 2024 07:14:55 +0900 Message-Id: <20240519221457.772346-1-minwoo.im@samsung.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJJsWRmVeSWpSXmKPExsWy7bCmhW5NjVeawa0mI4sH87axWbz8eZXN YtqHn8wWNw/sZLJYuv8ho8XGfg6Ly7vmsFl0X9/BZrH8+D8mi2enDzBbLOyYy+LA7XH5irfH tEmn2Dw+Pr3F4jFxT51H35ZVjB6fN8l5tB/oZgpgj8q2yUhNTEktUkjNS85PycxLt1XyDo53 jjc1MzDUNbS0MFdSyEvMTbVVcvEJ0HXLzAG6UEmhLDGnFCgUkFhcrKRvZ1OUX1qSqpCRX1xi q5RakJJTYF6gV5yYW1yal66Xl1piZWhgYGQKVJiQnXH2/Fy2gka2isf7F7I0MN5h6WLk5JAQ MJG40feAvYuRi0NIYAejxIVdM1ggnE+MEova2xjhnNWH1zN3MXKAtbzYrggR38koMX3pYmYI 5zejxMmmPewgc9kE1CUapr4C2yEi8IFRYtMbA5AiZoFTjBKf77czgiSEBewlWi59ZAaxWQRU JW5tPM4KYvMKWEt8ufONHeJAeYn9B88yQ8QFJU7OfAI2lBko3rx1NthmCYGf7BLHn56CanCR 6LoyE+o7YYlXx7dAxaUkXva3QdnlEj/fTGKEsCskDs66zQbxmr3EtecpICazgKbE+l36EFFl iSO3oLbySXQc/ssOEeaV6GgTgpihLPHx0CFmCFtSYvml12wQtofE3SUTwXYKCcRKLPl/m3kC o/wsJL/MQvLLLIS9CxiZVzGKpRYU56anJhsVGMLjNDk/dxMjOI1qOe9gvDL/n94hRiYOxkOM EhzMSiK8m7Z4pgnxpiRWVqUW5ccXleakFh9iNAWG7kRmKdHkfGAizyuJNzSxNDAxMzM0NzI1 MFcS573XOjdFSCA9sSQ1OzW1ILUIpo+Jg1OqgUmg8qf0z6Bp89q6GhV9Z3vfStn/NmfjKZfo lld3lnQcX39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/boj3cpn6S7fLTfXK+07NXx6+P9hA9c7ThU4JwocbV7xM2JOfz d/01YDmx+9/zrEv7z+6cMGv3pLuR59/MuJATpmzz/tuGiZ7ei6S2GNzbfklh7nnHe7qRBl46 H5Q/rd8c0HR8qwPDdhO2EolJFT1uL/bGq69M/PxZ+f6Dhxd/ri97uKFCemeOe4YSS3FGoqEW c1FxIgB+n14M2QIAAA== X-CMS-MailID: 20240519222604epcas2p3d427f2f5b3b0156881f6840443210931 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240519222604epcas2p3d427f2f5b3b0156881f6840443210931 References: Hello, This patch set fixes an potential bug for further usages in ufs-mcq.c and contains a simple clean-up converting macro to an inline function. Please review. Thanks, v2: - Fix missing argument 'hba' in MCQ_OPR_OFFSET_n by converting it to an inline function (Bart) - Added [2/2] patch to convert the remaining one macro in ufs-mcq.c to an inline function along with the previous patch for the sake of consistency. Minwoo Im (2): ufs: mcq: Fix missing argument 'hba' in MCQ_OPR_OFFSET_n ufs: mcq: Convert MCQ_CFG_n to a inline function drivers/ufs/core/ufs-mcq.c | 35 ++++++++++++++--------------------- include/ufs/ufshcd.h | 13 +++++++++++++ 2 files changed, 27 insertions(+), 21 deletions(-) -- 2.34.1