[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202410170546.5rfqxnWM-lkp@intel.com>
Date: Thu, 17 Oct 2024 06:10:03 +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-161-20241017 (https://download.01.org/0day-ci/archive/20241017/202410170546.5rfqxnWM-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410170546.5rfqxnWM-lkp@intel.com/
smatch warnings:
drivers/iio/light/opt4060.c:932 opt4060_volatile_reg() warn: always true condition '(reg >= 0) => (0-u32max >= 0)'
vim +932 drivers/iio/light/opt4060.c
929
930 static bool opt4060_volatile_reg(struct device *dev, unsigned int reg)
931 {
> 932 return (reg >= OPT4060_RED_MSB && reg <= OPT4060_CLEAR_LSB) ||
933 (reg == OPT4060_RES_CTRL);
934 }
935
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists