From patchwork Thu Nov 2 11:16:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10038515 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CC2536032D for ; Thu, 2 Nov 2017 11:18:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C15B428F01 for ; Thu, 2 Nov 2017 11:18:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5C5628F05; Thu, 2 Nov 2017 11:18:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E9AC28F01 for ; Thu, 2 Nov 2017 11:18:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933381AbdKBLR6 (ORCPT ); Thu, 2 Nov 2017 07:17:58 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:52004 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933175AbdKBLR4 (ORCPT ); Thu, 2 Nov 2017 07:17:56 -0400 Received: from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0MhJrR-1doPO40q6D-00MHo2; Thu, 02 Nov 2017 12:16:57 +0100 From: Arnd Bergmann To: Jaehoon Chung , Ulf Hansson Cc: Arnd Bergmann , Shawn Lin , Douglas Anderson , Addy Ke , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: dw_mmc: make irq flags 'unsigned long' Date: Thu, 2 Nov 2017 12:16:46 +0100 Message-Id: <20171102111655.3834051-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:l8Qq8sjyDdZDttMdNzB5bvjvHylef3PXJwrED1xAvYYhxuEs4Vd eBbRogyKc6MFs2OtUZ7ZuGUbTYm7snu/b307UazZFGs+vVyuIrnEhAoQuZwaoDWHR5lo3pp O8FB5YkTHSc1oxnlG+4lAyIrcsmFBXJ4umuExOGNC+vFicDZKzar0bNqSRRhMAwyouGjtLU X0OS0n4KxpjsJEGWuraaw== X-UI-Out-Filterresults: notjunk:1; V01:K0:YcnCvoMLYtg=:16xtJB6lK2lvjyTjsqOedE F7QlPqhE0jM7HpHe71yVFuI6ag3Cy/023uXDYQHxdHgeBeaEDrHxV7MpKe5Z6LZpZiOcc+R9B VcfFSWLDceQreMu/7BB0OjjWidqWki6z+VcSkUFpl6ZALYY+k1dXY+MEd0dVzshSmwwAA1V+l crzNMiDiDLF6G1SGHxSKN4aAR6hs5D1AE7y8Tb4Wr+wCt8GxbWb2WrYmI4UY9HUgRBUzEItPj b8h9n9g665Ap1Jth75qcnJgsVhMCAMhf4YI6wXqfb6/6/NmQeZU2nAQrpHw8FHJihaOpeyTcU Q7MhqRy9oAh+l74EZuMj/0uNeYPMLcfKzHWMtDiic9nspu/nmahOFl6+LzwJGcdGaZibdQJdC /BbuiI65mPz+M6q5GfNXEyTRUdGnQSAJZ0J1jz04tso2k17tJZIarBm2JskG3/G9cDCL/A6ab uGAT8udeyk5rSDDOxdxhunCgtq5r13nM1i22Ugi7fITPTLKaF/VEGAV6A5sVoEBubg/viXh8A pKQ20x6JCzxsO+j3pb8LvT9TaedA3zdzpBq+FEv3kSRZqIf1bgcOOBC6PToAL+j172S0Jf+Lr NHtyMingBRjo5inJI1AEFhmFqkCTepnDRuvcx3s5LeUgTkHg0gYKy4vJbkZ7QlYiamyIChEM3 8h6ZCqdreVava3tTiA2MlFUImtfDBqy5XdADwjylqyxtBMVxTapdLkh5RPlQpdwojBXuKbKAX K88dU9LaewK+XmjaQwWEmFCqT6j6eazXjG9SbA== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The newly added spin_lock_irqsave() passes an argument of the wrong type, leading to a warning about non-portable code: drivers/mmc/host/dw_mmc.c: In function 'dw_mci_set_drto': include/linux/typecheck.h:11:18: error: comparison of distinct pointer types lacks a cast [-Werror] (void)(&__dummy == &__dummy2); \ drivers/mmc/host/dw_mmc.c:1953:2: note: in expansion of macro 'spin_lock_irqsave' spin_lock_irqsave(&host->irq_lock, irqflags); This changes the type to 'unsigned long' as it should be. Fixes: 80a2a5a7745b ("mmc: dw_mmc: Cleanup the DTO timer like the CTO one") Signed-off-by: Arnd Bergmann --- drivers/mmc/host/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 31f5744a50e0..37b55b095daf 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -1938,7 +1938,7 @@ static void dw_mci_set_drto(struct dw_mci *host) unsigned int drto_clks; unsigned int drto_div; unsigned int drto_ms; - unsigned int irqflags; + unsigned long irqflags; drto_clks = mci_readl(host, TMOUT) >> 8; drto_div = (mci_readl(host, CLKDIV) & 0xff) * 2;