diff options
| author | 2017-09-07 16:30:53 +0200 | |
|---|---|---|
| committer | 2017-09-07 16:30:53 +0200 | |
| commit | 04f54ca8e8466ceedfbd7f0e95ea8caee30c6076 (patch) | |
| tree | 10a05f4cf047ee81009d3df38747f7a717cd4cce | |
| parent | socket: improve reply-to-src algorithm (diff) | |
| download | wireguard-linux-compat-04f54ca8e8466ceedfbd7f0e95ea8caee30c6076.tar.xz wireguard-linux-compat-04f54ca8e8466ceedfbd7f0e95ea8caee30c6076.zip | |
compat: fix padata to work with 4.13
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
| -rw-r--r-- | src/compat/padata/padata.c | 24 |
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 |
