From 59d9dea86d33704e8db77cb93267559dc252261f 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 --- src/compat/padata/padata.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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-59-g8ed1b