From patchwork Fri Jan 15 19:21:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 59893 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp739907lbb; Fri, 15 Jan 2016 11:27:26 -0800 (PST) X-Received: by 10.98.65.203 with SMTP id g72mr17572206pfd.44.1452886034939; Fri, 15 Jan 2016 11:27:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si18133657pap.201.2016.01.15.11.27.14; Fri, 15 Jan 2016 11:27:14 -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 S1754437AbcAOT1L (ORCPT + 4 others); Fri, 15 Jan 2016 14:27:11 -0500 Received: from mail-lb0-f173.google.com ([209.85.217.173]:34321 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753562AbcAOT1H (ORCPT ); Fri, 15 Jan 2016 14:27:07 -0500 Received: by mail-lb0-f173.google.com with SMTP id cl12so102771403lbc.1 for ; Fri, 15 Jan 2016 11:27:06 -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=747X0pSi/exxAyY6gXk27gU+0qUClwz+iuN8zv4aR4s=; b=ah4xUxJSzPQQqNVAPr5/SaBZB7AyxeC8fBqFbV7rVyAcQJvGW6wr6Qdk3uZQgsGXSJ nlY+4WZslym9YvA1Bw8z46FpDf2OTdPVsEDTorzcUD5FZAFO37cXbqJxrcCivhedtFlS J4U3akCT0oY79ubRv9mMDf345iSwEDFXUov+s= 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=747X0pSi/exxAyY6gXk27gU+0qUClwz+iuN8zv4aR4s=; b=es8tZK8fvVTi/BwZKdjLCnzTdGwTc0W7O60e/WN/OTBATzOARoFk6Iedeay2IP+GEO BgaiqlyhJhFN6Rshji4v5jXpFRu5aMsGYDT5bXMaHPeVb+uI3/RZb+frjIHdKM8G+ZL3 TXOC89JlNrhWpg+nQH8QBafvgoTjjfQ3VJBAnLGfi3vri070XSliiKGky0zBOynfeL8E dQJncOQnRZBJbPV/8wFg/JbvI5C+KqwQdtN4HtZQ9Cx6o2nkeTOImZHunPQcfdGgskRw h1ra5Rg+pQLC4ax1o1nXwKrTp88Ivf3DwdV42g5fcdzgpWh5lhEOHrw3SlDIr6CxN2YN XJpQ== X-Gm-Message-State: ALoCoQmGG1+59gvCOs3FDtpvmuLhXeoac3dDsxGzo5gfDs0xzpgMHqQCo2Ix1akyRou3dmUWwWfdLx8SnhckEKu5TgSBppzcGA== X-Received: by 10.112.160.232 with SMTP id xn8mr3526810lbb.22.1452886025673; Fri, 15 Jan 2016 11:27:05 -0800 (PST) Received: from localhost (c-932171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.147]) by smtp.gmail.com with ESMTPSA id tv1sm1167962lbb.4.2016.01.15.11.27.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jan 2016 11:27:05 -0800 (PST) From: Anders Roxell To: bigeasy@linutronix.de Cc: linux-rt-users@vger.kernel.org, khilman@kernel.org, Anders Roxell Subject: [PATCH 7/9] kernel/time: hrtimer: fix forward declaration Date: Fri, 15 Jan 2016 20:21:11 +0100 Message-Id: <1452885673-30891-8-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 Forward declare function hrtimer_wakeup before use. Used allmodconfig+CONFIG_OF=n and this caused a compilation error without this fix: ../kernel/time/hrtimer.c: In function '__hrtimer_run_queues': ../kernel/time/hrtimer.c:1464:27: error: 'hrtimer_wakeup' undeclared (first use in this function) timer->function == hrtimer_wakeup ? Signed-off-by: Anders Roxell --- kernel/time/hrtimer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 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/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index fdd2b85..138d6f9 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -1436,6 +1436,8 @@ static inline int hrtimer_rt_defer(struct hrtimer *timer) { return 0; } #endif +static enum hrtimer_restart hrtimer_wakeup(struct hrtimer *timer); + static void __hrtimer_run_queues(struct hrtimer_cpu_base *cpu_base, ktime_t now) { struct hrtimer_clock_base *base = cpu_base->clock_base; @@ -1490,8 +1492,6 @@ static void __hrtimer_run_queues(struct hrtimer_cpu_base *cpu_base, ktime_t now) raise_softirq_irqoff(HRTIMER_SOFTIRQ); } -static enum hrtimer_restart hrtimer_wakeup(struct hrtimer *timer); - #ifdef CONFIG_HIGH_RES_TIMERS /*