--- zzzz-none-000/linux-2.6.39.4/drivers/tty/serial/serial_core.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/drivers/tty/serial/serial_core.c 2021-11-10 13:23:10.000000000 +0000 @@ -1633,6 +1633,7 @@ char stat_buf[32]; unsigned int status; int mmio; + int j; if (!uport) return; @@ -1700,6 +1701,14 @@ seq_puts(m, stat_buf); } seq_putc(m, '\n'); + seq_printf(m, "Rx histogram (num of bytes read from fifo): \n"); + if (uport->irq == 8) + { + for (j=0;j<16;j++) + { + seq_printf(m,"%d bytes: %d\n",j+1,uport->histogram_RX_stats[j]); + } + } #undef STATBIT #undef INFOBIT } @@ -1929,7 +1938,7 @@ struct tty_port *port = &state->port; struct device *tty_dev; struct uart_match match = {uport, drv}; - struct tty_struct *tty; + struct tty_struct *tty __maybe_unused; mutex_lock(&port->mutex);