From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v2 2/2] one-bit-adc-dac: Add initial version of one bit ADC-DAC
Date: Thu, 13 Jan 2022 00:29:23 +0800 [thread overview]
Message-ID: <202201130058.u8Hmc486-lkp@intel.com> (raw)
In-Reply-To: <20220111115919.14645-2-cristian.pop@analog.com>
[-- Attachment #1: Type: text/plain, Size: 3157 bytes --]
Hi Cristian,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on jic23-iio/togreg]
[also build test WARNING on next-20220112]
[cannot apply to v5.16]
[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]
url: https://github.com/0day-ci/linux/commits/Cristian-Pop/dt-bindings-iio-addac-one-bit-adc-dac-yaml-documentation/20220111-194908
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220113/202201130058.u8Hmc486-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/d68b55a2493d868d6464f86ba93ff092613cae76
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Cristian-Pop/dt-bindings-iio-addac-one-bit-adc-dac-yaml-documentation/20220111-194908
git checkout d68b55a2493d868d6464f86ba93ff092613cae76
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/vmwgfx/ drivers/iio/addac/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/iio/addac/one-bit-adc-dac.c: In function 'one_bit_adc_dac_set_channel_label':
>> drivers/iio/addac/one-bit-adc-dac.c:115:24: warning: variable 'chan' set but not used [-Wunused-but-set-variable]
115 | struct iio_chan_spec *chan;
| ^~~~
vim +/chan +115 drivers/iio/addac/one-bit-adc-dac.c
106
107 static int one_bit_adc_dac_set_channel_label(struct iio_dev *indio_dev,
108 struct iio_chan_spec *channels,
109 int num_channels)
110 {
111 struct device *device = indio_dev->dev.parent;
112 struct one_bit_adc_dac_state *st = iio_priv(indio_dev);
113 struct fwnode_handle *fwnode;
114 struct fwnode_handle *child;
> 115 struct iio_chan_spec *chan;
116 const char *label;
117 int crt_ch = 0, child_num, i = 0;
118
119 fwnode = dev_fwnode(device);
120 child_num = device_get_child_node_count(device);
121
122 st->labels = devm_kzalloc(device, sizeof(*st->labels) * child_num, GFP_KERNEL);
123 if (!st->labels)
124 return -ENOMEM;
125
126 i = child_num;
127 fwnode_for_each_child_node(fwnode, child) {
128 if (fwnode_property_read_u32(child, "reg", &crt_ch))
129 continue;
130
131 if (crt_ch >= num_channels)
132 continue;
133
134 if (fwnode_property_read_string(child, "label", &label))
135 continue;
136
137 chan = &channels[crt_ch];
138 st->labels[--i] = label;
139 }
140
141 return 0;
142 }
143
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next prev parent reply other threads:[~2022-01-12 16:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-11 11:59 [PATCH v2 1/2] dt-bindings: iio: addac: one-bit-adc-dac yaml documentation Cristian Pop
2022-01-11 11:59 ` [PATCH v2 2/2] one-bit-adc-dac: Add initial version of one bit ADC-DAC Cristian Pop
2022-01-12 15:23 ` Andy Shevchenko
2022-01-12 16:29 ` kernel test robot [this message]
2022-01-16 11:52 ` Jonathan Cameron
2022-01-18 17:06 ` Andy Shevchenko
2022-01-21 14:56 ` Jonathan Cameron
2022-01-19 9:38 ` Sa, Nuno
2022-01-21 10:24 ` Pop, Cristian
2022-01-21 14:54 ` Jonathan Cameron
2022-01-11 15:14 ` [PATCH v2 1/2] dt-bindings: iio: addac: one-bit-adc-dac yaml documentation Rob Herring
2022-01-11 22:02 ` Rob Herring
2022-01-16 11:30 ` Jonathan Cameron
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=202201130058.u8Hmc486-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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.