From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B0EA405F7 for ; Sun, 14 Jun 2026 20:00:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781467247; cv=none; b=cuNgSoJm1kKdm9ksMhJWUld2LdLOyLsMwptb/cFmPuxUvPhpZOenmBR0zQTKgmA2udCzecd6m8oQdZFl2Gt9DIjWlDNfBZkr/v3IB46tbROpmMOXHJaENVPFxdyR1+S91fwxjghlqazqdvaecF6hWZqjIwIaar0ppUCykbR8Bjg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781467247; c=relaxed/simple; bh=cMR4R0s7cmijZRZ2+n+UkBaWs3HQjq7U77ewd/evF/o=; h=Date:From:To:Cc:Subject:Message-ID; b=aASV5I1goGC9uaVqO/IScvJ0AyJXbDVyz3RMSPu12/SXu2S+EQV/UwxYPGZubfo1xiJB/gdyWXguTid2XqWi5Y1JHs/tKUI4OHk76JcU2QlKUtEg2eQ1b64UcOY5tNKVTOZPjGOAKwVrg3SMzjpGppplagcp5sWDuiSHaI2gQFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FQQ/jXdO; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FQQ/jXdO" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1781467245; x=1813003245; h=date:from:to:cc:subject:message-id; bh=cMR4R0s7cmijZRZ2+n+UkBaWs3HQjq7U77ewd/evF/o=; b=FQQ/jXdOsXTSB42tDMcSaWBElGgq2GbLSSd53qDut6gr7mxLdbgR+4aa s4HIvTybW3QL3EbNGWndWrCWcslTdxrT8blYOrfUxzr9p8OKKjJMJc14a ulGxCYNv0zQDkOQ5mRuTnfOMvljab8z2TWMSQP4kvMBptGQMEvJwW1/wP t4Ze9kInJAtX0PrxzEAUCXBvTW1/GR6a5syWLQQC98BZLrQm1qps2bjNn SbSSvFQVJQiidKZiw41D8q7psGpl+sQKoarUOPeD+dQUR64CYPYfy700Y N3438UBR5WGPaRPTOIN6YAbBCDqEZCNif3XkpmdUp++YVTxwLCVlDNXhk w==; X-CSE-ConnectionGUID: YlOB4QcRTGKfVVkIVQjNGQ== X-CSE-MsgGUID: yXYOQ/1qS++tVoXu5pO9BA== X-IronPort-AV: E=McAfee;i="6800,10657,11817"; a="99791371" X-IronPort-AV: E=Sophos;i="6.24,205,1774335600"; d="scan'208";a="99791371" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2026 13:00:45 -0700 X-CSE-ConnectionGUID: AqGTTlkJQHGrv3MMpphtrQ== X-CSE-MsgGUID: Lokz/wnsSFuVn7ilRoFI4Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,205,1774335600"; d="scan'208";a="277492979" Received: from lkp-server01.sh.intel.com (HELO f0d55cb201f0) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 14 Jun 2026 13:00:43 -0700 Received: from kbuild by f0d55cb201f0 with local (Exim 4.98.2) (envelope-from ) id 1wYr0a-00000000RAm-3yaZ; Sun, 14 Jun 2026 20:00:40 +0000 Date: Mon, 15 Jun 2026 04:00:07 +0800 From: kernel test robot To: "j.turek" Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: drivers/tty/serial/xilinx_uartps.c:438:25: sparse: sparse: dereference of noderef expression Message-ID: <202606150318.PcLVQ18L-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8cd9520d35a6c38db6567e97dd93b1f11f185dc6 commit: 267ee93c417e685d9f8e079e41c70ba6ee4df5a5 serial: xilinx_uartps: fix rs485 delay_rts_after_send date: 6 months ago config: i386-randconfig-062-20260614 (https://download.01.org/0day-ci/archive/20260615/202606150318.PcLVQ18L-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260615/202606150318.PcLVQ18L-lkp@intel.com/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: 267ee93c417e ("serial: xilinx_uartps: fix rs485 delay_rts_after_send") | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202606150318.PcLVQ18L-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/tty/serial/xilinx_uartps.c:438:25: sparse: sparse: dereference of noderef expression drivers/tty/serial/xilinx_uartps.c:709:13: sparse: sparse: context imbalance in 'cdns_uart_start_tx' - different lock contexts for basic block vim +438 drivers/tty/serial/xilinx_uartps.c 418 419 /** 420 * cdns_uart_handle_tx - Handle the bytes to be transmitted. 421 * @dev_id: Id of the UART port 422 * Return: None 423 */ 424 static void cdns_uart_handle_tx(void *dev_id) 425 { 426 struct uart_port *port = (struct uart_port *)dev_id; 427 struct cdns_uart *cdns_uart = port->private_data; 428 struct tty_port *tport = &port->state->port; 429 unsigned int numbytes; 430 unsigned char ch; 431 ktime_t rts_delay; 432 433 if (kfifo_is_empty(&tport->xmit_fifo) || uart_tx_stopped(port)) { 434 /* Disable the TX Empty interrupt */ 435 writel(CDNS_UART_IXR_TXEMPTY, port->membase + CDNS_UART_IDR); 436 /* Set RTS line after delay */ 437 if (cdns_uart->port->rs485.flags & SER_RS485_ENABLED) { > 438 cdns_uart->tx_timer.function = &cdns_rs485_rx_callback; 439 rts_delay = ns_to_ktime(cdns_calc_after_tx_delay(cdns_uart)); 440 hrtimer_start(&cdns_uart->tx_timer, rts_delay, HRTIMER_MODE_REL); 441 } 442 return; 443 } 444 445 numbytes = port->fifosize; 446 while (numbytes && 447 !(readl(port->membase + CDNS_UART_SR) & CDNS_UART_SR_TXFULL) && 448 uart_fifo_get(port, &ch)) { 449 writel(ch, port->membase + CDNS_UART_FIFO); 450 numbytes--; 451 } 452 453 if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS) 454 uart_write_wakeup(port); 455 456 /* Enable the TX Empty interrupt */ 457 writel(CDNS_UART_IXR_TXEMPTY, cdns_uart->port->membase + CDNS_UART_IER); 458 } 459 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki