Home
last modified time | relevance | path

Searched hist:e64ed44bce43e003dd154c0bc418a431c15bdf77 (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/tty/
H A Dtty.hdiff e64ed44bce43e003dd154c0bc418a431c15bdf77 Wed Jun 21 12:16:10 CEST 2023 Jiri Slaby <jirislaby@kernel.org> tty_audit: make tty pointers in exposed functions const

Both tty_audit_add_data() and tty_audit_tiocsti() need only to read from
the tty struct, so make the tty parameters of them both const. This
aids the compiler a bit.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230621101611.10580-6-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
H A Dtty_audit.cdiff e64ed44bce43e003dd154c0bc418a431c15bdf77 Wed Jun 21 12:16:10 CEST 2023 Jiri Slaby <jirislaby@kernel.org> tty_audit: make tty pointers in exposed functions const

Both tty_audit_add_data() and tty_audit_tiocsti() need only to read from
the tty struct, so make the tty parameters of them both const. This
aids the compiler a bit.

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