Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp12709pxb; Fri, 15 Jan 2021 04:40:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwc8p/Elg/oi2+tCdqz+w99cQWoSmhlBkcl2TTOAF37yetk/2FzVP0DhMv2iHy0T7X8L+MX X-Received: by 2002:a50:b765:: with SMTP id g92mr9427367ede.317.1610714407569; Fri, 15 Jan 2021 04:40:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610714407; cv=none; d=google.com; s=arc-20160816; b=xWfJinfK/4NePzjptDp2bb+l7D8qw3+OX7awxY7Q48lMSlPfWAYFqFBzTEh4FEDJzb jYywg9weYKCjUR5EanJAAswX3GgziQmv1r09jHCKqdYAWKfR0rS4tdvIOgo8Ppv6a2Nf 6uvrC8QpJNB4ID0WRcrCr/YLBPGQoprPBEFI7Vn5pnFNs9I3nt0fzhiKgV1fBv+WlCn6 MTHbtwqmKj7X/Qead7Y2/RrtTVN1AEA2uy20lxqA4cu6nbscLf038UjtO5rVYiXD5A/E 2PDQmSd7Op/GCYzBX9dXTh/1XQHKYuiWRy/eywvhtSQLn/WrIU0ia6wrxTM9vJCh+agc ddnw== 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=2/mDApGxmIejHjDAz8BVive+fVd1wIuVhkuhe9oVa80=; b=J/9e3DEqYdRDidFwca9VZGJI6m9mDpPaWlUzsAwRYjgSZKhJzaoXfrb2xBOgAYYw82 2dJLidOnmsUfHeG7mQcFTzdq3RXH0FtZxlVPsUmP+nBzrY1CW5A5Wdhuvl5cEDq9eT9f Sqd6kQoYQSENSe089bfTbBDFSuIXFCGUz7FDIm6MUtIaPF88iNRbtHvoiNEywL9PU75l i5xxGnKGv8P8Zt5nOhOGyMpaQk09AC49kxnhcHpS6Er+sEY6BHYpnDEZ71cpN0IF8DiZ LJajNgs3y6bDhuIFoCkHQPKCpHe1qM9l8GXHgnOSyAzvpQOncnl8IvfLDk30T9xJMJzE F0mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ziwiy6Wq; 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 z2si3632711eja.539.2021.01.15.04.39.43; Fri, 15 Jan 2021 04:40:07 -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=ziwiy6Wq; 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 S2387786AbhAOMf5 (ORCPT + 99 others); Fri, 15 Jan 2021 07:35:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:42628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732197AbhAOMfv (ORCPT ); Fri, 15 Jan 2021 07:35:51 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D2E8423339; Fri, 15 Jan 2021 12:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610714136; bh=cIprcDPH7zjpR2EyWKCr0skt57I5LATyo8ftbF9ssT8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ziwiy6WqKjL0lFqkSJ/CPir+JHVY1PYu9Z+qgIUapKAK+rUCGmXPXSXkjU/TNdcI1 1KCPsSaWyHYHa+m2ELPYKn+DVM1eAt2KYzZz4Hrvwr0iBi/QJFGwpuEqX2VMyN4gHH VvPMpxEGZSJD6NRKrrjVBWfejUBZ056D8VVR3cbc= 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 46/62] dmaengine: xilinx_dma: fix mixed_enum_type coverity warning Date: Fri, 15 Jan 2021 13:28:08 +0100 Message-Id: <20210115122000.616874406@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 2d5efea64472469117dc1a9a39530069e95b21e9 upstream. Typecast the fls(width -1) with (enum dmaengine_alignment) in xilinx_dma_chan_probe function to fix the coverity warning. Addresses-Coverity: Event mixed_enum_type. Fixes: 9cd4360de609 ("dma: Add Xilinx AXI Video Direct Memory Access Engine driver support") Signed-off-by: Shravya Kumbham Signed-off-by: Radhey Shyam Pandey Link: https://lore.kernel.org/r/1608722462-29519-4-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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -2431,7 +2431,7 @@ static int xilinx_dma_chan_probe(struct has_dre = false; if (!has_dre) - xdev->common.copy_align = fls(width - 1); + xdev->common.copy_align = (enum dmaengine_alignment)fls(width - 1); if (of_device_is_compatible(node, "xlnx,axi-vdma-mm2s-channel") || of_device_is_compatible(node, "xlnx,axi-dma-mm2s-channel") ||