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: 117789 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp1928579edm; Thu, 2 Nov 2017 04:18:00 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RsDY5fzefpQkMTviNVgHe28YxH1oPjNYwZKFFaIAC7t063KXwVDSB6jXx2JYP+RDPXWblh X-Received: by 10.84.240.140 with SMTP id z12mr2888565plk.328.1509621480784; Thu, 02 Nov 2017 04:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509621480; cv=none; d=google.com; s=arc-20160816; b=kEyLuZVJ4+sKtUdX2bGa70odWoW/395vW9S1ncsEKhGULoKkXDKB5MC3Sc886lmNfZ J+bKabE9BfoWW6mwRNlym77zZHKfCaSyIZvQmfA6IbX/MM7bKXAAaLA4/ghyWPCBd/Kb ZC8fd812WMy/nsdQlrf4h2m/KCWm7SZPTvpPJaRyavlMEpT+KecFrRa4Ph2wIaKBH1Fu OpS7Miq4LHb0nGXE8JeXFJGTYcutOXZaoIaI8InSSqlewNNn7js08+WzS808lHveOvYt cjYbEqACXMwNRzb2FwuXlxJyskSzxN+BEQA5q9URDlLWHq2wColrBvAdfUWJsIHhVaG6 7o7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=HZ+hrqHWf6MDYk2lMRoACoY5L4X5hwpHTgLaA/7HCx0=; b=JWwsKl+HNQUs9KtHRRsrI0t7YDiVv5QnzYBJjE5O4h7E3OpNAILPjQdr4IspFNeTUQ rq5/Aa59x18coJheWvE/zKJ+Oh0813PklToYgZX/orfGxbWRu8MliQoci0iU584+SEjS NA7ihoU/9ZVFmlK7o+rO4Mk8Otv2pbAKHToRavzqIy1j0Qj0hmL//Dehlnby6UBchZ55 JfD5NjGlx73EqWJruvXbQQ3HEAMs17Yq4B3ag3NJ+CcnLLvJmoaGimnfukR9Jkfke/Z3 Bmkkm4EqgsNYKX0q2XUKvJXCl4AEqqwR0wIQ1MGnNsquX2AmrGFmc4kDVsJjCs0jGzuq ZMwg== 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 64si3476803pft.267.2017.11.02.04.18.00; Thu, 02 Nov 2017 04:18:00 -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; 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 S933418AbdKBLR7 (ORCPT + 26 others); Thu, 2 Nov 2017 07:17:59 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 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;