Linux SPI subsystem development
 help / color / mirror / Atom feed
From: Md Sadre Alam <quic_mdalam@quicinc.com>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	kernel test robot <lkp@intel.com>, <broonie@kernel.org>,
	<robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>,
	<andersson@kernel.org>, <konradybcio@kernel.org>,
	<miquel.raynal@bootlin.com>, <richard@nod.at>, <vigneshr@ti.com>,
	<manivannan.sadhasivam@linaro.org>,
	<linux-arm-msm@vger.kernel.org>, <linux-spi@vger.kernel.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-mtd@lists.infradead.org>
Cc: <oe-kbuild-all@lists.linux.dev>, <quic_srichara@quicinc.com>,
	<quic_varada@quicinc.com>
Subject: Re: [PATCH v12 6/8] spi: spi-qpic: add driver for QCOM SPI NAND flash Interface
Date: Tue, 29 Oct 2024 09:45:26 +0530	[thread overview]
Message-ID: <8795ecde-5faf-0110-a01c-8e194ea9b43b@quicinc.com> (raw)
In-Reply-To: <5a98076f-f5ce-4400-b554-6593d51de9f2@oss.qualcomm.com>



On 10/25/2024 11:44 PM, Konrad Dybcio wrote:
> On 25.10.2024 6:08 PM, kernel test robot wrote:
>> Hi Md,
>>
>> kernel test robot noticed the following build warnings:
>>
>> [auto build test WARNING on mtd/nand/next]
>> [also build test WARNING on broonie-spi/for-next robh/for-next linus/master v6.12-rc4 next-20241025]
>> [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/Md-Sadre-Alam/spi-dt-bindings-Introduce-qcom-spi-qpic-snand/20241021-200849
>> base:   https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next
>> patch link:    https://lore.kernel.org/r/20241021115620.1616617-7-quic_mdalam%40quicinc.com
>> patch subject: [PATCH v12 6/8] spi: spi-qpic: add driver for QCOM SPI NAND flash Interface
>> config: sparc64-randconfig-r073-20241023 (https://download.01.org/0day-ci/archive/20241025/202410252355.ZofaMeku-lkp@intel.com/config)
>> compiler: sparc64-linux-gcc (GCC) 14.1.0
>>
>> 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/202410252355.ZofaMeku-lkp@intel.com/
>>
>> smatch warnings:
>> drivers/spi/spi-qpic-snand.c:1260 qcom_spi_write_page() warn: unsigned 'cmd' is never less than zero.
>> drivers/spi/spi-qpic-snand.c:1279 qcom_spi_send_cmdaddr() warn: unsigned 'cmd' is never less than zero.
>>
>> vim +/cmd +1260 drivers/spi/spi-qpic-snand.c
>>
>>    1252	
>>    1253	static int qcom_spi_write_page(struct qcom_nand_controller *snandc,
>>    1254				       const struct spi_mem_op *op)
>>    1255	{
>>    1256		struct qpic_snand_op s_op = {};
>>    1257		u32 cmd;
>>    1258	
>>    1259		cmd = qcom_spi_cmd_mapping(snandc, op->cmd.opcode);
>>> 1260		if (cmd < 0)
>>    1261			return cmd;
> 
> The robot is right, qcom_spi_cmd_mapping() should return an int, as you
> return a negative errno upon failure
Ok will fix in next revision.
> 
> Konrad

  reply	other threads:[~2024-10-29  4:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-21 11:56 [PATCH v12 0/8] Add QPIC SPI NAND driver Md Sadre Alam
2024-10-21 11:56 ` [PATCH v12 1/8] spi: dt-bindings: Introduce qcom,spi-qpic-snand Md Sadre Alam
2024-10-21 11:56 ` [PATCH v12 2/8] mtd: rawnand: qcom: cleanup qcom_nandc driver Md Sadre Alam
2024-10-21 11:56 ` [PATCH v12 3/8] mtd: rawnand: qcom: Add qcom prefix to common api Md Sadre Alam
2024-10-26 11:45   ` Konrad Dybcio
2024-10-21 11:56 ` [PATCH v12 4/8] mtd: nand: Add qpic_common API file Md Sadre Alam
2024-10-21 18:19   ` Jeff Johnson
2024-10-22  4:39     ` Md Sadre Alam
2024-10-25 18:27       ` Jeff Johnson
2024-10-29  4:16         ` Md Sadre Alam
2024-10-21 11:56 ` [PATCH v12 5/8] mtd: rawnand: qcom: use FIELD_PREP and GENMASK Md Sadre Alam
2024-10-25 18:13   ` Konrad Dybcio
2024-10-21 11:56 ` [PATCH v12 6/8] spi: spi-qpic: add driver for QCOM SPI NAND flash Interface Md Sadre Alam
2024-10-25 16:08   ` kernel test robot
2024-10-25 18:14     ` Konrad Dybcio
2024-10-29  4:15       ` Md Sadre Alam [this message]
2024-10-21 11:56 ` [PATCH v12 7/8] arm64: dts: qcom: ipq9574: Add SPI nand support Md Sadre Alam
2024-10-21 11:56 ` [PATCH v12 8/8] arm64: dts: qcom: ipq9574: Remove eMMC node Md Sadre Alam

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=8795ecde-5faf-0110-a01c-8e194ea9b43b@quicinc.com \
    --to=quic_mdalam@quicinc.com \
    --cc=andersson@kernel.org \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=quic_srichara@quicinc.com \
    --cc=quic_varada@quicinc.com \
    --cc=richard@nod.at \
    --cc=robh@kernel.org \
    --cc=vigneshr@ti.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