From: kernel test robot <lkp@intel.com>
To: Jiansheng Wu <jiansheng.wu@unisoc.com>,
Lee Jones <lee@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Orson Zhai <orsonzhai@gmail.com>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
Chunyan Zhang <zhang.lyra@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, yongzhi.chen@unisoc.com,
xiaoqing.wu@unisoc.com, jinfeng.lin1@unisoc.com,
jianshengwu16@gmail.com
Subject: Re: [PATCH 2/2] mfd: sprd-sc27xx-spi: Add PMICs support for UMS9621 SoC
Date: Wed, 23 Aug 2023 02:51:37 +0800 [thread overview]
Message-ID: <202308230247.XxIH8PLy-lkp@intel.com> (raw)
In-Reply-To: <20230822075113.25506-3-jiansheng.wu@unisoc.com>
Hi Jiansheng,
kernel test robot noticed the following build warnings:
[auto build test WARNING on lee-mfd/for-mfd-next]
[also build test WARNING on robh/for-next lee-leds/for-leds-next lee-mfd/for-mfd-fixes linus/master v6.5-rc7 next-20230822]
[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/Jiansheng-Wu/dt-bindings-spi-Convert-sprd-spi-bindings-to-yaml/20230822-155400
base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
patch link: https://lore.kernel.org/r/20230822075113.25506-3-jiansheng.wu%40unisoc.com
patch subject: [PATCH 2/2] mfd: sprd-sc27xx-spi: Add PMICs support for UMS9621 SoC
config: i386-buildonly-randconfig-004-20230822 (https://download.01.org/0day-ci/archive/20230823/202308230247.XxIH8PLy-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230823/202308230247.XxIH8PLy-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/202308230247.XxIH8PLy-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/mfd/sprd-sc27xx-spi.c: In function 'sprd_pmic_spi_write':
>> drivers/mfd/sprd-sc27xx-spi.c:133:12: warning: 'pdata' is used uninitialized in this function [-Wuninitialized]
133 | if (!pdata->slave_id) {
| ~~~~~^~~~~~~~~~
vim +/pdata +133 drivers/mfd/sprd-sc27xx-spi.c
124
125 static int sprd_pmic_spi_write(void *context, const void *data, size_t count)
126 {
127 struct device *dev = context;
128 struct spi_device *spi = to_spi_device(dev);
129 const struct sprd_pmic_data *pdata;
130 int ret;
131 u32 *pmdata;
132
> 133 if (!pdata->slave_id) {
134 ret = spi_write(spi, data, count);
135 } else {
136 pdata = ((struct sprd_pmic *)spi_get_drvdata(spi))->pdata;
137
138 pmdata = kzalloc(count, GFP_KERNEL);
139 if (!pmdata)
140 return -ENOMEM;
141 memcpy(pmdata, data, count);
142 *pmdata += pdata->slave_id;
143 ret = spi_write(spi, (const void *)pmdata, count);
144 kfree(pmdata);
145 }
146 if (ret)
147 pr_err("pmic mfd write failed!\n");
148
149 return ret;
150 }
151
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-08-22 18:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 7:51 [PATCH 0/2] Add PMICs support for UMS9621 SoC Jiansheng Wu
2023-08-22 7:51 ` [PATCH 1/2] dt-bindings: spi: Convert sprd spi bindings to yaml Jiansheng Wu
2023-08-22 8:14 ` Krzysztof Kozlowski
2023-08-22 8:34 ` Rob Herring
2023-08-22 7:51 ` [PATCH 2/2] mfd: sprd-sc27xx-spi: Add PMICs support for UMS9621 SoC Jiansheng Wu
2023-08-22 8:18 ` Krzysztof Kozlowski
2023-08-22 18:51 ` kernel test robot [this message]
2023-08-22 21:54 ` kernel test robot
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=202308230247.XxIH8PLy-lkp@intel.com \
--to=lkp@intel.com \
--cc=baolin.wang@linux.alibaba.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jiansheng.wu@unisoc.com \
--cc=jianshengwu16@gmail.com \
--cc=jinfeng.lin1@unisoc.com \
--cc=krzk@kernel.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=orsonzhai@gmail.com \
--cc=robh+dt@kernel.org \
--cc=xiaoqing.wu@unisoc.com \
--cc=yongzhi.chen@unisoc.com \
--cc=zhang.lyra@gmail.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;
as well as URLs for NNTP newsgroup(s).