summaryrefslogtreecommitdiffstats
path: root/kernel/trace/blktrace.c
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2024-02-07 14:46:50 +0106
committerPetr Mladek <pmladek@suse.com>2024-02-07 17:23:17 +0100
commit5b73e706f00f3553e1a4efbb31951ce9fe18f2dc (patch)
treef56765a729c0308255d3d3a7485ddf6c94feca5c /kernel/trace/blktrace.c
parent2a80532c0745e140852e6b579bbe8371332bb45d (diff)
downloadlinux-stable-5b73e706f00f3553e1a4efbb31951ce9fe18f2dc.tar.gz
linux-stable-5b73e706f00f3553e1a4efbb31951ce9fe18f2dc.tar.bz2
linux-stable-5b73e706f00f3553e1a4efbb31951ce9fe18f2dc.zip
printk: nbcon: Relocate 32bit seq macros
The macros __seq_to_nbcon_seq() and __nbcon_seq_to_seq() are used to provide support for atomic handling of sequence numbers on 32bit systems. Until now this was only used by nbcon.c, which is why they were located in nbcon.c and include nbcon in the name. In a follow-up commit this functionality is also needed by printk_ringbuffer. Rather than duplicating the functionality, relocate the macros to printk_ringbuffer.h. Also, since the macros will be no longer nbcon-specific, rename them to __u64seq_to_ulseq() and __ulseq_to_u64seq(). This does not result in any functional change. Signed-off-by: John Ogness <john.ogness@linutronix.de> Reviewed-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20240207134103.1357162-2-john.ogness@linutronix.de Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'kernel/trace/blktrace.c')
0 files changed, 0 insertions, 0 deletions