summaryrefslogtreecommitdiffhomepage
path: root/src/compat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-09-07 16:30:53 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-09-07 16:30:53 +0200
commit04f54ca8e8466ceedfbd7f0e95ea8caee30c6076 (patch)
tree10a05f4cf047ee81009d3df38747f7a717cd4cce /src/compat
parentbbf116c0cde4b2ea27c38dbcc9ab296588c8815f (diff)
compat: fix padata to work with 4.13
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/padata/padata.c24
1 files 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
@@ -820,18 +820,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);
-}
-
-/**
* padata_alloc - allocate and initialize a padata instance and specify
* cpumasks for serial and parallel workers.
*
@@ -893,6 +881,18 @@ 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);
+}
+
+/**
* padata_free - free a padata instance
*
* @padata_inst: padata instance to free