Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp52441pja; Fri, 22 Nov 2019 03:20:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyt555Xk0gsTdcSYtPBKeF/iE8NbmSKUfSnz4WBKS9qWh+WAvHo/s8Cdx76TA3z9qqSHr4l X-Received: by 2002:a17:906:938c:: with SMTP id l12mr21212803ejx.135.1574421629000; Fri, 22 Nov 2019 03:20:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574421628; cv=none; d=google.com; s=arc-20160816; b=MSgAcCgRcHkWI6Q41DRXqQLv+5iCEpmOCnUi0xv4LPdMLKBz8JKRZhOwORb3qsFw4p SrO6Fi3DwhxgNA+u3Ut6mz2zxKdj/aq2tQ5GWw/7aYQGGea3Ibz3A5gJ1JnTRrz6AObo ERYDjiJ0myUZsf6g3INPQvDi+boOYXy59ig4SCUZgPJ5fqrd7Gw4S5flogEVnXIgUYsa VYukuOuCBx5i6B6ZG3dmtbwPjWuACJTkW4c82B4usRof2Hyru83gXTQN85qCCpgl4BeH Ia3Rbyob89gGPIA84a098teRLNwIu1Ogc1MuZhfjBOSelUrv1HEjhQjdrbApRl+Au1BZ gRMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MgCVej+ou9o81LgRo8e1+7a45v3F+6WEfchsE3ahvQI=; b=Ya17groleU+gqjAXXmjIziuztBhg9GT6Gttp+NZMvAbozHRMwKLaYLrLxP8iYa5g29 G5k7XfDjvtbngUldC9Y9MtxxpEbJDD5RONqnOkvL2smcwtauxlYMaqT3+L85y9VABv6u 6G446cbnOSPz0PvGWGTYY/45lxkEaPZijx8CLC/C1ZuK8YaLuSEsVoY2TQa7pezTdJZg S7JgRfmJqhpT/erqECZoSf6iNYoIvcNxOFrt2R/a8pN2zW1/Xe0moPXGiym5x9bxQBc2 h3fHmw9/sIaGANDs70yBZxppDO0vJ0g8PWP/o7R7Y0qS3WoUKJk4Z4BNh1eHyNhANpaP rkmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zAtoV8F4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si5268948edj.310.2019.11.22.03.20.05; Fri, 22 Nov 2019 03:20:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zAtoV8F4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730048AbfKVLRu (ORCPT + 99 others); Fri, 22 Nov 2019 06:17:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:57302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729937AbfKVKs1 (ORCPT ); Fri, 22 Nov 2019 05:48:27 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 37D5820637; Fri, 22 Nov 2019 10:48:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574419706; bh=DFdAjxDKTWhb2noNLW6GfraKQGL6VTYbRx3/xkS64kQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zAtoV8F4JGztNE3sSuwFuAeY71QSi/oBko3d5Dq26oZScZ/lcb1S1NYGm8E6/nXuH KZXXBdIMaX64KZp7P/knsn+hliLhrGpIwbzbNO+zA223BAUMro70+QcerTsYGkbFBH lDJ6IYr+6vtEqOwZO9f3RwK9GG2xUMTyqyYU94Z0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , Vinod Koul , Sasha Levin Subject: [PATCH 4.9 167/222] dmaengine: ep93xx: Return proper enum in ep93xx_dma_chan_direction Date: Fri, 22 Nov 2019 11:28:27 +0100 Message-Id: <20191122100914.621164235@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191122100830.874290814@linuxfoundation.org> References: <20191122100830.874290814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor [ Upstream commit 9524d6b265f9b2b9a61fceb2ee2ce1c2a83e39ca ] Clang warns when implicitly converting from one enumerated type to another. Avoid this by using the equivalent value from the expected type. In file included from drivers/dma/ep93xx_dma.c:30: ./include/linux/platform_data/dma-ep93xx.h:88:10: warning: implicit conversion from enumeration type 'enum dma_data_direction' to different enumeration type 'enum dma_transfer_direction' [-Wenum-conversion] return DMA_NONE; ~~~~~~ ^~~~~~~~ 1 warning generated. Reported-by: Nick Desaulniers Signed-off-by: Nathan Chancellor Reviewed-by: Nick Desaulniers Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- include/linux/platform_data/dma-ep93xx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/platform_data/dma-ep93xx.h b/include/linux/platform_data/dma-ep93xx.h index e82c642fa53cd..5913be0793a26 100644 --- a/include/linux/platform_data/dma-ep93xx.h +++ b/include/linux/platform_data/dma-ep93xx.h @@ -84,7 +84,7 @@ static inline enum dma_transfer_direction ep93xx_dma_chan_direction(struct dma_chan *chan) { if (!ep93xx_dma_chan_is_m2p(chan)) - return DMA_NONE; + return DMA_TRANS_NONE; /* even channels are for TX, odd for RX */ return (chan->chan_id % 2 == 0) ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM; -- 2.20.1