Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2716816rwb; Sun, 4 Sep 2022 23:33:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Jfaq+OqZUrsH03MsxrMFIuw1ImuBjgncZVMePK0VvagegdE0uW2HUZJPmXhClPcsyXGdm X-Received: by 2002:a17:907:8a22:b0:73d:8a12:2d1c with SMTP id sc34-20020a1709078a2200b0073d8a122d1cmr34455520ejc.154.1662359581549; Sun, 04 Sep 2022 23:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662359581; cv=none; d=google.com; s=arc-20160816; b=y6923FcmZDDzvnkLZABPkjUcr+S7a6lifJm4gyPXiydy56lblycHHR9ZNOUZMMXBRY Y/qBEtKxlT/SahOizJ43rlzbP34UDf/1AZHSQBJAluXtVY20vp9+LnK/M88X5ym/frZt w5QQR/nEeNUqUIOMtfWt3ihajTx4Q77ClrwsElqKtCryq0W1uwgcMA2+lV6q2s6eV1S7 ER58cyzZy8Eyb5+qKVd4HmGwzyiaTqomrxrCbkljHufejz2XNiRYItypMwe47Tpn/n8T GaT7G03MJQ9MtXV5QIqgcAjo1Tzuui02eA3jmlDgGkQkFSTUFg2YDNV04jdgRF3eQR6c bNqg== 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=UW8wLvaMZnRliWOiQdJavoiWiNLW1qhy3BXDPFl7oJ0=; b=Uk1Lpr7SEDYadld1Aad/W1Si2Ur5TmDHm+lNV8fQ724O0HQac/UMVFw3Uz2+DlaLdX dwcQat9YvWkJBgSMjgl8oV9cuL8xRZeN1juGzyHi0pPBcraVm8h7axN1Mokvx5PRDa9w vOIqUYgaeMudLdElxmrCiZx90G9XdYCywbVUNKFJXQ/DgrgdlaYfmjo5qyNRQwQwS1dP n8YDMTCeAxJL1VnFuNuXFOThs/LGYI6+eaF0YDuFzOX7odmRY/TNBvAlssVMWSMOsFYs rRCpAxSPR5+YnkoYcaKW0kFA7fkMYcWAFQ/5pYZoFjjnv5ceQyCxD72/I0E7izlIyI5T y3jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UWjPF9Ca; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a170906388b00b0073c14b6560bsi6278647ejd.177.2022.09.04.23.32.36; Sun, 04 Sep 2022 23:33:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UWjPF9Ca; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236070AbiIEG0V (ORCPT + 99 others); Mon, 5 Sep 2022 02:26:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234299AbiIEG0U (ORCPT ); Mon, 5 Sep 2022 02:26:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 819031FCD0; Sun, 4 Sep 2022 23:26:19 -0700 (PDT) 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 103F4610E7; Mon, 5 Sep 2022 06:26:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00AC6C433C1; Mon, 5 Sep 2022 06:26:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662359178; bh=J1sCmTfRKxfRS9ujjevBR+nlz4HWtgOOY/mt28Ykx6g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UWjPF9CaSUoZyPXSvZwwJ6pjjt5WB/EVtodn2Jstkug5qqUwE9OhtlxvptEmvQEzA P9dBlkErQI6ySB/jL3ZFLjcChBOcMz0C+EW+KN6jcp6+bDau3HrayXk5zNMYfzr1Fs g6v/ix7n7vxTTPxma7QpfjTUYDCoYUqUIVpCmTe57/Iet75fyR8EcY93Htw3rt13d5 LgifdOyyw/O9XtMcU1dodz00hufbkcvI34XEYSA1JyQFUW5A3kXzuXrfQCBSCa+qzP eMt2GPufO2KbDkf87ADdXMiFbc1PX4d8oCYP0FUPSSjRs9+58ATFe6XXBDzPcypgDy MJ294qb9H4J3A== Date: Mon, 5 Sep 2022 11:56:14 +0530 From: Vinod Koul To: Radhey Shyam Pandey Cc: michal.simek@xilinx.com, m.tretter@pengutronix.de, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, git@amd.com, Shravya Kumbham , Harini Katakam Subject: Re: [PATCH] dmaengine: zynqmp_dma: Typecast with enum to fix the coverity warning Message-ID: References: <1653378553-28548-1-git-send-email-radhey.shyam.pandey@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1653378553-28548-1-git-send-email-radhey.shyam.pandey@amd.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24-05-22, 13:19, Radhey Shyam Pandey wrote: > From: Shravya Kumbham > > Typecast the flags variable with (enum dma_ctrl_flags) in > zynqmp_dma_prep_memcpy function to fix the coverity warning. Applied, thanks > > Addresses-Coverity: Event mixed_enum_type. > Signed-off-by: Shravya Kumbham > Signed-off-by: Harini Katakam > Signed-off-by: Radhey Shyam Pandey > --- > NOTE- This patch was sent to dmaengine mailing list[1] and > there was a suggestion from Michael Tretter to change the > signature of the dmaengine_prep_dma_memcpy() engine to accept > "enum dma_ctrl_flags flags" instead of "unsigned long flags". > > All device_prep_dma_* API variants have ulong flags argument. > So this is a wider question if we want to change these APIs? > Also there are existing users of these public APIs. It would be very nice to do this change but users would need to be updated as well, patches are welcome -- ~Vinod