[PATCH] cpu: Remove unused init_cpu_online

linux@treblig.org posted 1 patch 12 months ago
include/linux/cpumask.h | 1 -
kernel/cpu.c            | 5 -----
2 files changed, 6 deletions(-)
[PATCH] cpu: Remove unused init_cpu_online
Posted by linux@treblig.org 12 months ago
From: "Dr. David Alan Gilbert" <linux@treblig.org>

The last use of init_cpu_online() was removed by the
commit cf8e8658100d ("arch: Remove Itanium (IA-64) architecture")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 include/linux/cpumask.h | 1 -
 kernel/cpu.c            | 5 -----
 2 files changed, 6 deletions(-)

diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h
index 9278a50d514f..590d8438514c 100644
--- a/include/linux/cpumask.h
+++ b/include/linux/cpumask.h
@@ -1043,7 +1043,6 @@ extern const DECLARE_BITMAP(cpu_all_bits, NR_CPUS);
 /* Wrappers for arch boot code to manipulate normally-constant masks */
 void init_cpu_present(const struct cpumask *src);
 void init_cpu_possible(const struct cpumask *src);
-void init_cpu_online(const struct cpumask *src);
 
 #define assign_cpu(cpu, mask, val)	\
 	assign_bit(cpumask_check(cpu), cpumask_bits(mask), (val))
diff --git a/kernel/cpu.c b/kernel/cpu.c
index b605334f8ee6..2ac860df1ff0 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -3128,11 +3128,6 @@ void init_cpu_possible(const struct cpumask *src)
 	cpumask_copy(&__cpu_possible_mask, src);
 }
 
-void init_cpu_online(const struct cpumask *src)
-{
-	cpumask_copy(&__cpu_online_mask, src);
-}
-
 void set_cpu_online(unsigned int cpu, bool online)
 {
 	/*
-- 
2.47.1
Re: [PATCH] cpu: Remove unused init_cpu_online
Posted by Yury Norov 11 months, 3 weeks ago
On Fri, Dec 20, 2024 at 04:57:39PM +0000, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
> The last use of init_cpu_online() was removed by the
> commit cf8e8658100d ("arch: Remove Itanium (IA-64) architecture")
> 
> Remove it.
> 
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>

Dear Dr. Gilbert,

Applied in bitmap-for-next. 

With best regards,
Dr. Yury V Norov

> ---
>  include/linux/cpumask.h | 1 -
>  kernel/cpu.c            | 5 -----
>  2 files changed, 6 deletions(-)
> 
> diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h
> index 9278a50d514f..590d8438514c 100644
> --- a/include/linux/cpumask.h
> +++ b/include/linux/cpumask.h
> @@ -1043,7 +1043,6 @@ extern const DECLARE_BITMAP(cpu_all_bits, NR_CPUS);
>  /* Wrappers for arch boot code to manipulate normally-constant masks */
>  void init_cpu_present(const struct cpumask *src);
>  void init_cpu_possible(const struct cpumask *src);
> -void init_cpu_online(const struct cpumask *src);
>  
>  #define assign_cpu(cpu, mask, val)	\
>  	assign_bit(cpumask_check(cpu), cpumask_bits(mask), (val))
> diff --git a/kernel/cpu.c b/kernel/cpu.c
> index b605334f8ee6..2ac860df1ff0 100644
> --- a/kernel/cpu.c
> +++ b/kernel/cpu.c
> @@ -3128,11 +3128,6 @@ void init_cpu_possible(const struct cpumask *src)
>  	cpumask_copy(&__cpu_possible_mask, src);
>  }
>  
> -void init_cpu_online(const struct cpumask *src)
> -{
> -	cpumask_copy(&__cpu_online_mask, src);
> -}
> -
>  void set_cpu_online(unsigned int cpu, bool online)
>  {
>  	/*
> -- 
> 2.47.1