Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1749979ybt; Thu, 25 Jun 2020 13:10:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjSDcnK9gjT4cLI1XVIpkZ4zHjxpgdXZIrB3KH/BQfBMg3T/LwJlvabllISJFQK2cXy8W3 X-Received: by 2002:a17:906:1d1b:: with SMTP id n27mr22786750ejh.272.1593115800100; Thu, 25 Jun 2020 13:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593115800; cv=none; d=google.com; s=arc-20160816; b=lMI5DjBGgP3qhV6DOnRjrqDBFRK539dfupwJ3nVGLyx3Cg42h6G0A1SYa29RhQSu+N ikoWAm0hd9PsMCmxL0GU129uBqTFpwjWmhjq0a6kvtpFoQUTGhaKu9VaSwor2rLvR/Q3 IP1H/8o3hH+6j9aLK4mm3OqsgnWplsVQ/KNdmHlyvYUGUC2CKkt+r5aejoDVceMgnxdr 9VhvXAJ78hGVj21lgCMa75SRc0CufZQ7TUQq69FIgj304StSiN2jYL2jHp6jdH5/gHeP 3DWc8O1w27VXdC148YkGcbGv1TpC41hcaZWa24m2NAP+2G+9Akm2iBH3rH8kO12+gVkV Ay6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=saVDxR6iFlHDOPrSLbUWHGiN3Wdl+m0/zSK4dhECjFc=; b=qgW6LBlQlHLr+kP6rFvClifiCMAkQOsHceb9kDK2Z2hxsuZEmspNSintLSGNRGqwTa ncuv9TiuqRfDIMNa+vxT9JtMK/qAWLCYUGtLBkfsQtsg0HvX+B1rqwRvA91Q/9B6BNJe McP2iNf3pKUwgse7hI4AMK7bSWUE5zOFVapolv+emXAq9QjW0Bt3tFjR9ZdQA44ZYcxh c6QTuII9ispnf6V/0vMib9CDmee3cFRJYEOHiy+uyqT0nbFyt0kTwrizL9y6h67cUUGY zaWDZCEd9rEdh5jRbboKSNcmQScFMsa9egZGkAWY6VXHDCLiI9aBnTx1kyHPHtitgJly oBlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cy20si4800864edb.344.2020.06.25.13.09.30; Thu, 25 Jun 2020 13:10:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389067AbgFYUIA (ORCPT + 99 others); Thu, 25 Jun 2020 16:08:00 -0400 Received: from mga05.intel.com ([192.55.52.43]:54738 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388615AbgFYUIA (ORCPT ); Thu, 25 Jun 2020 16:08:00 -0400 IronPort-SDR: 0VN1LJtzruAPpsdE8O9WKcMKhbUVeWcmapEiCmWnubpAVgyM/1BiAdCzLwL+Q4PCys02pHCoD3 FksDE4DQEaLw== X-IronPort-AV: E=McAfee;i="6000,8403,9663"; a="229784477" X-IronPort-AV: E=Sophos;i="5.75,280,1589266800"; d="scan'208";a="229784477" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2020 13:07:59 -0700 IronPort-SDR: lzNMNoJWbxcej9iBMgBrJXFgOShF63/ya54FTSlorKvuZ+B38c+n7KoUpNO3JxSp2Mw2oy8D+M 6YTetnVty84A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,280,1589266800"; d="scan'208";a="312107905" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga002.fm.intel.com with ESMTP; 25 Jun 2020 13:07:59 -0700 From: Fenghua Yu To: "Zhou Wang" , "Tony Luck" , "Ashok Raj" , "Joerg Roedel" , "Thomas Gleixner" , "Ravi V Shankar" Cc: linux-crypto@vger.kernel.org, Fenghua Yu Subject: [PATCH] crypto: hisilicon/qm: Change type of pasid to u32 Date: Thu, 25 Jun 2020 13:07:12 -0700 Message-Id: <1593115632-31417-1-git-send-email-fenghua.yu@intel.com> X-Mailer: git-send-email 2.5.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org PASID is defined as "int" although it's a 20-bit value and shouldn't be negative int. To be consistent with PASID type in iommu, define PASID as "u32". Suggested-by: Thomas Gleixner Signed-off-by: Fenghua Yu --- PASID type will be changed consistently as u32: https://lore.kernel.org/patchwork/patch/1257770/ drivers/crypto/hisilicon/qm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 9bb263cec6c3..8697dacf926d 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -1741,7 +1741,7 @@ void hisi_qm_release_qp(struct hisi_qp *qp) } EXPORT_SYMBOL_GPL(hisi_qm_release_qp); -static int qm_qp_ctx_cfg(struct hisi_qp *qp, int qp_id, int pasid) +static int qm_qp_ctx_cfg(struct hisi_qp *qp, int qp_id, u32 pasid) { struct hisi_qm *qm = qp->qm; struct device *dev = &qm->pdev->dev; @@ -1813,7 +1813,7 @@ static int qm_start_qp_nolock(struct hisi_qp *qp, unsigned long arg) struct hisi_qm *qm = qp->qm; struct device *dev = &qm->pdev->dev; int qp_id = qp->qp_id; - int pasid = arg; + u32 pasid = arg; int ret; if (!qm_qp_avail_state(qm, qp, QP_START)) -- 2.19.1