From: kernel test robot <lkp@intel.com>
To: wangshuaijie@awinic.com, jic23@kernel.org, lars@metafoo.de,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
waqar.hameed@axis.com, linux-iio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, wangshuaijie@awinic.com,
liweilei@awinic.com, kangjiajun@awinic.com
Subject: Re: [PATCH V3 2/2] Add support for Awinic proximity sensor
Date: Sat, 13 Jul 2024 14:15:19 +0800 [thread overview]
Message-ID: <202407131316.CrET2D2p-lkp@intel.com> (raw)
In-Reply-To: <20240712113200.2468249-3-wangshuaijie@awinic.com>
Hi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 43db1e03c086ed20cc75808d3f45e780ec4ca26e]
url: https://github.com/intel-lab-lkp/linux/commits/wangshuaijie-awinic-com/dt-bindings-iio-Add-YAML-to-Awinic-proximity-sensor/20240712-194024
base: 43db1e03c086ed20cc75808d3f45e780ec4ca26e
patch link: https://lore.kernel.org/r/20240712113200.2468249-3-wangshuaijie%40awinic.com
patch subject: [PATCH V3 2/2] Add support for Awinic proximity sensor
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20240713/202407131316.CrET2D2p-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240713/202407131316.CrET2D2p-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/202407131316.CrET2D2p-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/iio/proximity/aw9610x.c: In function 'aw9610x_datablock_load':
>> drivers/iio/proximity/aw9610x.c:665:1: warning: the frame size of 1356 bytes is larger than 1024 bytes [-Wframe-larger-than=]
665 | }
| ^
vim +665 drivers/iio/proximity/aw9610x.c
634
635 static void aw9610x_datablock_load(struct aw_sar *p_sar, const char *buf)
636 {
637 struct aw9610x *aw9610x = p_sar->priv_data;
638 unsigned char addr_bytes = aw9610x->aw_i2c_package.addr_bytes;
639 unsigned char data_bytes = aw9610x->aw_i2c_package.data_bytes;
640 unsigned char reg_num = aw9610x->aw_i2c_package.reg_num;
641 unsigned char reg_data[220] = { 0 };
642 unsigned int databuf[220] = { 0 };
643 unsigned char temp_buf[2] = { 0 };
644 unsigned int i;
645
646 for (i = 0; i < data_bytes * reg_num; i++) {
647 if (reg_num < attr_buf[1]) {
648 temp_buf[0] = buf[attr_buf[0] + (addr_bytes + i) * 5];
649 temp_buf[1] =
650 buf[attr_buf[0] + (addr_bytes + i) * 5 + 1];
651 } else if (reg_num >= attr_buf[1] && reg_num < attr_buf[3]) {
652 temp_buf[0] = buf[attr_buf[2] + (addr_bytes + i) * 5];
653 temp_buf[1] =
654 buf[attr_buf[2] + (addr_bytes + i) * 5 + 1];
655 } else if (reg_num >= attr_buf[3] && reg_num < attr_buf[5]) {
656 temp_buf[0] = buf[attr_buf[4] + (addr_bytes + i) * 5];
657 temp_buf[1] =
658 buf[attr_buf[4] + (addr_bytes + i) * 5 + 1];
659 }
660 sscanf(temp_buf, "%02x", &databuf[i]);
661 reg_data[i] = (unsigned char)databuf[i];
662 }
663 aw9610x->aw_i2c_package.p_reg_data = reg_data;
664 aw9610x_awrw_write_seq(p_sar);
> 665 }
666
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-07-13 6:16 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-12 11:31 [PATCH V3 0/2] Add support for Awinic SAR sensor wangshuaijie
2024-07-12 11:31 ` [PATCH V3 1/2] dt-bindings: iio: Add YAML to Awinic proximity sensor wangshuaijie
2024-07-12 11:55 ` Krzysztof Kozlowski
2024-07-13 12:15 ` Jonathan Cameron
2024-07-25 12:47 ` wangshuaijie
2024-07-25 13:53 ` Krzysztof Kozlowski
2024-07-12 12:34 ` Rob Herring (Arm)
2024-07-12 11:32 ` [PATCH V3 2/2] Add support for " wangshuaijie
2024-07-12 12:01 ` Krzysztof Kozlowski
2024-07-25 12:48 ` wangshuaijie
2024-07-12 14:33 ` Markus Elfring
2024-07-12 22:22 ` kernel test robot
2024-07-13 6:15 ` kernel test robot [this message]
2024-07-13 8:50 ` kernel test robot
2024-07-13 10:33 ` kernel test robot
2024-07-13 14:27 ` Jonathan Cameron
2024-07-25 12:47 ` wangshuaijie
2024-07-27 12:22 ` Jonathan Cameron
2024-07-12 11:49 ` [PATCH V3 0/2] Add support for Awinic SAR sensor Waqar Hameed
2024-07-25 12:48 ` wangshuaijie
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=202407131316.CrET2D2p-lkp@intel.com \
--to=lkp@intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=kangjiajun@awinic.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liweilei@awinic.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robh@kernel.org \
--cc=wangshuaijie@awinic.com \
--cc=waqar.hameed@axis.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).