Commit 2c9858ec authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Tejun Heo

workqueue: Make alloc/apply/free_workqueue_attrs() static

None of those functions have any users outside of workqueue.c. Confine
them.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 249155c2
...@@ -435,10 +435,6 @@ struct workqueue_struct *alloc_workqueue(const char *fmt, ...@@ -435,10 +435,6 @@ struct workqueue_struct *alloc_workqueue(const char *fmt,
extern void destroy_workqueue(struct workqueue_struct *wq); extern void destroy_workqueue(struct workqueue_struct *wq);
struct workqueue_attrs *alloc_workqueue_attrs(gfp_t gfp_mask);
void free_workqueue_attrs(struct workqueue_attrs *attrs);
int apply_workqueue_attrs(struct workqueue_struct *wq,
const struct workqueue_attrs *attrs);
int workqueue_set_unbound_cpumask(cpumask_var_t cpumask); int workqueue_set_unbound_cpumask(cpumask_var_t cpumask);
extern bool queue_work_on(int cpu, struct workqueue_struct *wq, extern bool queue_work_on(int cpu, struct workqueue_struct *wq,
......
...@@ -3329,7 +3329,7 @@ EXPORT_SYMBOL_GPL(execute_in_process_context); ...@@ -3329,7 +3329,7 @@ EXPORT_SYMBOL_GPL(execute_in_process_context);
* *
* Undo alloc_workqueue_attrs(). * Undo alloc_workqueue_attrs().
*/ */
void free_workqueue_attrs(struct workqueue_attrs *attrs) static void free_workqueue_attrs(struct workqueue_attrs *attrs)
{ {
if (attrs) { if (attrs) {
free_cpumask_var(attrs->cpumask); free_cpumask_var(attrs->cpumask);
...@@ -3346,7 +3346,7 @@ void free_workqueue_attrs(struct workqueue_attrs *attrs) ...@@ -3346,7 +3346,7 @@ void free_workqueue_attrs(struct workqueue_attrs *attrs)
* *
* Return: The allocated new workqueue_attr on success. %NULL on failure. * Return: The allocated new workqueue_attr on success. %NULL on failure.
*/ */
struct workqueue_attrs *alloc_workqueue_attrs(gfp_t gfp_mask) static struct workqueue_attrs *alloc_workqueue_attrs(gfp_t gfp_mask)
{ {
struct workqueue_attrs *attrs; struct workqueue_attrs *attrs;
...@@ -4033,7 +4033,7 @@ static int apply_workqueue_attrs_locked(struct workqueue_struct *wq, ...@@ -4033,7 +4033,7 @@ static int apply_workqueue_attrs_locked(struct workqueue_struct *wq,
* *
* Return: 0 on success and -errno on failure. * Return: 0 on success and -errno on failure.
*/ */
int apply_workqueue_attrs(struct workqueue_struct *wq, static int apply_workqueue_attrs(struct workqueue_struct *wq,
const struct workqueue_attrs *attrs) const struct workqueue_attrs *attrs)
{ {
int ret; int ret;
...@@ -4044,7 +4044,6 @@ int apply_workqueue_attrs(struct workqueue_struct *wq, ...@@ -4044,7 +4044,6 @@ int apply_workqueue_attrs(struct workqueue_struct *wq,
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(apply_workqueue_attrs);
/** /**
* wq_update_unbound_numa - update NUMA affinity of a wq for CPU hot[un]plug * wq_update_unbound_numa - update NUMA affinity of a wq for CPU hot[un]plug
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment