From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S943514AbdEZIhK (ORCPT ); Fri, 26 May 2017 04:37:10 -0400 Received: from terminus.zytor.com ([65.50.211.136]:47409 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934931AbdEZIhG (ORCPT ); Fri, 26 May 2017 04:37:06 -0400 Date: Fri, 26 May 2017 01:34:27 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: mingo@kernel.org, steffen.klassert@secunet.com, paulmck@linux.vnet.ibm.com, hpa@zytor.com, linux-kernel@vger.kernel.org, rostedt@goodmis.org, tglx@linutronix.de, bigeasy@linutronix.de, peterz@infradead.org Reply-To: paulmck@linux.vnet.ibm.com, hpa@zytor.com, steffen.klassert@secunet.com, mingo@kernel.org, bigeasy@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, tglx@linutronix.de, linux-kernel@vger.kernel.org In-Reply-To: <20170524081547.491457256@linutronix.de> References: <20170524081547.491457256@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:smp/hotplug] padata: Make padata_alloc() static Git-Commit-ID: 9596695ee1e7eedd743c43811fe68299eb005b5c X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 9596695ee1e7eedd743c43811fe68299eb005b5c Gitweb: http://git.kernel.org/tip/9596695ee1e7eedd743c43811fe68299eb005b5c Author: Thomas Gleixner AuthorDate: Wed, 24 May 2017 10:15:17 +0200 Committer: Thomas Gleixner CommitDate: Fri, 26 May 2017 10:10:37 +0200 padata: Make padata_alloc() static No users outside of padata.c Signed-off-by: Thomas Gleixner Tested-by: Paul E. McKenney Acked-by: Ingo Molnar Cc: Steffen Klassert Cc: Peter Zijlstra Cc: Sebastian Siewior Cc: Steven Rostedt Cc: linux-crypto@vger.kernel.org Link: http://lkml.kernel.org/r/20170524081547.491457256@linutronix.de --- include/linux/padata.h | 3 --- kernel/padata.c | 32 ++++++++++++++++---------------- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/include/linux/padata.h b/include/linux/padata.h index 0f9e567..2f9c1f9 100644 --- a/include/linux/padata.h +++ b/include/linux/padata.h @@ -166,9 +166,6 @@ struct padata_instance { extern struct padata_instance *padata_alloc_possible( struct workqueue_struct *wq); -extern struct padata_instance *padata_alloc(struct workqueue_struct *wq, - const struct cpumask *pcpumask, - const struct cpumask *cbcpumask); extern void padata_free(struct padata_instance *pinst); extern int padata_do_parallel(struct padata_instance *pinst, struct padata_priv *padata, int cb_cpu); diff --git a/kernel/padata.c b/kernel/padata.c index ac8f1e5..0c708f6 100644 --- a/kernel/padata.c +++ b/kernel/padata.c @@ -934,19 +934,6 @@ static struct kobj_type padata_attr_type = { }; /** - * padata_alloc_possible - Allocate and initialize padata instance. - * Use the cpu_possible_mask for serial and - * parallel workers. - * - * @wq: workqueue to use for the allocated padata instance - */ -struct padata_instance *padata_alloc_possible(struct workqueue_struct *wq) -{ - return padata_alloc(wq, cpu_possible_mask, cpu_possible_mask); -} -EXPORT_SYMBOL(padata_alloc_possible); - -/** * padata_alloc - allocate and initialize a padata instance and specify * cpumasks for serial and parallel workers. * @@ -954,9 +941,9 @@ EXPORT_SYMBOL(padata_alloc_possible); * @pcpumask: cpumask that will be used for padata parallelization * @cbcpumask: cpumask that will be used for padata serialization */ -struct padata_instance *padata_alloc(struct workqueue_struct *wq, - const struct cpumask *pcpumask, - const struct cpumask *cbcpumask) +static struct padata_instance *padata_alloc(struct workqueue_struct *wq, + const struct cpumask *pcpumask, + const struct cpumask *cbcpumask) { struct padata_instance *pinst; struct parallel_data *pd = NULL; @@ -1011,6 +998,19 @@ err: } /** + * padata_alloc_possible - Allocate and initialize padata instance. + * Use the cpu_possible_mask for serial and + * parallel workers. + * + * @wq: workqueue to use for the allocated padata instance + */ +struct padata_instance *padata_alloc_possible(struct workqueue_struct *wq) +{ + return padata_alloc(wq, cpu_possible_mask, cpu_possible_mask); +} +EXPORT_SYMBOL(padata_alloc_possible); + +/** * padata_free - free a padata instance * * @padata_inst: padata instance to free