]> www.infradead.org Git - linux.git/commitdiff
cpu: Fix W=1 build kernel-doc warning
authorThorsten Blum <thorsten.blum@toblux.com>
Sun, 25 Aug 2024 22:11:53 +0000 (00:11 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 4 Sep 2024 10:18:10 +0000 (12:18 +0200)
Building the kernel with W=1 generates the following warning:

  kernel/cpu.c:2693: warning: This comment starts with '/**',
        but isn't a kernel-doc comment.

The function topology_is_core_online() is a simple helper function and
doesn't need a kernel-doc comment.

Use a normal comment instead.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240825221152.71951-2-thorsten.blum@toblux.com
kernel/cpu.c

index c16a9b66baba7923d319b41d47751f6fd3e857d6..0c9c5dfc8dddbed37bc97163d1ea9fbcf758bdf4 100644 (file)
@@ -2705,9 +2705,7 @@ int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval)
        return ret;
 }
 
-/**
- * Check if the core a CPU belongs to is online
- */
+/* Check if the core a CPU belongs to is online */
 #if !defined(topology_is_core_online)
 static inline bool topology_is_core_online(unsigned int cpu)
 {