aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-06-26 10:52:37 -0400
committerTejun Heo <tj@kernel.org>2019-06-27 17:12:15 -0400
commit2c9858ecbeb1e68224290043445990e29337d4c0 (patch)
tree5271b3e1cc763cf570ede2bd63fb479523e67c34 /kernel/workqueue.c
parent249155c20f9b0754bc1b932a33344cfb4e0c2101 (diff)
workqueue: Make alloc/apply/free_workqueue_attrs() static
None of those functions have any users outside of workqueue.c. Confine them. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r--kernel/workqueue.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 95aea04ff722..b8fa7afe6e7d 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3329,7 +3329,7 @@ EXPORT_SYMBOL_GPL(execute_in_process_context);
3329 * 3329 *
3330 * Undo alloc_workqueue_attrs(). 3330 * Undo alloc_workqueue_attrs().
3331 */ 3331 */
3332void free_workqueue_attrs(struct workqueue_attrs *attrs) 3332static void free_workqueue_attrs(struct workqueue_attrs *attrs)
3333{ 3333{
3334 if (attrs) { 3334 if (attrs) {
3335 free_cpumask_var(attrs->cpumask); 3335 free_cpumask_var(attrs->cpumask);
@@ -3346,7 +3346,7 @@ void free_workqueue_attrs(struct workqueue_attrs *attrs)
3346 * 3346 *
3347 * Return: The allocated new workqueue_attr on success. %NULL on failure. 3347 * Return: The allocated new workqueue_attr on success. %NULL on failure.
3348 */ 3348 */
3349struct workqueue_attrs *alloc_workqueue_attrs(gfp_t gfp_mask) 3349static struct workqueue_attrs *alloc_workqueue_attrs(gfp_t gfp_mask)
3350{ 3350{
3351 struct workqueue_attrs *attrs; 3351 struct workqueue_attrs *attrs;
3352 3352
@@ -4033,7 +4033,7 @@ static int apply_workqueue_attrs_locked(struct workqueue_struct *wq,
4033 * 4033 *
4034 * Return: 0 on success and -errno on failure. 4034 * Return: 0 on success and -errno on failure.
4035 */ 4035 */
4036int apply_workqueue_attrs(struct workqueue_struct *wq, 4036static int apply_workqueue_attrs(struct workqueue_struct *wq,
4037 const struct workqueue_attrs *attrs) 4037 const struct workqueue_attrs *attrs)
4038{ 4038{
4039 int ret; 4039 int ret;
@@ -4044,7 +4044,6 @@ int apply_workqueue_attrs(struct workqueue_struct *wq,
4044 4044
4045 return ret; 4045 return ret;
4046} 4046}
4047EXPORT_SYMBOL_GPL(apply_workqueue_attrs);
4048 4047
4049/** 4048/**
4050 * wq_update_unbound_numa - update NUMA affinity of a wq for CPU hot[un]plug 4049 * wq_update_unbound_numa - update NUMA affinity of a wq for CPU hot[un]plug