Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4859809imb; Thu, 7 Mar 2019 02:10:33 -0800 (PST) X-Google-Smtp-Source: APXvYqx+US71vlIpiLDl7vV5WVsQN5NTCmA/2msMCvyiyMWX+e8Yy53BluR++QVavrKONdiarTQ2 X-Received: by 2002:a62:4553:: with SMTP id s80mr11876091pfa.141.1551953433101; Thu, 07 Mar 2019 02:10:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551953433; cv=none; d=google.com; s=arc-20160816; b=iFmxffdc8l13CVYXWE4+rVO16Y2D2ycxUlrO359VQXyyyyP73tQku9t394n92Of6Pz NROoXFRjaiZV17PcnIhF3Njmye1Feb5uLUmHmOAcKbTZIXMV1KrdkAbe+MZxKHdCmnkn n1vco8x1XvIREf/ovKNp2zs97Hup3fNPQO9xEHDSY86HhFnuhoI7lFF7eSR1IJ2BrFcj yHybOrmA5Ci9smLHARZ36ldU7//fBVyMYvzO6WXtCZ0B/TcN4ExGuWxdWlPbJFj1YBDc QVs2EYSvNcD2juS6BytqXWDJphfBiv3daX7YAHKgZv2fR1NLLuE662jexPgjWyN4/2GO TmfQ== 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 :message-id:date:subject:cc:to:from; bh=xJZfOksZVUsqhSt7WQA4C8NwxuVSDBvcjhonCk84h6I=; b=oFOBdbXFZYRZxvra4NNRDYkNsbubtXpquoMhv2/V2X0WrWPm7cEKKN+0T4LE0pYfVa zN1Vn+NaL/9OoCzCledujcT+PBX75P4+t+XFMIbSABMlnEMwy656zWOVHoFIlVn00TNA LtUB/wVw3UJOckOPSh2IQoKpSfLbQ9yufj1/EZ0sFwg0uT66WZMvEr7A3Img8ppO5V9S AxkN3uuUTV32iIqwqI7T0R5HU7WAQQxRMP6QYGLGjSEJy4kupGomlCGKJuoxcvlQD5Nu pF2kL9/2+CzvYCP5mvEAt+nMu9P7B18lrlrsDpNw05ufJrAPdO7SBTLz43XlSTVPxUD3 N72w== ARC-Authentication-Results: i=1; mx.google.com; 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 70si4065856ple.294.2019.03.07.02.10.15; Thu, 07 Mar 2019 02:10:33 -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; 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 S1726217AbfCGKJy (ORCPT + 99 others); Thu, 7 Mar 2019 05:09:54 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:47261 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbfCGKJy (ORCPT ); Thu, 7 Mar 2019 05:09:54 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1MDPuq-1hCFYZ1YRS-00AZ2j; Thu, 07 Mar 2019 11:09:49 +0100 From: Arnd Bergmann To: Ulf Hansson , Robert Jarzmik Cc: Nick Desaulniers , Arnd Bergmann , Daniel Mack , Linus Walleij , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: pxamci: fix enum type confusion Date: Thu, 7 Mar 2019 11:09:19 +0100 Message-Id: <20190307100948.570006-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:dLg/EnprOSV+AG5rIOUAbfhnAkCXqZLaPxorfGVq19dXI7tPAXw f9pQVKwPp07Aqn+Gzq5B17hfMRbkVeAxZYujcCjbvzdUAdKmVYmCljsn5ERFOUqnFn9n5Fy emGnbd3PGeBwnyM37xl+dwVP4R5xRi+35k+Ih2Fhoyt7O9sHMeIESmEBoE9II32Ughg0CqU pLc+DUZkyFqfboTpf74Kg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:HTPr5zcU7jQ=:fCx+jyDj+/sUC9vrD1YFUj fjbSkyTMAnJBQuEynYNoYRGHvIB831+vs08w8/s1rTa8IcXiIqCB9/hzaCzYEK6t7J5T+diPt sqmzsv+sBXTbVJrgycjM99j25BTe0K2msiQr10fVtfwSS1tVHVxKQpThR7mlf53HdRn4a9Nc6 bMWbmHbuVYG0poYnUxmJjKv7vd1f+EEjYoG6os8ljxzBCzsWen0B2EdtW3NTdmRInMnQUf3Ek bd+VSShOGdDGsIor5PItOcrfochsXXNNGui/2oM3zjZST6e7gxvOeAvbgjz2upQrBywE+46tS 0t5u6urmyLS5Lsr6kEW/Bf7Q8smNsuB2zyf1SDEtMqn+ldayOTqCT++guVaYKWrqexDoU2IDp gjSZ8HQXKF6K/YyjtysQzXBZ/mbajqtOBMSQ8joONf8HKQ0Fyhh5wlNjgrf4hXsVUHHGi6RIS zXdzOdeLSm1BEbF9hBtrNYaMOrdTqdF/mlJCE7y2FYmFLE0QaUlEatyiawd0sSKDKLfkAScb8 VUyZhPJMj0M1Ej3tw6+MIzBo/cvWdjCbabNqDYPszt2pFRkgCAAqmXlaXq0KSpI/+WmGrXbbz FdHjNIqmyKkA1OO59EWbPahEfOaSJ4kliu/J4yisjmgUBcZ3WQU0cWpJ+gZ7RzY/IpIc1UP24 moaBfvxN2ms0jTI5jHgkgDMH9hQly8l8GCmEmKWOzev3GGG5ptYB55bPWHPwV6/ZekoMV5OVW PBvOvKmn7qnr28PDXjkPFGQw038sM0fhPN1Ruw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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