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

Configure Feed

Select the types of activity you want to include in your feed.

tty: tty_buffer: make all offsets unsigned

All these are supposed/expected to be unsigned as they are either counts
or offsets. So switch to unsigned for clarity.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230810091510.13006-21-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
b97552eb 5db35be9

+5 -5
+5 -5
include/linux/tty_buffer.h
··· 12 12 struct tty_buffer *next; 13 13 struct llist_node free; 14 14 }; 15 - int used; 16 - int size; 17 - int commit; 18 - int lookahead; /* Lazy update on recv, can become less than "read" */ 19 - int read; 15 + unsigned int used; 16 + unsigned int size; 17 + unsigned int commit; 18 + unsigned int lookahead; /* Lazy update on recv, can become less than "read" */ 19 + unsigned int read; 20 20 bool flags; 21 21 /* Data points here */ 22 22 unsigned long data[];