Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2960237pxy; Sun, 25 Apr 2021 09:21:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyBWDJLcygDXMLXfycqWhlkMm1H+NwRUDa79ZWChVLED3bXR9GKdI4/gb1g+cL8a6K2J5/ X-Received: by 2002:a17:902:8f8d:b029:ea:e059:84a6 with SMTP id z13-20020a1709028f8db02900eae05984a6mr14478115plo.35.1619367676589; Sun, 25 Apr 2021 09:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619367676; cv=none; d=google.com; s=arc-20160816; b=Jx9+KFm3ceeVeo+dJK5+nZz2V597PqwRuq4F/LZfY6t9MvD/Kwhuy+8ff5+UZL3Lno kxsD7uvt9St7tlKCSuIjwf+aEIUQm8DGoAXeI3C12iNhTaJdMqiVsY0rwPJW7YkfZA9G GEAvmYCMyF8sBNazKkFHBCWy3BTA7M8buXiYkERJyNq7Tb/vJFbdFkKYlI8X+9H2gTbj jeVN13W0i1vx5QiuxpbW/88ZMY59TegocDc7MIQNnE/DL2buBGuyLB0WWcXhg/BAg7ad OlFOzy9znaIEQ2QLRPdLFBUiUE7liNPgdPTCBaKc+lgMWEno1Z2gtCGW29h8bpfpSsyv /R8w== 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=oSUCv4vZs8qb0pMfZjQIcx5A3res8SW/OpH2HDGHYEA=; b=brqbO4CdsxrFWbDdWmCeOx8z9TpucqNLnH6gO7urUW5hXQgUi6yFcNeuScjBYJCo/u 4U6X6Rp4CMDSGbVAMjzvefOjY9eTuJRdmmiFBhsMNDXAnJH9DZauyGN/fycpXwHUjTKr E7SBSbGpWd96nVhM54WudRdf11bC6p2Nvdsj8jYl3+y28OclDKVLKhNeeeIPTKPEiMkZ NILgKeByN8/znJsGEYNavtvH3YVcjfQ5XIG9SSJxjlXlRz78tPrhpXgvzM6g+Tj1h8Pb RipegVB0MR/jBH3BZbpYYbdewkQiC/xR33/XHgch4mtbijjtFYUNihCIh2T6c9ljcAo2 NAJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CX6fsNTZ; 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 e24si14862715pgg.219.2021.04.25.09.21.04; Sun, 25 Apr 2021 09:21:16 -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=CX6fsNTZ; 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 S230388AbhDYQUA (ORCPT + 99 others); Sun, 25 Apr 2021 12:20:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:35240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230288AbhDYQUA (ORCPT ); Sun, 25 Apr 2021 12:20:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1A23B611C2; Sun, 25 Apr 2021 16:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619367560; bh=NdxtA/vfvZEFjh39RCdHx63hCF6404jblqDobJhrNaE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CX6fsNTZPqv8Sk1Tp9YuP7gZ+6SxPPNS/trExSABFfBRM4FCM6MAm7be3oo8qiw9I z4kRitNG5v3ztXtRftR9kpTL6/a1HC4DOaIIw1g9yw+VQc3CxPgUppBC2CTQE004XM k8EJeRRX/blSrnUof+UQH8wNnXuQpfRdJpDzm3CcTFX25T2x9tWAIjjyKtBRb8kuP6 wy4MTwBn7D2xC7lJQDmjeEFu9AIFAoDfdZgWKcFi9hjSq2U4Y+d6fkOJHcvB7se3OZ OM+5262GI5MtyKfU/2BDw1e9Rpg78Obl4tOaw9nIQBhU6e060HVoI86YOtu8o1Bgso fAylxgvNpMtBQ== Date: Sun, 25 Apr 2021 21:49:15 +0530 From: Vinod Koul To: Robin Gong Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] dmaengine: fsl-qdma: check dma_set_mask return value Message-ID: References: <1619170187-5552-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: <1619170187-5552-1-git-send-email-yibin.gong@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23-04-21, 17:29, Robin Gong wrote: > For fix warning reported by static code analysis tool like Coverity from > Synopsys. Please mention which warning, also Coverity id Do see other patches which add coverity ids > > 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 = 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