From: kernel test robot <lkp@intel.com>
To: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>,
jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org,
tomas.melin@vaisala.com, andy.shevchenko@gmail.com,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, linux-iio@vger.kernel.org
Subject: Re: [PATCH V5 3/5] iio: accel: sca3300: modified to support multi chips
Date: Fri, 13 May 2022 08:29:10 +0800 [thread overview]
Message-ID: <202205130756.Q7e8x6jf-lkp@intel.com> (raw)
In-Reply-To: <20220512160312.3880433-4-Qing-wu.Li@leica-geosystems.com.cn>
Hi LI,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on jic23-iio/togreg]
[also build test WARNING on v5.18-rc6]
[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/intel-lab-lkp/linux/commits/LI-Qingwu/iio-accel-sca3300-add-compatible-for-scl3300/20220513-000857
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: arm-randconfig-c002-20220512 (https://download.01.org/0day-ci/archive/20220513/202205130756.Q7e8x6jf-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/15579266e58d7cdf4ff8e7ad7a4fa30a0bd3a589
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review LI-Qingwu/iio-accel-sca3300-add-compatible-for-scl3300/20220513-000857
git checkout 15579266e58d7cdf4ff8e7ad7a4fa30a0bd3a589
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/iio/accel/
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/accel/sca3300.c: In function 'sca3300_get_op_mode':
>> drivers/iio/accel/sca3300.c:288:58: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
288 | if (sca_data->chip->avail_modes_table[i] == reg_val&0x03)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
vim +288 drivers/iio/accel/sca3300.c
276
277 static int sca3300_get_op_mode(struct sca3300_data *sca_data, int *index)
278 {
279 int reg_val;
280 int ret;
281 int i;
282
283 ret = sca3300_read_reg(sca_data, SCA3300_REG_MODE, ®_val);
284 if (ret)
285 return ret;
286
287 for (i = 0; i < sca_data->chip->num_avail_modes; i++) {
> 288 if (sca_data->chip->avail_modes_table[i] == reg_val&0x03)
289 break;
290 }
291
292 if (i >= sca_data->chip->num_avail_modes)
293 return -EINVAL;
294
295 *index = i;
296 return 0;
297 }
298
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next prev parent reply other threads:[~2022-05-13 0:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-12 16:03 [PATCH V5 0/5] iio: accel: sca3300: add compatible for scl3300 LI Qingwu
2022-05-12 16:03 ` [PATCH V5 1/5] dt-bindings: iio: accel: sca3300: Document murata,scl3300 LI Qingwu
2022-05-12 16:03 ` [PATCH V5 2/5] iio: accel: sca3300: add define for temp channel for reuse LI Qingwu
2022-05-12 16:03 ` [PATCH V5 3/5] iio: accel: sca3300: modified to support multi chips LI Qingwu
2022-05-12 17:31 ` Andy Shevchenko
2022-05-13 0:29 ` kernel test robot [this message]
2022-05-13 8:49 ` Andy Shevchenko
2022-05-13 8:49 ` Andy Shevchenko
2022-05-13 1:00 ` kernel test robot
2022-05-12 16:03 ` [PATCH V5 4/5] iio: accel: sca3300: Add support for SCL3300 LI Qingwu
2022-05-12 17:32 ` Andy Shevchenko
2022-05-12 16:03 ` [PATCH V5 5/5] iio: accel: sca3300: Add inclination channels LI Qingwu
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=202205130756.Q7e8x6jf-lkp@intel.com \
--to=lkp@intel.com \
--cc=Qing-wu.Li@leica-geosystems.com.cn \
--cc=andy.shevchenko@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=tomas.melin@vaisala.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 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.