From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: Re: [PATCH v3 2/6] iio: adc: ad4030: add driver for ad4030-24
Date: Sun, 2 Feb 2025 13:21:12 +0800 [thread overview]
Message-ID: <202502021354.T5JOCCcy-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20250130-eblanc-ad4630_v1-v3-2-052e8c2d897d@baylibre.com>
References: <20250130-eblanc-ad4630_v1-v3-2-052e8c2d897d@baylibre.com>
TO: Esteban Blanc <eblanc@baylibre.com>
TO: "Lars-Peter Clausen" <lars@metafoo.de>
TO: Michael Hennerich <Michael.Hennerich@analog.com>
TO: "Nuno Sá" <nuno.sa@analog.com>
TO: Jonathan Cameron <jic23@kernel.org>
TO: Rob Herring <robh@kernel.org>
TO: Krzysztof Kozlowski <krzk@kernel.org>
TO: Conor Dooley <conor+dt@kernel.org>
TO: Jonathan Corbet <corbet@lwn.net>
CC: linux-iio@vger.kernel.org
CC: devicetree@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: linux-doc@vger.kernel.org
CC: Esteban Blanc <eblanc@baylibre.com>
Hi Esteban,
kernel test robot noticed the following build warnings:
[auto build test WARNING on ffd294d346d185b70e28b1a28abe367bbfe53c04]
url: https://github.com/intel-lab-lkp/linux/commits/Esteban-Blanc/dt-bindings-iio-adc-add-ADI-ad4030-ad4630-and-ad4632/20250130-191153
base: ffd294d346d185b70e28b1a28abe367bbfe53c04
patch link: https://lore.kernel.org/r/20250130-eblanc-ad4630_v1-v3-2-052e8c2d897d%40baylibre.com
patch subject: [PATCH v3 2/6] iio: adc: ad4030: add driver for ad4030-24
:::::: branch date: 3 days ago
:::::: commit date: 3 days ago
config: um-randconfig-r071-20250202 (https://download.01.org/0day-ci/archive/20250202/202502021354.T5JOCCcy-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202502021354.T5JOCCcy-lkp@intel.com/
smatch warnings:
drivers/iio/adc/ad4030.c:263 ad4030_spi_read() warn: calling memset(x, y, ARRAY_SIZE());
vim +263 drivers/iio/adc/ad4030.c
8cfce061c9e580 Esteban Blanc 2025-01-30 241
8cfce061c9e580 Esteban Blanc 2025-01-30 242 static int ad4030_spi_read(void *context, const void *reg, size_t reg_size,
8cfce061c9e580 Esteban Blanc 2025-01-30 243 void *val, size_t val_size)
8cfce061c9e580 Esteban Blanc 2025-01-30 244 {
8cfce061c9e580 Esteban Blanc 2025-01-30 245 int ret;
8cfce061c9e580 Esteban Blanc 2025-01-30 246 struct ad4030_state *st = context;
8cfce061c9e580 Esteban Blanc 2025-01-30 247 struct spi_transfer xfer = {
8cfce061c9e580 Esteban Blanc 2025-01-30 248 .tx_buf = st->tx_data,
8cfce061c9e580 Esteban Blanc 2025-01-30 249 .rx_buf = st->rx_data.raw,
8cfce061c9e580 Esteban Blanc 2025-01-30 250 .bits_per_word = 8,
8cfce061c9e580 Esteban Blanc 2025-01-30 251 .len = reg_size + val_size,
8cfce061c9e580 Esteban Blanc 2025-01-30 252 .speed_hz = AD4030_SPI_MAX_REG_XFER_SPEED,
8cfce061c9e580 Esteban Blanc 2025-01-30 253 };
8cfce061c9e580 Esteban Blanc 2025-01-30 254
8cfce061c9e580 Esteban Blanc 2025-01-30 255 if (xfer.len > ARRAY_SIZE(st->tx_data) ||
8cfce061c9e580 Esteban Blanc 2025-01-30 256 xfer.len > ARRAY_SIZE(st->rx_data.raw))
8cfce061c9e580 Esteban Blanc 2025-01-30 257 return -EINVAL;
8cfce061c9e580 Esteban Blanc 2025-01-30 258
8cfce061c9e580 Esteban Blanc 2025-01-30 259 ret = ad4030_enter_config_mode(st);
8cfce061c9e580 Esteban Blanc 2025-01-30 260 if (ret)
8cfce061c9e580 Esteban Blanc 2025-01-30 261 return ret;
8cfce061c9e580 Esteban Blanc 2025-01-30 262
8cfce061c9e580 Esteban Blanc 2025-01-30 @263 memset(st->tx_data, 0, ARRAY_SIZE(st->tx_data));
8cfce061c9e580 Esteban Blanc 2025-01-30 264 memcpy(st->tx_data, reg, reg_size);
8cfce061c9e580 Esteban Blanc 2025-01-30 265
8cfce061c9e580 Esteban Blanc 2025-01-30 266 ret = spi_sync_transfer(st->spi, &xfer, 1);
8cfce061c9e580 Esteban Blanc 2025-01-30 267 if (ret)
8cfce061c9e580 Esteban Blanc 2025-01-30 268 return ret;
8cfce061c9e580 Esteban Blanc 2025-01-30 269
8cfce061c9e580 Esteban Blanc 2025-01-30 270 memcpy(val, &st->rx_data.raw[reg_size], val_size);
8cfce061c9e580 Esteban Blanc 2025-01-30 271
8cfce061c9e580 Esteban Blanc 2025-01-30 272 return ad4030_exit_config_mode(st);
8cfce061c9e580 Esteban Blanc 2025-01-30 273 }
8cfce061c9e580 Esteban Blanc 2025-01-30 274
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2025-02-02 5:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-02 5:21 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-30 11:08 [PATCH v3 0/6] iio: adc: ad4030: new driver for AD4030 and similar ADCs Esteban Blanc
2025-01-30 11:08 ` [PATCH v3 2/6] iio: adc: ad4030: add driver for ad4030-24 Esteban Blanc
2025-01-31 5:40 ` kernel test robot
2025-01-31 18:14 ` Jonathan Cameron
2025-02-04 12:54 ` Esteban Blanc
2025-02-02 12:30 ` Dan Carpenter
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=202502021354.T5JOCCcy-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.