From patchwork Sat Jan 5 17:09:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. McKenney" X-Patchwork-Id: 13818 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id DEDCD23E2E for ; Sat, 5 Jan 2013 17:10:07 +0000 (UTC) Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by fiordland.canonical.com (Postfix) with ESMTP id 0B050A196B3 for ; Sat, 5 Jan 2013 17:10:06 +0000 (UTC) Received: by mail-vb0-f53.google.com with SMTP id b23so17421250vbz.40 for ; Sat, 05 Jan 2013 09:10:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-content-scanned:x-cbid:x-gm-message-state; bh=t2kmsIpDwkRxfNLIzG8ZggZZ18Pq3taPZ+wIU2nOfII=; b=g72qIlVa5DqMLN++vkY/9ToPclR4JD0cbHYLRvM3X/0iIdcQC9J6C8sKrCPQNxnJWc N9hccUYu5xVQc36pcxeO3hzbPMuZtQgwXv/LZtaJMDqWBUK8WkjA9wilOnu+nFVEeiD+ fzBLG/yuV1oHrtCw+13jTRDsgcV6G9TI0NwEInpizNyW4mqsPQuZNT1yF3W4dM5SBktb fE50WD0O4Vb0OxgAr2TW2gys603uko7rrtUjN5pI0zgACHhvksy10wLrfIu0zDLKhCC7 NRCQW4ALZF8YnruYJn3dlPJNn8oqpPYEHsOkDe+uSeRppqtZERg2nRSWvFfuMUQb9uLA U7KQ== X-Received: by 10.58.247.132 with SMTP id ye4mr82266763vec.9.1357405806504; Sat, 05 Jan 2013 09:10:06 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp16335veb; Sat, 5 Jan 2013 09:10:05 -0800 (PST) X-Received: by 10.43.125.133 with SMTP id gs5mr42626154icc.54.1357405805531; Sat, 05 Jan 2013 09:10:05 -0800 (PST) Received: from e9.ny.us.ibm.com (e9.ny.us.ibm.com. [32.97.182.139]) by mx.google.com with ESMTPS id aq7si51074766icc.0.2013.01.05.09.10.05 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Jan 2013 09:10:05 -0800 (PST) Received-SPF: pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.182.139 as permitted sender) client-ip=32.97.182.139; Authentication-Results: mx.google.com; spf=pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.182.139 as permitted sender) smtp.mail=paulmck@linux.vnet.ibm.com Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 5 Jan 2013 12:10:04 -0500 Received: from d01dlp02.pok.ibm.com (9.56.250.167) by e9.ny.us.ibm.com (192.168.1.109) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sat, 5 Jan 2013 12:10:03 -0500 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id AC5406E803C for ; Sat, 5 Jan 2013 12:10:01 -0500 (EST) Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r05HA2eZ330836 for ; Sat, 5 Jan 2013 12:10:02 -0500 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r05H9vP0017793 for ; Sat, 5 Jan 2013 10:10:02 -0700 Received: from paulmck-ThinkPad-W500 ([9.80.23.97]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r05H9j6h017217; Sat, 5 Jan 2013 10:09:51 -0700 Received: by paulmck-ThinkPad-W500 (Postfix, from userid 1000) id 63A7FE46EA; Sat, 5 Jan 2013 09:09:40 -0800 (PST) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: mingo@elte.hu, laijs@cn.fujitsu.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@polymtl.ca, josh@joshtriplett.org, niv@us.ibm.com, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, Valdis.Kletnieks@vt.edu, dhowells@redhat.com, edumazet@google.com, darren@dvhart.com, fweisbec@gmail.com, sbw@mit.edu, patches@linaro.org, "Paul E. McKenney" Subject: [PATCH tip/core/rcu 2/6] rcu: Make rcu_is_cpu_rrupt_from_idle helper functions static Date: Sat, 5 Jan 2013 09:09:34 -0800 Message-Id: <1357405778-13903-2-git-send-email-paulmck@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1357405778-13903-1-git-send-email-paulmck@linux.vnet.ibm.com> References: <20130105170920.GA13766@linux.vnet.ibm.com> <1357405778-13903-1-git-send-email-paulmck@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13010517-7182-0000-0000-000004366669 X-Gm-Message-State: ALoCoQn/p7yAwmpLEGpv6AtsYOqkuLIfC1idFqMm9QzRQaNwrncGIEvEU1mPHrCTqEKYKHbLEDu8 From: Josh Triplett Both rcutiny and rcutree define a helper function named rcu_is_cpu_rrupt_from_idle(), each used exactly once, later in the same file. This commit therefore declares these helper functions static. Signed-off-by: Josh Triplett Signed-off-by: Paul E. McKenney --- kernel/rcutiny.c | 2 +- kernel/rcutree.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/rcutiny.c b/kernel/rcutiny.c index e7dce58..9f72a0f 100644 --- a/kernel/rcutiny.c +++ b/kernel/rcutiny.c @@ -193,7 +193,7 @@ EXPORT_SYMBOL(rcu_is_cpu_idle); * interrupts don't count, we must be running at the first interrupt * level. */ -int rcu_is_cpu_rrupt_from_idle(void) +static int rcu_is_cpu_rrupt_from_idle(void) { return rcu_dynticks_nesting <= 1; } diff --git a/kernel/rcutree.c b/kernel/rcutree.c index e441b77..cceda76 100644 --- a/kernel/rcutree.c +++ b/kernel/rcutree.c @@ -727,7 +727,7 @@ EXPORT_SYMBOL_GPL(rcu_lockdep_current_cpu_online); * interrupt from idle, return true. The caller must have at least * disabled preemption. */ -int rcu_is_cpu_rrupt_from_idle(void) +static int rcu_is_cpu_rrupt_from_idle(void) { return __get_cpu_var(rcu_dynticks).dynticks_nesting <= 1; }