drivers/tty/serial/qcom_geni_serial.c:921:13: warning: 'qcom_geni_serial_poll_rx_fifo_locked' defined but not used

From: kernel test robot

Date: Fri Sep 04 2026 - 15:29:41 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 986c24e0fe44f844b44d365b71ce831947f50298
commit: 8200871327d1bd4c08daf248a8693a3093982fa4 serial: qcom-geni: Keep FIFO RX active during console TX
date: 5 weeks ago
config: sh-randconfig-r133-20260904 (https://download.01.org/0day-ci/archive/20260905/202609050203.u7Y5yPkc-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 14.3.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260905/202609050203.u7Y5yPkc-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: 8200871327d1 ("serial: qcom-geni: Keep FIFO RX active during console TX")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609050203.u7Y5yPkc-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/tty/serial/qcom_geni_serial.c:921:13: warning: 'qcom_geni_serial_poll_rx_fifo_locked' defined but not used [-Wunused-function]
921 | static void qcom_geni_serial_poll_rx_fifo_locked(struct uart_port *uport)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/qcom_geni_serial_poll_rx_fifo_locked +921 drivers/tty/serial/qcom_geni_serial.c

919
920 /* Caller holds the UART port lock. */
> 921 static void qcom_geni_serial_poll_rx_fifo_locked(struct uart_port *uport)
922 {
923 struct qcom_geni_serial_port *port = to_dev_port(uport);
924 struct tty_port *tport = &uport->state->port;
925 u32 s_irq_status;
926 bool drop_rx = false;
927
928 s_irq_status = readl(uport->membase + SE_GENI_S_IRQ_STATUS);
929 writel(s_irq_status, uport->membase + SE_GENI_S_IRQ_CLEAR);
930
931 if (s_irq_status & S_RX_FIFO_WR_ERR_EN) {
932 uport->icount.overrun++;
933 tty_insert_flip_char(tport, 0, TTY_OVERRUN);
934 }
935
936 if (s_irq_status & (S_GP_IRQ_0_EN | S_GP_IRQ_1_EN)) {
937 if (s_irq_status & S_GP_IRQ_0_EN)
938 uport->icount.parity++;
939 drop_rx = true;
940 } else if (s_irq_status & (S_GP_IRQ_2_EN | S_GP_IRQ_3_EN)) {
941 uport->icount.brk++;
942 port->brk = true;
943 }
944
945 qcom_geni_serial_handle_rx_fifo(uport, drop_rx);
946 }
947

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki