Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5082247imb; Thu, 7 Mar 2019 07:22:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwx4HAgT7Pj5QQpJ+CmJsQyUu4U9ddPSlnaWZgSqzSMIzkWWF5G1aaw6dk0p04xf+3e6Qws X-Received: by 2002:a63:ec4c:: with SMTP id r12mr11894924pgj.379.1551972152914; Thu, 07 Mar 2019 07:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551972152; cv=none; d=google.com; s=arc-20160816; b=yGgpF98r3XNAhzPZRF8/ARnEZdhhEHbFjMwwcKQ1/9XJSxuzcmRdrKoKpxgbgN5/Dz /rmGj4wDPypD9H5T53z/lIVkMq8SmYTEBbLQDOnydrwTBju71JkpodRx85OXOxhw7ePS Osz72wpO1g2oSTLqB5/IuXQ4aiF0BBWcBnDtkz1KFXw/lVIMAhUehv6tdLIM0HoWx+cH HqG+gstpY0PGMtBrYWTEtF2UF7xMek96hA47G9iQXjEevx2eCXYIoaOUHWkX1W0K73vz QnJ2DIrIvEfnICqeS+U/bdl3fagzHHpmzn7YDwUx075cybipF3dpPQW6Y1boibz0qfSu V86g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=D092XwkeKdHq49RirItCcv0nHLZtgssXSduKzzpP7W4=; b=EnMpaHagqrdO5M9xJuxdt6ZU50nLsbl85eHfG9OQhiKAwySniziVWyVYxOVr8JRF0A P81ibTKY08wktXzdig/AoOceAsrWfJ1IDhFu3IgjZgq4oC4ju8BFROlahQR6HEp0/tdX hEKHZeKuKpQ5Ed+axD90CARi3dDhoBNNDPRnNKqwlJ7sSbMnWaRezmH4XKR7T5qBLLGG cPsCru96vkmHGJlFf33bkW37q3YjlhO4cFZPiTXxEEPlxT+1H4etliGb+QWpOHxXMSaL IKbYUh7Vr44j9FefC6i1GBKvycnhEH6GX4kDha5SE+PDsa6KNlheFejgVkcU5IeBVxcA CX3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="JJ/Dkr36"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 17si4170996pgu.262.2019.03.07.07.22.17; Thu, 07 Mar 2019 07:22:32 -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=@gmail.com header.s=20161025 header.b="JJ/Dkr36"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726502AbfCGPUf (ORCPT + 99 others); Thu, 7 Mar 2019 10:20:35 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:45172 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbfCGPUe (ORCPT ); Thu, 7 Mar 2019 10:20:34 -0500 Received: by mail-ed1-f66.google.com with SMTP id f19so13753508eds.12; Thu, 07 Mar 2019 07:20:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=D092XwkeKdHq49RirItCcv0nHLZtgssXSduKzzpP7W4=; b=JJ/Dkr36Jea2tEr9zi9JTMhH1JKe3uPDBQttu2Qmp/cZesPN+B5vm8ghJb/Brhs9Uq +73AapJm1ll0QHnRo/3G467foaAxLK9+0nDOQ9Qt4Hcm9hvoteGyXhjxyHjPKVf6tITU 6gIKeKLJky356eNNutBCSlR6SsEANlHUh86hLBBKEgQkEH/yYCmktx4kcfmnT5o1+x9e 6r6tISNqYjf5MRrUt+G2UMgod6oRRDtdM+UkTmm3orhijoUYENWjgW7m5l1OUZBk7zq2 XP9SK7XzIC/7tqoC3Tw5jL37G1UTC2gAwDfeASZjw8Yy3a6U9wI/h3mzz7DwX8fAZuwj RRVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=D092XwkeKdHq49RirItCcv0nHLZtgssXSduKzzpP7W4=; b=LP5mCekjMqGToLBMcRUO9fJfaVXitHKZqJ9m4+0jZxSm3NsjtaKO3iQXcvTdiROTS/ 7piBILL5h+mHgK6l2iavfIK2if64MsowAQZwcFy/DbgVYlOYaqPoCYpdGo/ZVfk7N0uZ aTDqaugIETBPHtbZ68JH631nB0ZINK06eYmWEafY7a+6Xw7QIaZzMtAp0p6SHhCHEd8M /JqHwQ8up+OBShEVMEFVDVW+PcyWdro4O+7HW2hbw2NceIDi97fET/HKJmlWek4Q7bBg jCctqIlriNwAcIf/5NHH4WtqpM46Tohrgvlb7jTjGZTt4td/LuMDqiyog5ZqcVowaU5/ dA6A== X-Gm-Message-State: APjAAAWHgZTf1RYVZwGbNVlCW8xIGmVenZvFnBdA/L5hT1sPefpX4jUA ENLnBxEQtVhr1wn6IB7rQ1w= X-Received: by 2002:a50:a550:: with SMTP id z16mr28735790edb.95.1551972032747; Thu, 07 Mar 2019 07:20:32 -0800 (PST) Received: from archlinux-ryzen ([2a01:4f9:2a:1fae::2]) by smtp.gmail.com with ESMTPSA id f40sm1392722eda.25.2019.03.07.07.20.31 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 07 Mar 2019 07:20:31 -0800 (PST) Date: Thu, 7 Mar 2019 08:20:29 -0700 From: Nathan Chancellor To: Arnd Bergmann Cc: Ulf Hansson , Robert Jarzmik , Nick Desaulniers , Daniel Mack , Linus Walleij , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mmc: pxamci: fix enum type confusion Message-ID: <20190307152029.GD20201@archlinux-ryzen> References: <20190307100948.570006-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190307100948.570006-1-arnd@arndb.de> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 07, 2019 at 11:09:19AM +0100, 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 Reviewed-by: Nathan Chancellor > --- > 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 >