From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4D4D4C433EF for ; Wed, 20 Apr 2022 11:51:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fiJwGz3Y3u66lEeVrNzpwVpA6oh572YwbJym0Fk8AvU=; b=EShwWzkCMH8d5g cS6t7qxNbwIDO5ou34ES44R0Ouffq1iSlkQarfCb9TOz9Qyw3cCtc5TjuBeNDfyfPtA0RRosYcw9q RtlvgR3cDrsyXKrv/CR6RzUk1CzfN8fBlwrBjWUWDPSELyt3199BoZ8On/fWwPTHu7ZjZXsyrLa8m OkVWfvUySnQdIOvechz4eVRKJYNDpZQVzg3wu+FHyP2pdOSlThnxyoVV+GWqnRz9dO70d1/iXf9x+ ARpRR5GRXYy1HVT50g2vmQ/9ZxRtiuJwyXYGQNQPSkiFuquhRHOXCI6EaAfqCvmoquioU8aWwQHax xtn3+jVD4EtyBuihCx3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nh8qu-008qWb-HN; Wed, 20 Apr 2022 11:50:32 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nh8qr-008qW5-Co; Wed, 20 Apr 2022 11:50:30 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9EDB461944; Wed, 20 Apr 2022 11:50:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66082C385A0; Wed, 20 Apr 2022 11:50:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650455428; bh=wG8tmbya06CPHuXCrYxIi0BacRXo9h6kKzxQ63v1SQ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=goW7qCzb0qVQ+i8Tl9MVckC5HdTcV77J9bk4vVuQ+jn7j8V1i0usNZd1k0zAgHJ32 QZL12QXEGFp5yzjlMHi5wt/S7o/4aAxDXTPniexIgN+boLPFlJd/1Kt7YlR9QgoT7t pMYjM5kpCPeEscMQBFVWOMLOX9S+SFUhKpfqs5NNazbOP/uhdtVLl7zcO7fj/u0drw tS9fii/pMGGyPtSrdW0v6m/zkJdUGLVMCSMtHsbPBuWzrBB08Sx74uQtA2/RAJuEMt llYZAYqp28vxsAZQZvqVRHuxtqa4z9QvIGZR+lX72+caha7s3vQVDQ/Jr1bsVqZ8Ti ObDJSVkmEzNIA== Date: Wed, 20 Apr 2022 17:20:24 +0530 From: Vinod Koul To: Haowen Bai Cc: Sean Wang , Matthias Brugger , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: mediatek: mtk-hsdma: use NULL instead of using plain integer as pointer Message-ID: References: <1649750340-30777-1-git-send-email-baihaowen@meizu.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1649750340-30777-1-git-send-email-baihaowen@meizu.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220420_045029_510462_28C59D7B X-CRM114-Status: GOOD ( 17.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 12-04-22, 15:59, Haowen Bai wrote: > This fixes the following sparse warnings: > drivers/dma/mediatek/mtk-hsdma.c:604:26: warning: Using plain integer > as NULL pointer Applied, thanks > > Signed-off-by: Haowen Bai > --- > drivers/dma/mediatek/mtk-hsdma.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dma/mediatek/mtk-hsdma.c b/drivers/dma/mediatek/mtk-hsdma.c > index 6ad8afbb95f2..358894e72fba 100644 > --- a/drivers/dma/mediatek/mtk-hsdma.c > +++ b/drivers/dma/mediatek/mtk-hsdma.c > @@ -601,7 +601,7 @@ static void mtk_hsdma_free_rooms_in_ring(struct mtk_hsdma_device *hsdma) > cb->flag = 0; > } > > - cb->vd = 0; > + cb->vd = NULL; > > /* > * Recycle the RXD with the helper WRITE_ONCE that can ensure > -- > 2.7.4 -- ~Vinod _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel