tty_audit: make tty pointers in exposed functions const
authorJiri Slaby <jirislaby@kernel.org>
Wed, 21 Jun 2023 10:16:10 +0000 (12:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 15:57:29 +0000 (17:57 +0200)
commite64ed44bce43e003dd154c0bc418a431c15bdf77
treea0da85b38568c7d62cf34133a180ff9a091e4f6d
parent3e540a7bad8534a9b8845defa051834c9694d86c
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>
drivers/tty/tty.h
drivers/tty/tty_audit.c