]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm/debug: fix missing space in case statement
authorZhang Chujun <zhangchujun@cmss.chinamobile.com>
Mon, 3 Nov 2025 06:59:09 +0000 (14:59 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Nov 2025 01:28:29 +0000 (17:28 -0800)
In setup_vm_debug() , the case statement for 'p' option is written as
'case'p':' without a space between 'case' and the character constant.
While this is syntactically valid C, it violates the Linux kernel coding
style, which requires a space after 'case'.  This patch adds the missing
space to comply with coding standards.

Link: https://lkml.kernel.org/r/20251103065910.2196-1-zhangchujun@cmss.chinamobile.com
Signed-off-by: Zhang Chujun <zhangchujun@cmss.chinamobile.com>
Reviewed-by: Dev Jain <dev.jain@arm.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/debug.c

index 64ddb0c4b4be43ecb93fa1a5495a9426524e9a47..d860864063be9296d8a4d21d30279f14bcf9cc2a 100644 (file)
@@ -327,7 +327,7 @@ static int __init setup_vm_debug(char *str)
 
        while (*str) {
                switch (tolower(*str)) {
-               case'p':
+               case 'p':
                        __page_init_poisoning = true;
                        break;
                default: