Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp314523img; Mon, 18 Mar 2019 03:54:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyQnaormcfU56tKp8C5c0pFwvTCxNc2rDD04ftIaFXuXduN1PO1tR9SCVyYRu320Wd79JM X-Received: by 2002:a63:66c4:: with SMTP id a187mr15944402pgc.369.1552906449660; Mon, 18 Mar 2019 03:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552906449; cv=none; d=google.com; s=arc-20160816; b=MKCOz9Vtbn/TCO5saHZWZDdBDhbDhGZLBHvUy6pibx4YKeqoqkMZ95pm+fzxS4TBvi gJQ+EpsUYt/hgiuk6VU/B1b0i8F5MzD44zosms0ybzyz2PdKY5pEzxeyOkYom9Pbt1Sy mXvazj8NEeVroSzKxfEh0xUOcBkm2RPkFkRgX4FDTuJXWkhQ4f8zTOeGJvD2lUzq1sk8 uPBAi80H8GQdZyX1g/jA1aRLE2SYbBJbJ8Hkp9fTq6EpEHMawOAKloc8d5ZavToEKA7r E9VMJYed2f8vG6a85CeSTnpk6RfpsyfLQVISWGs+1vr69DV7GX/wpX1s+cBDg9jVOx03 fyWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NBVJIce5DakwzoiXVSQ5+lEX7UhvtkC0Ee/wHdQ8nGc=; b=WOfvH6qzr39FQ3F8irtgFvHkVmyYGsdpo9H2wNcrQfnc0rJuUd2TDfA/YadR9bn7O6 KLM7ZtQOLsc5bqwnQsYLrhyFlqtnOBexnhNxQfxsOIWlEwjZ8sIxwAfAx9+KHRYP61Sp fBB1x0S3nlsmoLYPiacw2F0Yjk4MYBpffGxgEw4tsA/K1kt96CjDldTwEu2HKY1epdeo YqIQxHqINpIF5dbBWpbBORl8IdGNW+em4tamRISWhPeePxetYT7xQGKR9uIkM98F6TOg W+WovyfWHlw6MkviedYW2KcQalxW+3Mulil8ONHjtDiGfOcuQtj5trCpp+QhnLw0l7Q2 iMaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LfHXM4sl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u137si5180097pgc.467.2019.03.18.03.53.54; Mon, 18 Mar 2019 03:54:09 -0700 (PDT) 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=@linaro.org header.s=google header.b=LfHXM4sl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726663AbfCRKwD (ORCPT + 99 others); Mon, 18 Mar 2019 06:52:03 -0400 Received: from mail-ua1-f65.google.com ([209.85.222.65]:34397 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbfCRKwD (ORCPT ); Mon, 18 Mar 2019 06:52:03 -0400 Received: by mail-ua1-f65.google.com with SMTP id c6so2635585uan.1 for ; Mon, 18 Mar 2019 03:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NBVJIce5DakwzoiXVSQ5+lEX7UhvtkC0Ee/wHdQ8nGc=; b=LfHXM4slujme97ITPmx5wAypWTMHwIY1r4hbX/AcsouDotB2egBhskalOJpqgPBVuf KuejdtLvRfjbs1tYDOCZRP1UBeweFb0o8ivYsKf481tl/Vcg1LQ97A8pu4lhMFdhNl4b uvJXkv0CuQ/fz9gLT1JmFlEFn5UQoQ7D8vXql4FC1bKlFvF/J7KxxbnQeoQUqsxQuQ0D dwGGl5P+qmH+KBySc0D01Qs0HSB3nRqhga4WdFAa/8+cbtiiaqMzQQe2Fl73YUgeFey9 LCZK9cxb1EqHwo82/6aKARsh7KVEWGE/dVwwYf4cp3l/eJnHDkxdI2H4lvIjNk0+2gr/ ax0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NBVJIce5DakwzoiXVSQ5+lEX7UhvtkC0Ee/wHdQ8nGc=; b=SgwEXujhl5ZKnqU9sC0/0GGSTovkQ57eyJ8kPo3EiyRIs9UW8F6VrXd95XPHpXbemV 6sTMvfzAXwGLXCB1f661MLX0cEbRFVVzU0OE28EDd+vA4967Wjh4YeqrUYhOLLkspVIG 4C4+vl9/uBEl/K0SQWMIPzVbJSd+5dpL1N503E1edrtxLy7/u8x/nQYU3FZ/0p9yyRmR b9EgH9zc4T+mVEg/HMRWlb4oANGBTShLIFB97kgJboqmV869HFhho7UkCzrNSoqNnJpN DKbnU4JsxlsFHT8FdrV6ZQEiwTh8i3nSsxgThXj/nEF8IAqT9VVb9QakOTVWzmDA3eG7 onHg== X-Gm-Message-State: APjAAAWCK7NMgAQHnjRB9C22ZdXP5dGw0OubyOzwqx7Igg7oalTHY/DJ hwqiRGLJQQ/vzyJ8hwfxC2cW5XR6kvRbJxEGP/ZoHg== X-Received: by 2002:ab0:6819:: with SMTP id z25mr5850110uar.0.1552906322061; Mon, 18 Mar 2019 03:52:02 -0700 (PDT) MIME-Version: 1.0 References: <20190307100948.570006-1-arnd@arndb.de> In-Reply-To: <20190307100948.570006-1-arnd@arndb.de> From: Ulf Hansson Date: Mon, 18 Mar 2019 11:51:26 +0100 Message-ID: Subject: Re: [PATCH] mmc: pxamci: fix enum type confusion To: Arnd Bergmann Cc: Robert Jarzmik , Nick Desaulniers , Daniel Mack , Linus Walleij , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Mar 2019 at 11:09, Arnd Bergmann wrote: > > clang points out several instances of mismatched types in this drivers, > all coming from a single declaration: > > drivers/mmc/host/pxamci.c:193:15: error: implicit conversion from enumeration type 'enum dma_transfer_direction' to > different enumeration type 'enum dma_data_direction' [-Werror,-Wenum-conversion] > direction = DMA_DEV_TO_MEM; > ~ ^~~~~~~~~~~~~~ > drivers/mmc/host/pxamci.c:212:62: error: implicit conversion from enumeration type 'enum dma_data_direction' to > different enumeration type 'enum dma_transfer_direction' [-Werror,-Wenum-conversion] > tx = dmaengine_prep_slave_sg(chan, data->sg, host->dma_len, direction, > > The behavior is correct, so this must be a simply typo from > dma_data_direction and dma_transfer_direction being similarly named > types with a similar purpose. > > Fixes: 6464b7140951 ("mmc: pxamci: switch over to dmaengine use") > Signed-off-by: Arnd Bergmann Applied for fixes and by adding a stable tag, thanks! Kind regards Uffe > --- > drivers/mmc/host/pxamci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c > index c907bf502a12..c1d3f0e38921 100644 > --- a/drivers/mmc/host/pxamci.c > +++ b/drivers/mmc/host/pxamci.c > @@ -162,7 +162,7 @@ static void pxamci_dma_irq(void *param); > static void pxamci_setup_data(struct pxamci_host *host, struct mmc_data *data) > { > struct dma_async_tx_descriptor *tx; > - enum dma_data_direction direction; > + enum dma_transfer_direction direction; > struct dma_slave_config config; > struct dma_chan *chan; > unsigned int nob = data->blocks; > -- > 2.20.0 >