From: kernel test robot <lkp@intel.com>
To: Per-Daniel Olsson <perdaniel.olsson@axis.com>,
Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
rickard.andersson@axis.com, kernel@axis.com,
Per-Daniel Olsson <perdaniel.olsson@axis.com>
Subject: Re: [PATCH v2 2/2] iio: light: Add support for TI OPT4060 color sensor
Date: Mon, 7 Oct 2024 23:04:20 +0800 [thread overview]
Message-ID: <202410072240.s3wGb17S-lkp@intel.com> (raw)
In-Reply-To: <20241005165119.3549472-3-perdaniel.olsson@axis.com>
Hi Per-Daniel,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 0c559323bbaabee7346c12e74b497e283aaafef5]
url: https://github.com/intel-lab-lkp/linux/commits/Per-Daniel-Olsson/dt-bindings-iio-light-Document-TI-OPT4060-RGBW-sensor/20241006-005244
base: 0c559323bbaabee7346c12e74b497e283aaafef5
patch link: https://lore.kernel.org/r/20241005165119.3549472-3-perdaniel.olsson%40axis.com
patch subject: [PATCH v2 2/2] iio: light: Add support for TI OPT4060 color sensor
config: csky-randconfig-r122-20241007 (https://download.01.org/0day-ci/archive/20241007/202410072240.s3wGb17S-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20241007/202410072240.s3wGb17S-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/202410072240.s3wGb17S-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/iio/light/opt4060.c:963:9: sparse: sparse: dereference of noderef expression
>> drivers/iio/light/opt4060.c:963:9: sparse: sparse: dereference of noderef expression
>> drivers/iio/light/opt4060.c:963:9: sparse: sparse: dereference of noderef expression
vim +963 drivers/iio/light/opt4060.c
951
952 static irqreturn_t opt4060_trigger_handler(int irq, void *p)
953 {
954 struct iio_poll_func *pf = p;
955 struct iio_dev *idev = pf->indio_dev;
956 struct opt4060_chip *chip = iio_priv(idev);
957 struct opt4060_buffer raw;
958 int ret, chan;
959 int i = 0;
960
961 memset(&raw, 0, sizeof(raw));
962
> 963 for_each_set_bit(chan, idev->active_scan_mask, idev->masklength) {
964 ret = opt4060_read_raw_value(chip,
965 opt4060_channels[chan].address,
966 &raw.chan[i++]);
967 if (ret) {
968 dev_err(chip->dev, "Reading raw channel data failed\n");
969 goto err_read;
970 }
971 }
972
973 iio_push_to_buffers_with_timestamp(idev, &raw, pf->timestamp);
974 err_read:
975 iio_trigger_notify_done(idev->trig);
976 return IRQ_HANDLED;
977 }
978
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-10-07 15:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-05 16:51 [PATCH v2 0/2] Support for Texas Instruments OPT4060 RGBW Color sensor Per-Daniel Olsson
2024-10-05 16:51 ` [PATCH v2 1/2] dt-bindings: iio: light: Document TI OPT4060 RGBW sensor Per-Daniel Olsson
2024-10-06 12:34 ` Krzysztof Kozlowski
2024-10-05 16:51 ` [PATCH v2 2/2] iio: light: Add support for TI OPT4060 color sensor Per-Daniel Olsson
2024-10-06 15:18 ` Jonathan Cameron
2024-10-08 12:05 ` Per-Daniel Olsson
2024-10-07 6:38 ` kernel test robot
2024-10-07 15:04 ` kernel test robot [this message]
2024-10-06 15:24 ` [PATCH v2 0/2] Support for Texas Instruments OPT4060 RGBW Color sensor Jonathan Cameron
2024-10-07 13:37 ` Per-Daniel Olsson
2024-10-08 17:11 ` Jonathan Cameron
2024-10-15 15:50 ` Per-Daniel Olsson
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=202410072240.s3wGb17S-lkp@intel.com \
--to=lkp@intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=kernel@axis.com \
--cc=krzk@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=perdaniel.olsson@axis.com \
--cc=rickard.andersson@axis.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox