[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202410171139.5QhZ0EZG-lkp@intel.com>
Date: Thu, 17 Oct 2024 11:50:14 +0800
From: kernel test robot <lkp@...el.com>
To: Per-Daniel Olsson <perdaniel.olsson@...s.com>,
Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
rickard.andersson@...s.com, kernel@...s.com,
Per-Daniel Olsson <perdaniel.olsson@...s.com>
Subject: Re: [PATCH v3 2/2] iio: light: Add support for TI OPT4060 color
sensor
Hi Per-Daniel,
kernel test robot noticed the following build warnings:
[auto build test WARNING on eca631b8fe808748d7585059c4307005ca5c5820]
url: https://github.com/intel-lab-lkp/linux/commits/Per-Daniel-Olsson/dt-bindings-iio-light-Document-TI-OPT4060-RGBW-sensor/20241015-224128
base: eca631b8fe808748d7585059c4307005ca5c5820
patch link: https://lore.kernel.org/r/20241015143713.2017626-3-perdaniel.olsson%40axis.com
patch subject: [PATCH v3 2/2] iio: light: Add support for TI OPT4060 color sensor
config: x86_64-randconfig-121-20241017 (https://download.01.org/0day-ci/archive/20241017/202410171139.5QhZ0EZG-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241017/202410171139.5QhZ0EZG-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410171139.5QhZ0EZG-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/iio/light/opt4060.c:836:9: sparse: sparse: statement expected after case label
vim +836 drivers/iio/light/opt4060.c
807
808 static int opt4060_write_event(struct iio_dev *indio_dev,
809 const struct iio_chan_spec *chan,
810 enum iio_event_type type,
811 enum iio_event_direction dir,
812 enum iio_event_info info,
813 int val, int val2)
814 {
815 struct opt4060_chip *chip = iio_priv(indio_dev);
816
817 switch (info) {
818 case IIO_EV_INFO_VALUE:
819 if (chan->type == IIO_INTENSITY && type == IIO_EV_TYPE_THRESH) {
820 u32 th_lo, th_hi;
821
822 if (opt4060_get_thresholds(chip, &th_lo, &th_hi))
823 return -EFAULT;
824 if (dir == IIO_EV_DIR_FALLING)
825 th_lo = val;
826 else if (dir == IIO_EV_DIR_RISING)
827 th_hi = val;
828 if (opt4060_set_thresholds(chip, th_lo, th_hi))
829 return -EFAULT;
830 return 0;
831 }
832 break;
833 case IIO_EV_INFO_PERIOD:
834 return opt4060_write_ev_period(chip, val, val2);
835 default:
> 836 }
837 return -EINVAL;
838 }
839
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists