Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

printk: Rename console_start to console_resume

The intent of console_start was to resume a previously suspended console,
so rename it accordingly.

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Link: https://lore.kernel.org/r/20250226-printk-renaming-v1-4-0b878577f2e6@suse.com
[pmladek@suse.com: Fixed typo in the commit message. Updated also new drm_log.c.]
Signed-off-by: Petr Mladek <pmladek@suse.com>

authored by

Marcos Paulo de Souza and committed by
Petr Mladek
5395e09c 242fafe3

+5 -5
+1 -1
drivers/gpu/drm/clients/drm_log.c
··· 332 332 { 333 333 struct drm_log *dlog = client_to_drm_log(client); 334 334 335 - console_start(&dlog->con); 335 + console_resume(&dlog->con); 336 336 337 337 return 0; 338 338 }
+1 -1
drivers/tty/serial/serial_core.c
··· 2500 2500 uart_port_unlock_irq(uport); 2501 2501 } 2502 2502 if (console_suspend_enabled) 2503 - console_start(uport->cons); 2503 + console_resume(uport->cons); 2504 2504 } 2505 2505 2506 2506 if (tty_port_suspended(port)) {
+1 -1
include/linux/console.h
··· 634 634 extern void console_flush_on_panic(enum con_flush_mode mode); 635 635 extern struct tty_driver *console_device(int *); 636 636 extern void console_suspend(struct console *); 637 - extern void console_start(struct console *); 637 + extern void console_resume(struct console *); 638 638 extern int is_console_locked(void); 639 639 extern int braille_register_console(struct console *, int index, 640 640 char *console_options, char *braille_options);
+2 -2
kernel/printk/printk.c
··· 3517 3517 } 3518 3518 EXPORT_SYMBOL(console_suspend); 3519 3519 3520 - void console_start(struct console *console) 3520 + void console_resume(struct console *console) 3521 3521 { 3522 3522 struct console_flush_type ft; 3523 3523 bool is_nbcon; ··· 3542 3542 3543 3543 __pr_flush(console, 1000, true); 3544 3544 } 3545 - EXPORT_SYMBOL(console_start); 3545 + EXPORT_SYMBOL(console_resume); 3546 3546 3547 3547 #ifdef CONFIG_PRINTK 3548 3548 static int unregister_console_locked(struct console *console);