diff options
| author | Yury Norov <yury.norov@gmail.com> | 2025-01-28 11:46:34 -0500 |
|---|---|---|
| committer | Yury Norov <yury.norov@gmail.com> | 2025-02-24 16:37:22 -0500 |
| commit | dc5bb9b769c9c3e471609a4e7444ab539c5f3f1f (patch) | |
| tree | 8aabca3f1b0892a9574d6d2ee536113240f59d96 /lib | |
| parent | 40ba13b430cb2202ce939a5cd7ff90b7d60aca7f (diff) | |
cpumask: deprecate cpumask_next_wrap()
The next patch aligns implementation of cpumask_next_wrap() with the
find_next_bit_wrap(), and it changes function signature.
To make the transition smooth, this patch deprecates current
implementation by adding an _old suffix. The following patches switch
current users to the new implementation one by one.
No functional changes were intended.
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/cpumask.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cpumask.c b/lib/cpumask.c index 57274ba8b6d9..5ed1dd7e6e33 100644 --- a/lib/cpumask.c +++ b/lib/cpumask.c @@ -8,7 +8,7 @@ #include <linux/numa.h> /** - * cpumask_next_wrap - helper to implement for_each_cpu_wrap + * cpumask_next_wrap_old - helper to implement for_each_cpu_wrap * @n: the cpu prior to the place to search * @mask: the cpumask pointer * @start: the start point of the iteration @@ -19,7 +19,7 @@ * Note: the @wrap argument is required for the start condition when * we cannot assume @start is set in @mask. */ -unsigned int cpumask_next_wrap(int n, const struct cpumask *mask, int start, bool wrap) +unsigned int cpumask_next_wrap_old(int n, const struct cpumask *mask, int start, bool wrap) { unsigned int next; @@ -37,7 +37,7 @@ again: return next; } -EXPORT_SYMBOL(cpumask_next_wrap); +EXPORT_SYMBOL(cpumask_next_wrap_old); /* These are not inline because of header tangles. */ #ifdef CONFIG_CPUMASK_OFFSTACK |
