From: kernel test robot <lkp@intel.com>
To: Jorge Marques <jorge.marques@analog.com>,
Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Michael Hennerich <Michael.Hennerich@analog.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
David Lechner <dlechner@baylibre.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-doc@vger.kernel.org,
Jorge Marques <jorge.marques@analog.com>
Subject: Re: [PATCH 4/4] iio: adc: add support for ad4052
Date: Fri, 7 Mar 2025 20:06:23 +0800 [thread overview]
Message-ID: <202503071916.STHJTSlp-lkp@intel.com> (raw)
In-Reply-To: <20250306-iio-driver-ad4052-v1-4-2badad30116c@analog.com>
Hi Jorge,
kernel test robot noticed the following build warnings:
[auto build test WARNING on aac287ec80d71a7ab7e44c936a434625417c3e30]
url: https://github.com/intel-lab-lkp/linux/commits/Jorge-Marques/iio-code-mark-iio_dev-as-const-in-iio_buffer_enabled/20250306-220719
base: aac287ec80d71a7ab7e44c936a434625417c3e30
patch link: https://lore.kernel.org/r/20250306-iio-driver-ad4052-v1-4-2badad30116c%40analog.com
patch subject: [PATCH 4/4] iio: adc: add support for ad4052
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20250307/202503071916.STHJTSlp-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250307/202503071916.STHJTSlp-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/202503071916.STHJTSlp-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/iio/adc/ad4052.c:239:18: warning: 'ad4052_sample_rate_avail' defined but not used [-Wunused-const-variable=]
239 | static const int ad4052_sample_rate_avail[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/iio/adc/ad4052.c:214:41: warning: 'ad4052_regmap_wr_table' defined but not used [-Wunused-const-variable=]
214 | static const struct regmap_access_table ad4052_regmap_wr_table = {
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/iio/adc/ad4052.c:201:41: warning: 'ad4052_regmap_rd_table' defined but not used [-Wunused-const-variable=]
201 | static const struct regmap_access_table ad4052_regmap_rd_table = {
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/ad4052_sample_rate_avail +239 drivers/iio/adc/ad4052.c
200
> 201 static const struct regmap_access_table ad4052_regmap_rd_table = {
202 .yes_ranges = ad4052_regmap_rd_ranges,
203 .n_yes_ranges = ARRAY_SIZE(ad4052_regmap_rd_ranges),
204 };
205
206 static const struct regmap_range ad4052_regmap_wr_ranges[] = {
207 regmap_reg_range(AD4052_REG_INTERFACE_CONFIG_A, AD4052_REG_DEVICE_CONFIG),
208 regmap_reg_range(AD4052_REG_SCRATCH_PAD, AD4052_REG_SCRATCH_PAD),
209 regmap_reg_range(AD4052_REG_STREAM_MODE, AD4052_REG_INTERFACE_STATUS),
210 regmap_reg_range(AD4052_REG_MODE_SET, AD4052_REG_MON_VAL),
211 regmap_reg_range(AD4052_REG_FUSE_CRC, AD4052_REG_DEVICE_STATUS),
212 };
213
> 214 static const struct regmap_access_table ad4052_regmap_wr_table = {
215 .yes_ranges = ad4052_regmap_wr_ranges,
216 .n_yes_ranges = ARRAY_SIZE(ad4052_regmap_wr_ranges),
217 };
218
219 static const struct iio_event_spec ad4052_events[] = {
220 {
221 .type = IIO_EV_TYPE_THRESH,
222 .dir = IIO_EV_DIR_EITHER,
223 .mask_shared_by_all = BIT(IIO_EV_INFO_ENABLE)
224 },
225 {
226 .type = IIO_EV_TYPE_THRESH,
227 .dir = IIO_EV_DIR_RISING,
228 .mask_shared_by_all = BIT(IIO_EV_INFO_VALUE) |
229 BIT(IIO_EV_INFO_HYSTERESIS)
230 },
231 {
232 .type = IIO_EV_TYPE_THRESH,
233 .dir = IIO_EV_DIR_FALLING,
234 .mask_shared_by_all = BIT(IIO_EV_INFO_VALUE) |
235 BIT(IIO_EV_INFO_HYSTERESIS)
236 }
237 };
238
> 239 static const int ad4052_sample_rate_avail[] = {
240 2000000, 1000000, 300000, 100000, 33300,
241 10000, 3000, 500, 333, 250, 200,
242 166, 140, 125, 111
243 };
244
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-03-07 12:06 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-06 14:03 [PATCH 0/4] Add support for AD4052 device family Jorge Marques
2025-03-06 14:03 ` [PATCH 1/4] iio: code: mark iio_dev as const in iio_buffer_enabled Jorge Marques
2025-03-06 14:03 ` [PATCH 2/4] dt-bindings: iio: adc: Add adi,ad4052 Jorge Marques
2025-03-06 16:31 ` Conor Dooley
2025-03-08 15:05 ` Jonathan Cameron
2025-03-09 19:43 ` Jorge Marques
2025-03-10 19:35 ` Jonathan Cameron
2025-03-07 10:51 ` David Lechner
2025-03-09 20:11 ` Jorge Marques
2025-03-08 15:10 ` Jonathan Cameron
2025-03-09 20:25 ` Jorge Marques
2025-03-06 14:03 ` [PATCH 3/4] docs: iio: new docs for ad4052 driver Jorge Marques
2025-03-07 10:52 ` David Lechner
2025-03-09 20:49 ` Jorge Marques
2025-03-10 14:31 ` David Lechner
2025-03-10 19:56 ` Jonathan Cameron
2025-03-14 17:34 ` Jorge Marques
2025-03-15 18:24 ` Jonathan Cameron
2025-03-10 19:54 ` Jonathan Cameron
2025-03-14 18:13 ` Jorge Marques
2025-03-14 18:56 ` David Lechner
2025-03-19 16:59 ` Jorge Marques
2025-03-06 14:03 ` [PATCH 4/4] iio: adc: add support for ad4052 Jorge Marques
2025-03-07 12:06 ` kernel test robot [this message]
2025-03-07 12:39 ` kernel test robot
2025-03-07 14:22 ` kernel test robot
2025-03-08 16:02 ` Jonathan Cameron
2025-03-10 11:36 ` Jorge Marques
2025-03-08 16:12 ` Christophe JAILLET
2025-03-10 11:37 ` Jorge Marques
-- strict thread matches above, loose matches on Subject: below --
2025-03-09 19:36 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=202503071916.STHJTSlp-lkp@intel.com \
--to=lkp@intel.com \
--cc=Michael.Hennerich@analog.com \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=jorge.marques@analog.com \
--cc=krzk@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-doc@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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 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.