Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3207685pxy; Sun, 25 Apr 2021 17:37:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCVLsnqqmgAkjVUQuuuIncbYYD4hc2M7lyR0rIWYYJaQ5Z+q0HtLmwCq1KrD45eQzmLPB1 X-Received: by 2002:a05:6402:35c9:: with SMTP id z9mr18196455edc.94.1619397454745; Sun, 25 Apr 2021 17:37:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1619397454; cv=pass; d=google.com; s=arc-20160816; b=E4XIPJ+uHgsxNhd0Le8AFXeKOBfjqHqKFmZACTAO7Wne4t8W/IvMdPWyv0o3I8Gtvv 6ds0OatIUoh3ZnEA/B99LauR0z8k1NUDCH1uY1x51Q2P8fyq7MSqXYdCpu9H0X7rZYI0 ZIup6uaz90krNex+rv91sRoH5Vxfy9fBZ2bzZKDOkDorFS5YHDsX1xtXLIbJxcqTfyoT BMxixJwFS5jo2XCGYD80pigQtvuJh9BGgAXTRbNvkKfn4rYaYGu9gCV+kbO2L8e13P+t bpk9aO08utrzVxKR8M4084pnYSZjFEcQD0TPmzVD1rALDvgZIqOk1JKW1cooYykUu08j HvHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=uTrCjZvY8LUctN9eZxKsE8A+U3DLXZbj22crYpDT//E=; b=WOMdjgwgB4obSw3SKuYvAuhwx/qU0BmZODZzoG9iEsq+l1ymTGXsflMsXipKQetrHQ PDuelPYDVOUv889IN/YNZpyP+g0jyh9biVaZE73eJK13EQaocbvWVCkzGtdMeibzt3ZQ wzkC3YXy1S/aUydGpc1Ppv/7y6IbG+nvvKstEtEEqj4lPgfqqMmyAJZm8LTnFz1P5ANT bvgJqJLu9byGTQNkNx+07NMjiTwLsDJ+E+bhSv2wsPPM8QDHTCblb4Mp9Uq4l4xuXiTc 8cLx0YYnxOFcMPFmvKjdhAtEZDDk1QtxdEc2M007jTX/PRy28yJ/wO+Yun/bXWao1out ul/Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=GhnYiHzG; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si10654525edd.22.2021.04.25.17.37.11; Sun, 25 Apr 2021 17:37:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=GhnYiHzG; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231486AbhDZAgs (ORCPT + 99 others); Sun, 25 Apr 2021 20:36:48 -0400 Received: from mail-eopbgr30084.outbound.protection.outlook.com ([40.107.3.84]:10625 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231247AbhDZAgr (ORCPT ); Sun, 25 Apr 2021 20:36:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K/5fYQEg5ci9itH/m/aPjsWLP4c+0fD9gqUheqcyk3M9JNDqqzhwDgRgs2HG5cWjKkAqyII0m9O2PIVePunlgGCHGeQpK61DnDxk4ccqctDyNlZ4IZhe5xPXBTTwEeiY7aghB7AmswzY4n+i2hLjlwaCI0BUcIGSddak6eczDU5Rgx9XWF3C68lzo7Duy1GCd1MSoyfPAvdjtVacfWbKnAdiswZ/x8iUwpZDW82nJ5RyBmFIcKfkVR7ul1R/1CQRQ7OcRarGIx9+D3RTB5xK9lmNMY2WK5PzHoATB7ugNxBubIOrH4YCoqHWFy9um06yK28dmLGwuQszphFS7jicMA== 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-SenderADCheck; bh=uTrCjZvY8LUctN9eZxKsE8A+U3DLXZbj22crYpDT//E=; b=OfhbbTUglWx3kmUXAceJXagubFHSd2a/9o3/A5d2P72Xbx8YDzW6s6ScH5XauXqNkpF0D55iLSHYP1nyj7qQbTASGSB2Bh+8RlnftgPoynrPCDBflIP8wnuoJupu8VQLY7g7f8WJeB0oq9DMFRvwj+q58IsKIajj9I6vRXF6fFHD/ggII5PIBSKJ7kOPoBwe1/j8RG6jP9DCRwkp1wiDMhzxkPiMxLTbZLkjqicBFVAXHRo2hpxfak5F26Cyo61omqk5o1bNY0b0rfNfhFWyf/gpWkysLAV0QZoYNjOyw0PGXt4NNd+q8mLgbJHy1s9t1WROGLKaq5NIT2gesd47Lg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uTrCjZvY8LUctN9eZxKsE8A+U3DLXZbj22crYpDT//E=; b=GhnYiHzG0tq6uimRUg5RZ0J3wGFqCAOWgK7YMNg3lwk52Daggo1O71YRTdaBUJYpdz4uxyDnRR3zQsEBZfLKewRCTEriVvMcCoX4GOhAKkY6KWceE7yfca2Xh/OTtmBuGNTRs6bhoA6CD0OXwTFprjrkkd0TISs4U/4fJrKcod0= Received: from VE1PR04MB6688.eurprd04.prod.outlook.com (2603:10a6:803:127::25) by VE1PR04MB7423.eurprd04.prod.outlook.com (2603:10a6:800:1a0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.23; Mon, 26 Apr 2021 00:36:03 +0000 Received: from VE1PR04MB6688.eurprd04.prod.outlook.com ([fe80::de2:8b2:852b:6eca]) by VE1PR04MB6688.eurprd04.prod.outlook.com ([fe80::de2:8b2:852b:6eca%7]) with mapi id 15.20.4065.026; Mon, 26 Apr 2021 00:36:02 +0000 From: Robin Gong To: Vinod Koul CC: "dmaengine@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2] dmaengine: fsl-qdma: check dma_set_mask return value Thread-Topic: [PATCH v2] dmaengine: fsl-qdma: check dma_set_mask return value Thread-Index: AQHXN93OPWIlm8wqkUag6MExaFEFSqrFbbyAgACKiIA= Date: Mon, 26 Apr 2021 00:36:02 +0000 Message-ID: References: <1619170187-5552-1-git-send-email-yibin.gong@nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; x-originating-ip: [119.31.174.67] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 317b0016-1ea8-410e-9536-08d9084b4533 x-ms-traffictypediagnostic: VE1PR04MB7423: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3968; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZBLiBo8sk9BS1axfKGR1WCQESXh8+zcHhrP8rCYSNSETARA0bhaGydN0ryknpcVTlf6nH+AvUfM68Gl3HUZheHq99RS2rr+dHWqxDBMRQUMPLoAFTEp72LifzaAcUgkiqVPtWnxRxeshXJhEDjpwcieFVoT4WNHOImim4Lh4f2iXuoUvw1S+tTqK2xLCh8qFgKTEngq3Bpc4YafL8qpjza3C1I1RpAQigQRZFaTBiHB9OR6rrnriV8MfhWLHDHZQmDwkgjneMvtTCDeq0PpL9uuchex+hWGCu3JbaQdTLjGXQ+rNCeLC5coQ07rhWPte5LA4i/6uo85SVDCPX9OvWMymHW187ri9tMFNy6XnaHjp/+NhbiLodAtFO3GbbRkPpkNtw5L83Q2yLJ7T9ktwh0VkSAdKJE2RlK7NIEAfURHTRvVV0yguSW7hOk/xNGPFKIyqRA/EpM2BKRQhgkGEUDMOgb/j+fCvlsVWFckX75NHAGbkYh2TTLEhIqX8PGA6m4dAcX3Z0iOQvvjXkvpxhG5d8NOf8pF3MXfdsBbpVlDfY9LoCPRcP4NyOkCwU6j52k3Q3IvLqGXYy4S6lkO6eoGE71u2GYJBKOnesrla5/A= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6688.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(346002)(396003)(136003)(376002)(39860400002)(186003)(2906002)(478600001)(38100700002)(6916009)(9686003)(6506007)(26005)(86362001)(53546011)(66946007)(122000001)(33656002)(55016002)(66446008)(5660300002)(8676002)(316002)(66556008)(64756008)(7696005)(76116006)(66476007)(52536014)(83380400001)(4326008)(54906003)(8936002)(71200400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?ulTN1T8ygEtha28JnVgK0x1zs2OHZCIdRJkwaQ+TC/Fu2qLBcLpkR5M7KMfI?= =?us-ascii?Q?8crR9Lv2AWwc5RSv+rNq3Atg2w6qrbdK9VOMp8EAxS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Q?YCfDQHX5tOAA8Q7sounjpr8bwUBIHekGMFRsV6lqmgihJ325XoMmEz5kMMAv?= =?us-ascii?Q?ekCvzQ2jHeZhaWloPqoCr+4eHmjGZE2/3FOkDCz198m1fZxAr+HBs7pQU4eO?= =?us-ascii?Q?LCWXN07UVGOrz0NZ3pWEPBGYmRsUu98oxrDMtdV92mldcikLfTXUeen12Or4?= =?us-ascii?Q?1NjxnHbJ9Rva9Tpr88JRz2NjAAsVflIe6QKCSCp2r50TrGGEe8rKqMA99ITL?= =?us-ascii?Q?WIwMa34O2HXhAEY+9rvLG0W27W8TL9Ugt8l/+rUVDFLho/xbcsNFbLP6xOLf?= =?us-ascii?Q?0CjATBTOeiM5pXt4Se31twqADMXl4ycLkhgfcAQLzDnmXCyIatzw3lEEdtkD?= =?us-ascii?Q?5rVJ9pb//CxYuTOLustVwoZT?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6688.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 317b0016-1ea8-410e-9536-08d9084b4533 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2021 00:36:02.4994 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bQcXn1laq3SqSjh4dnAyS0YgCfhyejYKT8yvlXM4cuzV02HlEfG4HBG0iVrS8sLyH4RTrM2+w4nP8L9cmX5Dnw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7423 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/04/26 Vinod Koul wrote:=20 > On 23-04-21, 17:29, Robin Gong wrote: > > For fix warning reported by static code analysis tool like Coverity > > from Synopsys. >=20 > Please mention which warning, also Coverity id Do see other patches which > add coverity ids >=20 Okay, would add it in v3, thanks. > > Signed-off-by: Robin Gong > > --- > > drivers/dma/fsl-qdma.c | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/dma/fsl-qdma.c b/drivers/dma/fsl-qdma.c index > > ed2ab46..86c02b6 100644 > > --- a/drivers/dma/fsl-qdma.c > > +++ b/drivers/dma/fsl-qdma.c > > @@ -1235,7 +1235,11 @@ static int fsl_qdma_probe(struct > platform_device *pdev) > > fsl_qdma->dma_dev.device_synchronize =3D fsl_qdma_synchronize; > > fsl_qdma->dma_dev.device_terminate_all =3D fsl_qdma_terminate_all; > > > > - dma_set_mask(&pdev->dev, DMA_BIT_MASK(40)); > > + ret =3D dma_set_mask(&pdev->dev, DMA_BIT_MASK(40)); > > + if (ret) { > > + dev_err(&pdev->dev, "dma_set_mask failure.\n"); > > + return ret; > > + } > > > > platform_set_drvdata(pdev, fsl_qdma); > > > > -- > > 2.7.4 >=20 > -- > ~Vinod