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: n_tty: drop n_tty_trace()

This n_tty_trace() is an always disabled debugging macro. It comes from
commit 32f13521ca68 ("n_tty: Line copy to user buffer in canonical
mode").

Drop it as it is dead for over a decade.

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

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
67e781f5 e287d646

-14
-14
drivers/tty/n_tty.c
··· 81 81 #define ECHO_BLOCK 256 82 82 #define ECHO_DISCARD_WATERMARK N_TTY_BUF_SIZE - (ECHO_BLOCK + 32) 83 83 84 - 85 - #undef N_TTY_TRACE 86 - #ifdef N_TTY_TRACE 87 - # define n_tty_trace(f, args...) trace_printk(f, ##args) 88 - #else 89 - # define n_tty_trace(f, args...) no_printk(f, ##args) 90 - #endif 91 - 92 84 struct n_tty_data { 93 85 /* producer-published */ 94 86 size_t read_head; ··· 2018 2026 tail = MASK(ldata->read_tail); 2019 2027 size = min_t(size_t, tail + n, N_TTY_BUF_SIZE); 2020 2028 2021 - n_tty_trace("%s: nr:%zu tail:%zu n:%zu size:%zu\n", 2022 - __func__, *nr, tail, n, size); 2023 - 2024 2029 eol = find_next_bit(ldata->read_flags, size, tail); 2025 2030 more = n - (size - tail); 2026 2031 if (eol == N_TTY_BUF_SIZE && more) { ··· 2034 2045 2035 2046 if (!found || read_buf(ldata, eol) != __DISABLED_CHAR) 2036 2047 n = c; 2037 - 2038 - n_tty_trace("%s: eol:%zu found:%d n:%zu c:%zu tail:%zu more:%zu\n", 2039 - __func__, eol, found, n, c, tail, more); 2040 2048 2041 2049 tty_copy(tty, *kbp, tail, n); 2042 2050 *kbp += n;