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 V5 2/2] iio: proximity: aw9610x: Add support for aw9610x proximity sensor
Date: Sun, 28 Jul 2024 23:35:55 +0800 [thread overview]
Message-ID: <202407282339.D0ICTGHF-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20240726061312.1371450-3-wangshuaijie@awinic.com>
References: <20240726061312.1371450-3-wangshuaijie@awinic.com>
TO: wangshuaijie@awinic.com
TO: jic23@kernel.org
TO: lars@metafoo.de
TO: robh@kernel.org
TO: krzk+dt@kernel.org
TO: conor+dt@kernel.org
TO: waqar.hameed@axis.com
TO: linux-iio@vger.kernel.org
TO: devicetree@vger.kernel.org
TO: linux-kernel@vger.kernel.org
CC: wangshuaijie@awinic.com
CC: liweilei@awinic.com
CC: kangjiajun@awinic.com
Hi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 1722389b0d863056d78287a120a1d6cadb8d4f7b]
url: https://github.com/intel-lab-lkp/linux/commits/wangshuaijie-awinic-com/dt-bindings-iio-aw9610x-Add-bindings-for-aw9610x-sensor/20240726-141450
base: 1722389b0d863056d78287a120a1d6cadb8d4f7b
patch link: https://lore.kernel.org/r/20240726061312.1371450-3-wangshuaijie%40awinic.com
patch subject: [PATCH V5 2/2] iio: proximity: aw9610x: Add support for aw9610x proximity sensor
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: x86_64-randconfig-r071-20240728 (https://download.01.org/0day-ci/archive/20240728/202407282339.D0ICTGHF-lkp@intel.com/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.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/202407282339.D0ICTGHF-lkp@intel.com/
smatch warnings:
drivers/iio/proximity/aw9610x.c:575 aw9610x_read_chipid() error: uninitialized symbol 'reg_val'.
vim +/reg_val +575 drivers/iio/proximity/aw9610x.c
1e0a5bf0d81329 shuaijie wang 2024-07-26 557
1e0a5bf0d81329 shuaijie wang 2024-07-26 558 static int aw9610x_read_chipid(struct aw9610x *aw9610x)
1e0a5bf0d81329 shuaijie wang 2024-07-26 559 {
1e0a5bf0d81329 shuaijie wang 2024-07-26 560 unsigned char cnt = 0;
1e0a5bf0d81329 shuaijie wang 2024-07-26 561 u32 reg_val;
1e0a5bf0d81329 shuaijie wang 2024-07-26 562 int ret;
1e0a5bf0d81329 shuaijie wang 2024-07-26 563
1e0a5bf0d81329 shuaijie wang 2024-07-26 564 while (cnt < AW_READ_CHIPID_RETRIES) {
1e0a5bf0d81329 shuaijie wang 2024-07-26 565 ret = aw9610x_i2c_read(aw9610x, REG_CHIPID, ®_val);
1e0a5bf0d81329 shuaijie wang 2024-07-26 566 if (ret < 0) {
1e0a5bf0d81329 shuaijie wang 2024-07-26 567 cnt++;
1e0a5bf0d81329 shuaijie wang 2024-07-26 568 usleep_range(2000, 3000);
1e0a5bf0d81329 shuaijie wang 2024-07-26 569 } else {
1e0a5bf0d81329 shuaijie wang 2024-07-26 570 reg_val = FIELD_GET(AW9610X_CHIPID_MASK, reg_val);
1e0a5bf0d81329 shuaijie wang 2024-07-26 571 break;
1e0a5bf0d81329 shuaijie wang 2024-07-26 572 }
1e0a5bf0d81329 shuaijie wang 2024-07-26 573 }
1e0a5bf0d81329 shuaijie wang 2024-07-26 574
1e0a5bf0d81329 shuaijie wang 2024-07-26 @575 if (reg_val == AW9610X_CHIP_ID)
1e0a5bf0d81329 shuaijie wang 2024-07-26 576 return 0;
1e0a5bf0d81329 shuaijie wang 2024-07-26 577
1e0a5bf0d81329 shuaijie wang 2024-07-26 578 return -EINVAL;
1e0a5bf0d81329 shuaijie wang 2024-07-26 579 }
1e0a5bf0d81329 shuaijie wang 2024-07-26 580
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-07-28 15:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-28 15:35 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-07-26 6:13 [PATCH V5 0/2] Add support for aw9610x proximity sensor wangshuaijie
2024-07-26 6:13 ` [PATCH V5 2/2] iio: proximity: aw9610x: " wangshuaijie
2024-07-27 9:51 ` Krzysztof Kozlowski
2024-07-27 15:06 ` Jonathan Cameron
2024-07-28 8:41 ` Krzysztof Kozlowski
2024-07-27 15:02 ` Jonathan Cameron
2024-08-08 10:27 ` wangshuaijie
2024-08-10 10:16 ` Jonathan Cameron
2024-07-29 15:28 ` Dan Carpenter
2024-08-02 17:16 ` 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=202407282339.D0ICTGHF-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.