From patchwork Tue Sep 14 08:28:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harini Katakam X-Patchwork-Id: 12492317 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7219BC433F5 for ; Tue, 14 Sep 2021 08:32:53 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 433656103B for ; Tue, 14 Sep 2021 08:32:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 433656103B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zGOaVVFegeqMJT0ENnt44zfWIz3PV4SRMGKoY/Dfy1g=; b=OP4z43Q23h2ppc v3WF81tZk8tZj73fUUjofafFLaNsRQR0yg6VnGM5e1tWa/0EOzV71I+tfsBIv6rbUow0Ftedkq3Nv LAPy1P/7wnvk2KUXHgonBGjB5Gsyp3loiclkXjzSiepyxBTgHFzjWnu7PglgsTFT5AUn4aoiBFZR9 AuKvX+HtL/fyaKKbzDwIHBI3wN0aaymnlwU2wxp4PrQ/1Y/gOwrD5SekAipPcPcGlQOsBYKc0iqSD K+dz/WpTlaw8xTdL0e3SrFp1EGUbdXweHxbKlvySzU9txFmjsC7L6yQ0vUlofD0eoAQQoTWlXd0xI l+R4PRtNbIglrMeq8y6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQ3p6-004gS9-P0; Tue, 14 Sep 2021 08:29:49 +0000 Received: from mail-dm6nam10on2072.outbound.protection.outlook.com ([40.107.93.72] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQ3o0-004g7Y-Qh for linux-arm-kernel@lists.infradead.org; Tue, 14 Sep 2021 08:28:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mw3jCMBVusTb+TTBbgg4IFXzPs0yokTvi4Td39P5xy96vgx6OGoDZLQ7J+Xf8Bglc+DDNfK2dWdkD1PNCailKC/SB+4GIzUnof8a7YM8I1Ik6TlqI4g34O+Nz9wYSTx4cVKmoUvfQPNqD+e9hgCaf22r0+9rZC/sLSV3/ijqSZwQVhoktECbFVfbcIYiJSWw5dm80kkGGjOek04q9L5PANd71EUe+pb5yobrgFufXznFEwqI8Y6bywKUpXU+CJW8F/Y/e5+YfPaRzngcJbNIr3iWwewpBUFubTsrFPj0DeO0SfJagIdOTnYS2XZ9e8U7tREk5wcH6cVL122aZPViNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/kHxIV5qDHUCBkwAmGnw7yV6WijHa8TNqOV/eE/WFtg=; b=GTE31CnEd0BwKFLuX8pOKPypyl57zj1iu9LnRcPh/DBbI5ah1kNoScvOJNuR2R4ZIXyH/J3dmjDDcxplZq97RCqaNSArgkqgwJZZ2GgzDoxYcG1I3tGrsqOhhS9kPt55xQRlUUgzvJrE+w+LWqtjiCXUZ1ZT4/ZszqaVymoACZ4LNJe3mbyrDqRxR+RLB+kqkFA2RyNNP/oUtlPdDvOPYgxdm26kgOfHkXJK0XvY29WraFv6Dwoghb3y6A0UDnwOOnBIs4zZsDZqmALpPncAK4k9/8eo8VxM7Dmr6ixJWSeoUoqIwrUr+02U4oIbauWmuESfAHnep9NpWJ3vtaGKEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/kHxIV5qDHUCBkwAmGnw7yV6WijHa8TNqOV/eE/WFtg=; b=KWeqeTZlTU6vxTW3bZ+0cZmA0nfPsEHVu8shtrTPQvtgv+LVA9XYr2YmTyjS6QDJ7OPRv8R4TMOmE4jN4N0pMVUf77cR3Wovo1/gZHSzUvNzHLFLp8L7Qvru36J+hdPCQvT0+dPRe8wdeso9sMGMWraVxEeWwRcuTwdkjZhV3as= Received: from SN7PR04CA0021.namprd04.prod.outlook.com (2603:10b6:806:f2::26) by DM5PR02MB3800.namprd02.prod.outlook.com (2603:10b6:4:bb::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Tue, 14 Sep 2021 08:28:38 +0000 Received: from SN1NAM02FT0050.eop-nam02.prod.protection.outlook.com (2603:10b6:806:f2:cafe::a8) by SN7PR04CA0021.outlook.office365.com (2603:10b6:806:f2::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Tue, 14 Sep 2021 08:28:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0050.mail.protection.outlook.com (10.97.5.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4500.14 via Frontend Transport; Tue, 14 Sep 2021 08:28:38 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 14 Sep 2021 01:28:35 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Tue, 14 Sep 2021 01:28:35 -0700 Received: from [10.140.6.13] (port=35510 helo=xhdharinik40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1mQ3nu-00094b-KP; Tue, 14 Sep 2021 01:28:35 -0700 From: Harini Katakam To: , , , CC: , , , , , , , Subject: [PATCH 4/4] dmaengine: zynqmp_dma: Typecast with enum to fix the coverity warning Date: Tue, 14 Sep 2021 13:58:17 +0530 Message-ID: <20210914082817.22311-5-harini.katakam@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210914082817.22311-1-harini.katakam@xilinx.com> References: <20210914082817.22311-1-harini.katakam@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d406210f-afc2-4b90-ad5f-08d97759a6bc X-MS-TrafficTypeDiagnostic: DM5PR02MB3800: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:3826; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7kCwc5dPA3FV4LoQka3m3EBeNM0EfQFehm9MwfnJZQ5tZmvdzUyba22V5HToWRmf+KStHvEbSD5KZPiOSrZxTkvfwyTThRBj9veMsAOIk8w90/Ngb66UlK4w0phE1wrmTay8Yp/LN2ie1CAbkEmGjH499baFDJmsyA5ZPxvBk9sXUXa9pPCNqShziyEWivx3EBetYWKKp4TOzJ66QLL7707rE3e7U+IeSo5yGuJVAjWcoz9/W37psdstlQkMocRLhTQwgLnuT6w5P+wsf8mVVCvEyzfFMW6fjeWclZIokFyqA9GYgBHs4KNbXCmjQPY0ExfzRcvo/gmec8dZqDx/jNZ+Eil9Xkd7S/hHMRncEgA6gf9kK3eBbY3Ubx8KGaJPfrN+/lp52SdXQmsjDcVjDkhtF0cptKqCDCGN+3Dzv3qyG3aFhw/HupN5SWROZn4f7fxMCxZW2NAiEdJRLFnS5RWinfOTNuVI+4oZbrg7ia5GpOsQ6g36Wq78ZdJqnC4JXqfGkk6ivUUOL0n8Izl1jlm0VFytijtlgZ+cMwIqmS+I87Yabzgzp9FfyCbDpiXJ0WLenV4AxNa3nQWHQvlRdTYpnantc/G1XkRCYjt3Kxpf7j9CCZRHeFLgWdmDLdT0VMSnk9s0lIQroIKFZgu394Haw6XIzRqfs0aOe30wg4lcpwgxWS12/mpjxw1iAplyw8GZybPHRlJlnM6/OZJ8Z77xlMwMm45Ergqdci+l7A4= X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(1076003)(36860700001)(356005)(2906002)(426003)(6666004)(7636003)(4326008)(36756003)(336012)(508600001)(82310400003)(8676002)(83380400001)(7696005)(47076005)(186003)(4744005)(36906005)(70586007)(107886003)(316002)(8936002)(5660300002)(26005)(110136005)(54906003)(9786002)(70206006)(44832011)(2616005)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2021 08:28:38.2013 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d406210f-afc2-4b90-ad5f-08d97759a6bc X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0050.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB3800 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210914_012840_925871_2B7CD98F X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Shravya Kumbham Typecast the flags variable with (enum dma_ctrl_flags) in zynqmp_dma_prep_memcpy function to fix the coverity warning. Addresses-Coverity: Event mixed_enum_type. Signed-off-by: Shravya Kumbham Reviewed-by: Radhey Shyam Pandey --- drivers/dma/xilinx/zynqmp_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c index 588460e56ab8..282d01ab402f 100644 --- a/drivers/dma/xilinx/zynqmp_dma.c +++ b/drivers/dma/xilinx/zynqmp_dma.c @@ -849,7 +849,7 @@ static struct dma_async_tx_descriptor *zynqmp_dma_prep_memcpy( zynqmp_dma_desc_config_eod(chan, desc); async_tx_ack(&first->async_tx); - first->async_tx.flags = flags; + first->async_tx.flags = (enum dma_ctrl_flags)flags; return &first->async_tx; }