diff mbox series

[1/2] kernel/workqueue: Make schedule_on_each_cpu as EXPORT_SYMBOL

Message ID f824a9b589be576f5dac9109ca07d65d6b83219a.1629712557.git.riteshh@linux.ibm.com (mailing list archive)
State New
Headers show
Series [1/2] kernel/workqueue: Make schedule_on_each_cpu as EXPORT_SYMBOL | expand

Commit Message

Ritesh Harjani Aug. 23, 2021, 10:07 a.m. UTC
Make schedule_on_each_cpu as EXPORT_SYMBOL.

Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
---
 kernel/workqueue.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Christoph Hellwig Aug. 23, 2021, 12:58 p.m. UTC | #1
On Mon, Aug 23, 2021 at 03:37:45PM +0530, Ritesh Harjani wrote:
> Make schedule_on_each_cpu as EXPORT_SYMBOL.
> 
> Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
> ---
>  kernel/workqueue.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/kernel/workqueue.c b/kernel/workqueue.c
> index f148eacda55a..6f15e4afbf38 100644
> --- a/kernel/workqueue.c
> +++ b/kernel/workqueue.c
> @@ -3309,6 +3309,7 @@ int schedule_on_each_cpu(work_func_t func)
>  	free_percpu(works);
>  	return 0;
>  }
> +EXPORT_SYMBOL(schedule_on_each_cpu);

Please don't export random bits just for a test.  Especially non without
an EXPORT_SYMBOL_GPL.
diff mbox series

Patch

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index f148eacda55a..6f15e4afbf38 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3309,6 +3309,7 @@  int schedule_on_each_cpu(work_func_t func)
 	free_percpu(works);
 	return 0;
 }
+EXPORT_SYMBOL(schedule_on_each_cpu);
 
 /**
  * execute_in_process_context - reliably execute the routine with user context