[PATCH] smp: Fix typo in comment for raw_smp_processor_id()

Viresh Kumar posted 1 patch 4 months ago
There is a newer version of this series
include/linux/smp.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] smp: Fix typo in comment for raw_smp_processor_id()
Posted by Viresh Kumar 4 months ago
The comment in `smp.h` incorrectly refers to `raw_processor_id()`
instead of the correct function name `raw_smp_processor_id()`.

Suggested-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 include/linux/smp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/smp.h b/include/linux/smp.h
index f1aa0952e8c3..bea8d2826e09 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -234,7 +234,7 @@ static inline int get_boot_cpu_id(void)
 #endif /* !SMP */
 
 /**
- * raw_processor_id() - get the current (unstable) CPU id
+ * raw_smp_processor_id() - get the current (unstable) CPU id
  *
  * For then you know what you are doing and need an unstable
  * CPU id.
-- 
2.31.1.272.g89b43f80a514
Re: [PATCH] smp: Fix typo in comment for raw_smp_processor_id()
Posted by Boqun Feng 4 months ago
On Tue, Jun 10, 2025 at 01:27:13PM +0530, Viresh Kumar wrote:
> The comment in `smp.h` incorrectly refers to `raw_processor_id()`
> instead of the correct function name `raw_smp_processor_id()`.
> 
> Suggested-by: Boqun Feng <boqun.feng@gmail.com>
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

Reviewed-by: Boqun Feng <boqun.feng@gmail.com>

Regards,
Boqun

> ---
>  include/linux/smp.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/smp.h b/include/linux/smp.h
> index f1aa0952e8c3..bea8d2826e09 100644
> --- a/include/linux/smp.h
> +++ b/include/linux/smp.h
> @@ -234,7 +234,7 @@ static inline int get_boot_cpu_id(void)
>  #endif /* !SMP */
>  
>  /**
> - * raw_processor_id() - get the current (unstable) CPU id
> + * raw_smp_processor_id() - get the current (unstable) CPU id
>   *
>   * For then you know what you are doing and need an unstable
>   * CPU id.
> -- 
> 2.31.1.272.g89b43f80a514
>