From patchwork Fri Jan 15 19:21:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 59892 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp739882lbb; Fri, 15 Jan 2016 11:27:24 -0800 (PST) X-Received: by 10.98.86.221 with SMTP id h90mr17340954pfj.97.1452886033871; Fri, 15 Jan 2016 11:27:13 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lo7si18211290pab.51.2016.01.15.11.27.13; Fri, 15 Jan 2016 11:27:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-rt-users-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-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-rt-users-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754412AbcAOT1M (ORCPT + 4 others); Fri, 15 Jan 2016 14:27:12 -0500 Received: from mail-lf0-f52.google.com ([209.85.215.52]:34446 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754273AbcAOT1J (ORCPT ); Fri, 15 Jan 2016 14:27:09 -0500 Received: by mail-lf0-f52.google.com with SMTP id 17so86669179lfz.1 for ; Fri, 15 Jan 2016 11:27:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+DiH4NYN4RH9OK7mLqt+XRwQ3W5YI9JyI4lMGN0Qu7A=; b=CNKC6yhennu+TePlVOjgxxIAj/eGz/Abp606Fw3HWvnG1Tykab+NS/YpLLGIWiOTID sGaVwmcx9LSfDDyOoh+9pwhJdoDgGJYUZeBBCv8FH3JBY4WHPTn628FJD1H7MHr4LFau RW1iAJtSwMN3L2TCZqRtKuRYWUty8y9XPhlLo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+DiH4NYN4RH9OK7mLqt+XRwQ3W5YI9JyI4lMGN0Qu7A=; b=R1w43MrGgwDBiEYp6UU44iM1+fiyNzM5DmIsiyuUTvNCes/5SF1TXaOTrreOc8U0qO OSdWGvgmuGVy+Xs1ei2+pCfEHh96HGENx6H/9tL9Poj4Nn3QLErfNQOBdh9o9AqHUz6O NGRkCoDfVtS4XkYBAiMyKJHNPxzE4rxGvYjRRezj7f5B2oZyoJZNlD5RGHT1sZ0g4wWn RvXL4qAIrrOG3tBH7qnfqBnCHplEkilc8m4JRXShQ48QLjXSoRe4xeSf/9bHIqW3Yomk N57UqFNNZxhw2LkHbiihNsaEeTI5GSpz9fEsgNNv+CIboLJzvWBFs9cJ6lOZCUgGlBR7 uVCg== X-Gm-Message-State: ALoCoQmDJConKoNIVEdMFvkccl66ou9Vi4wpuUbgCKGUi4k3QcxqP03cmMpTROqIvcVp37uJ4YlUQwTuSJGtnEr76GX/D3qAAg== X-Received: by 10.25.155.194 with SMTP id d185mr4167155lfe.8.1452886028400; Fri, 15 Jan 2016 11:27:08 -0800 (PST) Received: from localhost (c-932171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.147]) by smtp.gmail.com with ESMTPSA id l67sm1570079lfi.2.2016.01.15.11.27.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jan 2016 11:27:07 -0800 (PST) From: Anders Roxell To: bigeasy@linutronix.de Cc: linux-rt-users@vger.kernel.org, khilman@kernel.org, Anders Roxell Subject: [PATCH 9/9] driver/gpio: gpio-omap: fix incompatible pointer type Date: Fri, 15 Jan 2016 20:21:13 +0100 Message-Id: <1452885673-30891-10-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1452885673-30891-1-git-send-email-anders.roxell@linaro.org> References: <1452885673-30891-1-git-send-email-anders.roxell@linaro.org> Sender: linux-rt-users-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rt-users@vger.kernel.org Used multi_v7_defconfig+PREEMPT_RT_FULL=y and this caused a compilation warning without this fix: ../drivers/gpio/gpio-omap.c: In function 'omap_gpio_runtime_resume': ../drivers/gpio/gpio-omap.c:1398:4: warning: passing argument 1 of 'rt_spin_unlock' from incompatible pointer type [enabled by default] In file included from ../include/linux/spinlock.h:290:0, from ../include/linux/seqlock.h:35, from ../include/linux/time.h:5, from ../include/linux/stat.h:18, from ../include/linux/module.h:10, from ../drivers/gpio/gpio-omap.c:16: ../include/linux/spinlock_rt.h:24:56: note: expected 'struct spinlock_t *' but argument is of type 'struct raw_spinlock_t *' Signed-off-by: Anders Roxell --- drivers/gpio/gpio-omap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 004888b..f3028e7 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1395,7 +1395,7 @@ static int omap_gpio_runtime_resume(struct device *dev) if (c != bank->context_loss_count) { omap_gpio_restore_context(bank); } else { - spin_unlock_irqrestore(&bank->lock, flags); + raw_spin_unlock_irqrestore(&bank->lock, flags); return 0; } }