Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp21909pxb; Fri, 15 Jan 2021 04:56:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqwGCMkkbPt1UV6zFsL48ldUwx80zu9uqSEjMXIP+IW3g8tWI3RjVCSHHQHWbY33zlLdOu X-Received: by 2002:aa7:ca03:: with SMTP id y3mr9722016eds.87.1610715375247; Fri, 15 Jan 2021 04:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610715375; cv=none; d=google.com; s=arc-20160816; b=c4NW2v24UHvDPW3IjDGwo55CgMWB0QU7sziZoAI9fLjeezB4xxcQm+gOLCB4Lh8g2a u2s6feHP21v2iiQl1yobjusqgZyNh8iSYhNHktnhutPetCl8e4TG4Fs+5kGfUMJnV1dz CC+fo84hapiCjSzCBLxyHuJSwz1nR5wj/4q795Okpf5qF06dPLRY6CpWATYT1oRwLrd/ qnwjtbUZ3ujdcljAFZy4rKJuVZABRD2Y8+HIcCGf6faFMLSNNAXyDFoe1kGadzy9Lk9g 7WfwnnB6nQkjAhgnNGrHPt1fZ/ghZ7+mXWbkQMqAq/odhdXh4L2bib5zNT198BpdC77G 6bgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uHuv1SRnTi+l3NEVmH8bbXlUPwYTTL9rAsu1N2dSwG8=; b=uZD/1CI75vs9vWw9znP3wOjFhMGebywg6FCy/CY9gKqv4TPW24/mk+xi8CrK3cEqab PFAzmcALGUB3GZ97d7udlRt1Rs/Z5+usmuPhv/k5V0fxAIiKfRmlY/eHPBE+3Pde0PlP X0d9SbwPHakDl/OvHcBD8yPiMWAU1qKkA84dbQIQhvGI1yk+ZHMCPSnUORxxRW9YXTp2 o2jvLlkTEQtJgZHVdzi4AtpNXyuhBo88NSLui/qsBs07yGwRlgR9yphzf/K1tKuRdnf8 VI01GRPByMSMFDsnxVFP2oYAWhXpQyTO1QHHJAmWN6YSqr8VA5SOHCdeHhCAky1bJGKq 8TNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fHcE3Z9y; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg15si3555497ejc.481.2021.01.15.04.55.51; Fri, 15 Jan 2021 04:56:15 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=fHcE3Z9y; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388165AbhAOMyx (ORCPT + 99 others); Fri, 15 Jan 2021 07:54:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:42222 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387680AbhAOMf3 (ORCPT ); Fri, 15 Jan 2021 07:35:29 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D2A55221FA; Fri, 15 Jan 2021 12:35:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610714114; bh=RHSxbD25++s4zxRCAT48MXwswzAVHnPpqyvYZIo2iq8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fHcE3Z9ySAewhunuwE7bcV1TXFbD0TmRQcV0QlqR7uLpPjPYobUD3zK54xhFBAHwp cli9gzDMLJI0QeEvtju4TqSBRPyU7TTyWc4It8cNi8obPQhP94SyoPr35TjSerqdoQ DC8sVTMcAz7M6I8UKM+yKRN89Ax6JBNC0VDtvfaM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shravya Kumbham , Radhey Shyam Pandey , Vinod Koul Subject: [PATCH 5.4 45/62] dmaengine: xilinx_dma: fix incompatible param warning in _child_probe() Date: Fri, 15 Jan 2021 13:28:07 +0100 Message-Id: <20210115122000.569003983@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210115121958.391610178@linuxfoundation.org> References: <20210115121958.391610178@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shravya Kumbham commit faeb0731be0a31e2246b21a85fa7dabbd750101d upstream. In xilinx_dma_child_probe function, the nr_channels variable is passed to of_property_read_u32() which expects an u32 return value pointer. Modify the nr_channels variable type from int to u32 to fix the incompatible parameter coverity warning. Addresses-Coverity: Event incompatible_param. Fixes: 1a9e7a03c761 ("dmaengine: vdma: Add support for mulit-channel dma mode") Signed-off-by: Shravya Kumbham Signed-off-by: Radhey Shyam Pandey Link: https://lore.kernel.org/r/1608722462-29519-3-git-send-email-radhey.shyam.pandey@xilinx.com Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/xilinx/xilinx_dma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -2543,7 +2543,8 @@ static int xilinx_dma_chan_probe(struct static int xilinx_dma_child_probe(struct xilinx_dma_device *xdev, struct device_node *node) { - int ret, i, nr_channels = 1; + int ret, i; + u32 nr_channels = 1; ret = of_property_read_u32(node, "dma-channels", &nr_channels); if ((ret < 0) && xdev->mcdma)