From 04f54ca8e8466ceedfbd7f0e95ea8caee30c6076 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 7 Sep 2017 16:30:53 +0200 Subject: compat: fix padata to work with 4.13 Signed-off-by: Jason A. Donenfeld --- src/compat/padata/padata.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/compat') diff --git a/src/compat/padata/padata.c b/src/compat/padata/padata.c index ece0ec7..fa6acac 100644 --- a/src/compat/padata/padata.c +++ b/src/compat/padata/padata.c @@ -819,18 +819,6 @@ static struct kobj_type padata_attr_type = { .release = padata_sysfs_release, }; -/** - * 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); -} - /** * padata_alloc - allocate and initialize a padata instance and specify * cpumasks for serial and parallel workers. @@ -892,6 +880,18 @@ err: return NULL; } +/** + * 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); +} + /** * padata_free - free a padata instance * -- cgit v1.2.3