Re: [PATCH v2 7/7] iio: pressure bmp280: Move bmp085 interrupt to new configuration

kernel test robot
2024-07-27T00:30:15Z

Hi Vasileios,

kernel test robot noticed the following build errors:

[auto build test ERROR on 47ee461357f9da5a35d5f43527b7804a6a5744cb]

url: https://github.com/intel-lab-lkp/linux/commits/Vasileios-Amoiridis/iio-pressure-bmp280-Use-bulk-read-for-humidity-calibration-data/20240726-071712
base: 47ee461357f9da5a35d5f43527b7804a6a5744cb
patch link: https://lore.kernel.org/r/20240725231039.614536-8-vassilisamir%40gmail.com
patch subject: [PATCH v2 7/7] iio: pressure bmp280: Move bmp085 interrupt to new configuration
config: s390-randconfig-002-20240726 (https://download.01.org/0day-ci/archive/20240727/202407270859.izJnB7MZ-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240727/202407270859.izJnB7MZ-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/202407270859.izJnB7MZ-lkp@intel.com/

All errors (new ones prefixed by >>):

In file included from drivers/iio/pressure/bmp280-core.c:36:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:14:
In file included from arch/s390/include/asm/io.h:93:
include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
#define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
^
In file included from drivers/iio/pressure/bmp280-core.c:36:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:14:
In file included from arch/s390/include/asm/io.h:93:
include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
#define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
^
In file included from drivers/iio/pressure/bmp280-core.c:36:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:14:
In file included from arch/s390/include/asm/io.h:93:
include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:693:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:701:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:709:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:718:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:727:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:736:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> drivers/iio/pressure/bmp280-core.c:3146:29: error: initializer element is not a compile-time constant
.id_reg = bmp180_chip_info.id_reg,
~~~~~~~~~~~~~~~~~^~~~~~
12 warnings and 1 error generated.

vim +3146 drivers/iio/pressure/bmp280-core.c

3144
3145 const struct bmp280_chip_info bmp085_chip_info = {
> 3146 .id_reg = bmp180_chip_info.id_reg,
3147 .chip_id = bmp180_chip_info.chip_id,
3148 .num_chip_id = bmp180_chip_info.num_chip_id,
3149 .regmap_config = bmp180_chip_info.regmap_config,
3150 .start_up_time = bmp180_chip_info.start_up_time,
3151 .channels = bmp180_chip_info.channels,
3152 .num_channels = bmp180_chip_info.num_channels,
3153 .avail_scan_masks = bmp180_chip_info.avail_scan_masks,
3154
3155 .oversampling_temp_avail = bmp180_chip_info.oversampling_temp_avail,
3156 .num_oversampling_temp_avail =
3157 bmp180_chip_info.num_oversampling_temp_avail,
3158 .oversampling_temp_default = bmp180_chip_info.oversampling_temp_default,
3159
3160 .oversampling_press_avail = bmp180_chip_info.oversampling_press_avail,
3161 .num_oversampling_press_avail =
3162 bmp180_chip_info.num_oversampling_press_avail,
3163 .oversampling_press_default =
3164 bmp180_chip_info.oversampling_press_default,
3165
3166 .temp_coeffs = bmp180_chip_info.temp_coeffs,
3167 .temp_coeffs_type = bmp180_chip_info.temp_coeffs_type,
3168 .press_coeffs = bmp180_chip_info.press_coeffs,
3169 .press_coeffs_type = bmp180_chip_info.press_coeffs_type,
3170
3171 .chip_config = bmp180_chip_info.chip_config,
3172 .read_temp = bmp180_chip_info.read_temp,
3173 .read_press = bmp180_chip_info.read_press,
3174 .read_calib = bmp180_chip_info.read_calib,
3175 .set_mode = bmp180_chip_info.set_mode,
3176 .wait_conv = bmp180_chip_info.wait_conv,
3177
3178 .trigger_probe = bmp085_trigger_probe,
3179 .trigger_handler = bmp180_trigger_handler,
3180 };
3181 EXPORT_SYMBOL_NS(bmp085_chip_info, IIO_BMP280);
3182

--
0-DAY CI Kernel Test Service