mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
tty: make tty_operations::write()'s count size_t
Unify with the rest of the code. Use size_t for counts and ssize_t for retval. Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20230810091510.13006-30-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
dcaafbe6ee
commit
95713967ba
43 changed files with 82 additions and 61 deletions
|
@ -70,7 +70,8 @@ static void nfcon_tty_close(struct tty_struct *tty, struct file *filp)
|
|||
{
|
||||
}
|
||||
|
||||
static int nfcon_tty_write(struct tty_struct *tty, const u8 *buf, int count)
|
||||
static ssize_t nfcon_tty_write(struct tty_struct *tty, const u8 *buf,
|
||||
size_t count)
|
||||
{
|
||||
nfputs(buf, count);
|
||||
return count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue