From: kernel test robot <lkp@intel.com>
To: Viken Dadhaniya <quic_vdadhani@quicinc.com>,
gregkh@linuxfoundation.org, jirislaby@kernel.org,
johan+linaro@kernel.org, dianders@chromium.org,
konradybcio@kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
quic_msavaliy@quicinc.com, quic_anupkulk@quicinc.com,
Viken Dadhaniya <quic_vdadhani@quicinc.com>
Subject: Re: [PATCH v1] serial: qcom-geni: Remove alias dependency from qcom serial driver
Date: Wed, 5 Mar 2025 19:10:24 +0800 [thread overview]
Message-ID: <202503051821.tqFJ961p-lkp@intel.com> (raw)
In-Reply-To: <20250304071423.4033565-1-quic_vdadhani@quicinc.com>
Hi Viken,
kernel test robot noticed the following build warnings:
[auto build test WARNING on tty/tty-testing]
[also build test WARNING on tty/tty-next tty/tty-linus usb/usb-testing usb/usb-next usb/usb-linus linus/master v6.14-rc5 next-20250304]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Viken-Dadhaniya/serial-qcom-geni-Remove-alias-dependency-from-qcom-serial-driver/20250304-152222
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
patch link: https://lore.kernel.org/r/20250304071423.4033565-1-quic_vdadhani%40quicinc.com
patch subject: [PATCH v1] serial: qcom-geni: Remove alias dependency from qcom serial driver
config: x86_64-buildonly-randconfig-006-20250305 (https://download.01.org/0day-ci/archive/20250305/202503051821.tqFJ961p-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250305/202503051821.tqFJ961p-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503051821.tqFJ961p-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/tty/serial/qcom_geni_serial.c:267:40: warning: variable 'port' is uninitialized when used here [-Wuninitialized]
267 | line = idr_alloc(&port_idr, (void *)port, max_alias_num + 1, nr_ports,
| ^~~~
drivers/tty/serial/qcom_geni_serial.c:255:36: note: initialize the variable 'port' to silence this warning
255 | struct qcom_geni_serial_port *port;
| ^
| = NULL
1 warning generated.
vim +/port +267 drivers/tty/serial/qcom_geni_serial.c
252
253 static struct qcom_geni_serial_port *get_port_from_line(int line, bool console)
254 {
255 struct qcom_geni_serial_port *port;
256 int nr_ports = console ? GENI_UART_CONS_PORTS : GENI_UART_PORTS;
257
258 if (console) {
259 if (line < 0 || line >= nr_ports)
260 return ERR_PTR(-ENXIO);
261
262 port = &qcom_geni_console_port;
263 } else {
264 int max_alias_num = of_alias_get_highest_id("serial");
265
266 if (line < 0 || line >= nr_ports)
> 267 line = idr_alloc(&port_idr, (void *)port, max_alias_num + 1, nr_ports,
268 GFP_KERNEL);
269 else
270 line = idr_alloc(&port_idr, (void *)port, line, nr_ports, GFP_KERNEL);
271
272 if (line < 0)
273 return ERR_PTR(-ENXIO);
274
275 port = &qcom_geni_uart_ports[line];
276 }
277 return port;
278 }
279
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-03-05 11:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-04 7:14 [PATCH v1] serial: qcom-geni: Remove alias dependency from qcom serial driver Viken Dadhaniya
2025-03-04 17:45 ` Bjorn Andersson
2025-03-07 6:52 ` Greg KH
2025-03-27 7:12 ` Viken Dadhaniya
2025-03-05 11:10 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202503051821.tqFJ961p-lkp@intel.com \
--to=lkp@intel.com \
--cc=dianders@chromium.org \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=johan+linaro@kernel.org \
--cc=konradybcio@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=quic_anupkulk@quicinc.com \
--cc=quic_msavaliy@quicinc.com \
--cc=quic_vdadhani@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox