From: kernel test robot <lkp@intel.com>
To: Jianping.Shen@de.bosch.com, jic23@kernel.org, lars@metafoo.de,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
dima.fedrau@gmail.com, marcelo.schmitt1@gmail.com,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Christian.Lorenz3@de.bosch.com,
Ulrike.Frauendorf@de.bosch.com, Kai.Dolde@de.bosch.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v3 2/2] iio: imu: smi330: Add driver
Date: Fri, 4 Jul 2025 22:23:31 +0800 [thread overview]
Message-ID: <202507042238.UDo16CzT-lkp@intel.com> (raw)
In-Reply-To: <20250703153823.806073-3-Jianping.Shen@de.bosch.com>
Hi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on jic23-iio/togreg]
[also build test WARNING on linus/master v6.16-rc4 next-20250704]
[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/Jianping-Shen-de-bosch-com/dt-bindings-iio-imu-smi330-Add-binding/20250703-234441
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/20250703153823.806073-3-Jianping.Shen%40de.bosch.com
patch subject: [PATCH v3 2/2] iio: imu: smi330: Add driver
config: microblaze-randconfig-r073-20250704 (https://download.01.org/0day-ci/archive/20250704/202507042238.UDo16CzT-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250704/202507042238.UDo16CzT-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/202507042238.UDo16CzT-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/iio/imu/smi330/smi330_i2c.c: In function 'smi330_regmap_i2c_read':
>> drivers/iio/imu/smi330/smi330_i2c.c:26:11: warning: unused variable 'retry' [-Wunused-variable]
int ret, retry;
^~~~~
vim +/retry +26 drivers/iio/imu/smi330/smi330_i2c.c
20
21 static int smi330_regmap_i2c_read(void *context, const void *reg_buf,
22 size_t reg_size, void *val_buf,
23 size_t val_size)
24 {
25 struct smi330_i2c_priv *priv = context;
> 26 int ret, retry;
27
28 /*
29 * SMI330 I2C read frame:
30 * <Slave address[6:0], RnW> <x, Register address[6:0]>
31 * <Slave address[6:0], RnW> <Dummy[7:0]> <Dummy[7:0]> <Data_0[7:0]> <Data_1[15:8]>...
32 * <Data_N[7:0]> <Data_N[15:8]>
33 * Remark: Slave address is not considered part of the frame in the following definitions
34 */
35 struct i2c_msg msgs[] = {
36 {
37 .addr = priv->i2c->addr,
38 .flags = priv->i2c->flags,
39 .len = reg_size,
40 .buf = (u8 *)reg_buf,
41 },
42 {
43 .addr = priv->i2c->addr,
44 .flags = priv->i2c->flags | I2C_M_RD,
45 .len = SMI330_NUM_DUMMY_BYTES + val_size,
46 .buf = priv->rx_buffer,
47 },
48 };
49
50 ret = i2c_transfer(priv->i2c->adapter, msgs, ARRAY_SIZE(msgs));
51 if (ret < 0)
52 return ret;
53
54 memcpy(val_buf, priv->rx_buffer + SMI330_NUM_DUMMY_BYTES, val_size);
55
56 return 0;
57 }
58
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-07-04 14:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-03 15:38 [PATCH v3 0/2] iio: imu: smi330: add bosch smi330 driver Jianping.Shen
2025-07-03 15:38 ` [PATCH v3 1/2] dt-bindings: iio: imu: smi330: Add binding Jianping.Shen
2025-07-04 15:14 ` Krzysztof Kozlowski
2025-07-03 15:38 ` [PATCH v3 2/2] iio: imu: smi330: Add driver Jianping.Shen
2025-07-04 14:23 ` kernel test robot [this message]
2025-07-06 16:53 ` Jonathan Cameron
2025-07-09 19:38 ` AW: " Shen Jianping (ME-SE/EAD2)
2025-07-13 13:42 ` Jonathan Cameron
2025-07-15 18:35 ` AW: " Shen Jianping (ME-SE/EAD2)
2025-07-17 14:04 ` Jonathan Cameron
2025-07-23 9:46 ` AW: " Shen Jianping (ME-SE/EAD2)
2025-07-24 15:07 ` Jonathan Cameron
2025-07-28 12:14 ` AW: " Shen Jianping (ME-SE/EAD2)
2025-07-28 13:07 ` Jonathan Cameron
2025-07-28 14:10 ` AW: " Shen Jianping (ME-SE/EAD2)
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=202507042238.UDo16CzT-lkp@intel.com \
--to=lkp@intel.com \
--cc=Christian.Lorenz3@de.bosch.com \
--cc=Jianping.Shen@de.bosch.com \
--cc=Kai.Dolde@de.bosch.com \
--cc=Ulrike.Frauendorf@de.bosch.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dima.fedrau@gmail.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.schmitt1@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robh@kernel.org \
/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).