Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2638687pxj; Mon, 10 May 2021 07:32:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKqlgKFj7OByGZ4gZrIrii5uYBMQusWY3Ic+Cl80rwxqU30Vl4BAhCofxV9atgjpPAFm1z X-Received: by 2002:a05:6402:5244:: with SMTP id t4mr12409688edd.228.1620657143240; Mon, 10 May 2021 07:32:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620657143; cv=none; d=google.com; s=arc-20160816; b=UHtA/sSfTrO0U9hIQt/WsTeufUOp4ECj7NFn0BWUkrL9dc/7guiG9ujvseUReA+fkb 0Da7QHq+jWnemMC5VcrpUfTd6PklHGqdoy+0b+IyhAs+PqzH4xXjJirOq2Xf2EOl4tg6 kxfjgMW/HZvCSXEFInRrzI8Nm2KVahMRGKMrsNbZ3p458dPyup+1lqAZX0yhcmbU4Fng RwKd7NlFRsC6rU4RC4oF0RdiG8ouQn/VHz6lRBl3xmvjYEdLcyXB3LdgCluuGhJL39gp Kq/D2+6h++U0VPkt3rHGxLSyPTYYvA17JR/UUqBamdK+6603TiMJvsTQMjoGeBlqdYgb plvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=66JNvhEcrZJHFiDtsQB9bu3e65q4nnZNwrxH0TW/eMk=; b=dM2ZZJLlQ82KWr+/syr6EIS3LUssVZLbH8fXrj0gpIcDeNoYjD2NQTgVygYOMNGEeb UUPEWnORRM5UnRUhtdmy/FYR+t2Xbs6JxsxGCUV7XaImSTWoYcUgMm0ZAl+y3kI4RGnS gd9cMwzjYzHlCMSdzlycI7GlO+YeVM8bimBuDAZp5qlr0rAgQpBfvO0sD75ME0KuTnNn GmsrIaaaUSoVaEcXTVanFGiytXyF1T6VwfC7sP0Ntr1no8YkYYlMX28OnJr75Pkq2At1 w0pi7uQCQgmHqe0LId/wedMQb0EamGFy+0UcBKannPByjUKK/jlvExerx64M0qPWvGPD rAeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tUW+atv1; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk7si6872060ejb.409.2021.05.10.07.31.58; Mon, 10 May 2021 07:32:23 -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=@kernel.org header.s=k20201202 header.b=tUW+atv1; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244809AbhEJO3e (ORCPT + 99 others); Mon, 10 May 2021 10:29:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:60292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237353AbhEJOYu (ORCPT ); Mon, 10 May 2021 10:24:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6154C610F8; Mon, 10 May 2021 14:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620656625; bh=kEP6aLlNuK4Dajr76Bpt6HISC9bo3qqNa90Xw9uHtoM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tUW+atv1hpr4r/pWfHHTxwrayD2unlBNNP8VlGbzhfqps3a/b5zLJvHpXi0Hkgrr3 /As3U1KQQ5zmMHKmiXDurRrT4LoRNbdh/8D3ADLuopFS1CBUoLKnLCI7qZmZkhmNPt G6O4BDyduyWVl3RySPV3ijYCI0zEo2tQ3xKIHkCAPDW29wKTLQlM2R/2vZzvN39M+N YJCywM1aFvzA8Ex1rvOWGOyUwo/A5Hf2jkCijWqCxskFK3Qr3QS77TRx2fut2WZQD4 0sTCbMhvU1haihnTIWhoGrLpRshsIeWEJIcMJAQiJp7hKsSzgT+x4ALY4c2oVNp1ki D6QGSdap2araQ== Date: Mon, 10 May 2021 19:53:41 +0530 From: Vinod Koul To: Robin Gong Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] dmaengine: fsl-qdma: check dma_set_mask return value Message-ID: References: <1619427549-20498-1-git-send-email-yibin.gong@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1619427549-20498-1-git-send-email-yibin.gong@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26-04-21, 16:59, Robin Gong wrote: > For fix below warning reported by static code analysis tool like Coverity > from Synopsys: > > 'CID 12285639 (#1 of 2): Unchecked return value (CHECKED_RETURN)' This should be: Addresses-Coverity-ID: 12285639 ("Unchecked return value") I have fixed that up and applied > > 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..045ead4 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 = fsl_qdma_synchronize; > fsl_qdma->dma_dev.device_terminate_all = fsl_qdma_terminate_all; > > - dma_set_mask(&pdev->dev, DMA_BIT_MASK(40)); > + ret = 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 -- ~Vinod