]> www.infradead.org Git - users/dwmw2/linux.git/commit
printk: nbcon: Remove return value for write_atomic()
authorJohn Ogness <john.ogness@linutronix.de>
Tue, 20 Aug 2024 06:29:32 +0000 (08:35 +0206)
committerPetr Mladek <pmladek@suse.com>
Wed, 21 Aug 2024 12:56:23 +0000 (14:56 +0200)
commitb7049d88c1763d5f133b0e93e39da8e89a9f944b
treeeedcb12c6ea83d2036ad895653070ad99262c555
parent8c9dab2c55ad74680728c72949971b20d70b56ca
printk: nbcon: Remove return value for write_atomic()

The return value of write_atomic() does not provide any useful
information. On the contrary, it makes things more complicated
for the caller to appropriately deal with the information.

Change write_atomic() to not have a return value. If the
message did not get printed due to loss of ownership, the
caller will notice this on its own. If ownership was not lost,
it will be assumed that the driver successfully printed the
message and the sequence number for that console will be
incremented.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240820063001.36405-7-john.ogness@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>
include/linux/console.h
kernel/printk/nbcon.c