[ti:ti-linux-5.10.y 4098/6309] drivers/pci/controller/dwc/pci-keystone.c:299:6: warning: no previous prototype for function 'ks_pcie_irq_eoi'
by kernel test robot
Hi Kishon,
FYI, the error/warning still remains.
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.10.y
head: 31b50abb3ee1c8f78cb2d61c6fbbf074c7f5d99f
commit: f765f578153d8bfc7a035b1fce2c09d2c41bd980 [4098/6309] PCI: keystone: Convert to using hierarchy domain for legacy interrupts
config: arm64-randconfig-r002-20210711 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-linux-5.10.y
git checkout f765f578153d8bfc7a035b1fce2c09d2c41bd980
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/pci/controller/dwc/pci-keystone.c:299:6: warning: no previous prototype for function 'ks_pcie_irq_eoi' [-Wmissing-prototypes]
void ks_pcie_irq_eoi(struct irq_data *data)
^
drivers/pci/controller/dwc/pci-keystone.c:299:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void ks_pcie_irq_eoi(struct irq_data *data)
^
static
>> drivers/pci/controller/dwc/pci-keystone.c:308:6: warning: no previous prototype for function 'ks_pcie_irq_enable' [-Wmissing-prototypes]
void ks_pcie_irq_enable(struct irq_data *data)
^
drivers/pci/controller/dwc/pci-keystone.c:308:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void ks_pcie_irq_enable(struct irq_data *data)
^
static
>> drivers/pci/controller/dwc/pci-keystone.c:317:6: warning: no previous prototype for function 'ks_pcie_irq_disable' [-Wmissing-prototypes]
void ks_pcie_irq_disable(struct irq_data *data)
^
drivers/pci/controller/dwc/pci-keystone.c:317:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void ks_pcie_irq_disable(struct irq_data *data)
^
static
3 warnings generated.
vim +/ks_pcie_irq_eoi +299 drivers/pci/controller/dwc/pci-keystone.c
298
> 299 void ks_pcie_irq_eoi(struct irq_data *data)
300 {
301 struct keystone_pcie *ks_pcie = irq_data_get_irq_chip_data(data);
302 irq_hw_number_t hwirq = data->hwirq;
303
304 ks_pcie_app_writel(ks_pcie, IRQ_EOI, hwirq);
305 irq_chip_eoi_parent(data);
306 }
307
> 308 void ks_pcie_irq_enable(struct irq_data *data)
309 {
310 struct keystone_pcie *ks_pcie = irq_data_get_irq_chip_data(data);
311 irq_hw_number_t hwirq = data->hwirq;
312
313 ks_pcie_app_writel(ks_pcie, IRQ_ENABLE_SET(hwirq), INTx_EN);
314 irq_chip_enable_parent(data);
315 }
316
> 317 void ks_pcie_irq_disable(struct irq_data *data)
318 {
319 struct keystone_pcie *ks_pcie = irq_data_get_irq_chip_data(data);
320 irq_hw_number_t hwirq = data->hwirq;
321
322 ks_pcie_app_writel(ks_pcie, IRQ_ENABLE_CLR(hwirq), INTx_EN);
323 irq_chip_disable_parent(data);
324 }
325
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[sashal-linux-stable:pending-5.10 331/598] drivers/gpu/drm/vc4/vc4_crtc.c:538:27: error: use of undeclared identifier 'state'; did you mean 'stac'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head: b2dc84ee261d4651c10723b81720792ff6db40fb
commit: 1f621b79eec3b97b8577c30a8b5311d8a3a74967 [331/598] drm/vc4: crtc: Pass the drm_atomic_state to config_pv
config: x86_64-randconfig-a004-20210711 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-5.10
git checkout 1f621b79eec3b97b8577c30a8b5311d8a3a74967
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/ drivers/iio/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/vc4/vc4_crtc.c:538:27: error: use of undeclared identifier 'state'; did you mean 'stac'?
vc4_crtc_config_pv(crtc, state);
^~~~~
stac
arch/x86/include/asm/smap.h:50:29: note: 'stac' declared here
static __always_inline void stac(void)
^
1 error generated.
vim +538 drivers/gpu/drm/vc4/vc4_crtc.c
517
518 static void vc4_crtc_atomic_enable(struct drm_crtc *crtc,
519 struct drm_crtc_state *old_state)
520 {
521 struct drm_device *dev = crtc->dev;
522 struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc);
523 struct drm_encoder *encoder = vc4_get_crtc_encoder(crtc);
524 struct vc4_encoder *vc4_encoder = to_vc4_encoder(encoder);
525
526 require_hvs_enabled(dev);
527
528 /* Enable vblank irq handling before crtc is started otherwise
529 * drm_crtc_get_vblank() fails in vc4_crtc_update_dlist().
530 */
531 drm_crtc_vblank_on(crtc);
532
533 vc4_hvs_atomic_enable(crtc, old_state);
534
535 if (vc4_encoder->pre_crtc_configure)
536 vc4_encoder->pre_crtc_configure(encoder);
537
> 538 vc4_crtc_config_pv(crtc, state);
539
540 CRTC_WRITE(PV_CONTROL, CRTC_READ(PV_CONTROL) | PV_CONTROL_EN);
541
542 if (vc4_encoder->pre_crtc_enable)
543 vc4_encoder->pre_crtc_enable(encoder);
544
545 /* When feeding the transposer block the pixelvalve is unneeded and
546 * should not be enabled.
547 */
548 CRTC_WRITE(PV_V_CONTROL,
549 CRTC_READ(PV_V_CONTROL) | PV_VCONTROL_VIDEN);
550
551 if (vc4_encoder->post_crtc_enable)
552 vc4_encoder->post_crtc_enable(encoder);
553 }
554
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[sashal-linux-stable:pending-5.10 463/598] drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head: b2dc84ee261d4651c10723b81720792ff6db40fb
commit: aa8fd441c6fea5188223e742f6bf5a0c21e772d2 [463/598] iio: adis16475: do not directly change spi 'max_speed_hz'
config: arc-buildonly-randconfig-r004-20210711 (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-5.10
git checkout aa8fd441c6fea5188223e742f6bf5a0c21e772d2
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/iio/imu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:607:16: note: in expansion of macro 'ADIS16475_DATA'
607 | .adis_data = ADIS16475_DATA(16470, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:607:16: note: in expansion of macro 'ADIS16475_DATA'
607 | .adis_data = ADIS16475_DATA(16470, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[0].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:607:16: note: in expansion of macro 'ADIS16475_DATA'
607 | .adis_data = ADIS16475_DATA(16470, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:622:16: note: in expansion of macro 'ADIS16475_DATA'
622 | .adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:622:16: note: in expansion of macro 'ADIS16475_DATA'
622 | .adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[1].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:622:16: note: in expansion of macro 'ADIS16475_DATA'
622 | .adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:637:16: note: in expansion of macro 'ADIS16475_DATA'
637 | .adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:637:16: note: in expansion of macro 'ADIS16475_DATA'
637 | .adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[2].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:637:16: note: in expansion of macro 'ADIS16475_DATA'
637 | .adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:652:16: note: in expansion of macro 'ADIS16475_DATA'
652 | .adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:652:16: note: in expansion of macro 'ADIS16475_DATA'
652 | .adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[3].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:652:16: note: in expansion of macro 'ADIS16475_DATA'
652 | .adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:667:16: note: in expansion of macro 'ADIS16475_DATA'
667 | .adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:667:16: note: in expansion of macro 'ADIS16475_DATA'
667 | .adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[4].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:667:16: note: in expansion of macro 'ADIS16475_DATA'
667 | .adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:682:16: note: in expansion of macro 'ADIS16475_DATA'
682 | .adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:682:16: note: in expansion of macro 'ADIS16475_DATA'
682 | .adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[5].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:682:16: note: in expansion of macro 'ADIS16475_DATA'
682 | .adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:697:16: note: in expansion of macro 'ADIS16475_DATA'
697 | .adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:697:16: note: in expansion of macro 'ADIS16475_DATA'
697 | .adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[6].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:697:16: note: in expansion of macro 'ADIS16475_DATA'
697 | .adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:712:16: note: in expansion of macro 'ADIS16475_DATA'
712 | .adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:712:16: note: in expansion of macro 'ADIS16475_DATA'
712 | .adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[7].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:712:16: note: in expansion of macro 'ADIS16475_DATA'
712 | .adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:727:16: note: in expansion of macro 'ADIS16475_DATA'
727 | .adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:727:16: note: in expansion of macro 'ADIS16475_DATA'
727 | .adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[8].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:727:16: note: in expansion of macro 'ADIS16475_DATA'
727 | .adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:742:16: note: in expansion of macro 'ADIS16475_DATA'
742 | .adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
>> drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:742:16: note: in expansion of macro 'ADIS16475_DATA'
742 | .adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[9].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:742:16: note: in expansion of macro 'ADIS16475_DATA'
742 | .adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:757:16: note: in expansion of macro 'ADIS16475_DATA'
757 | .adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:757:16: note: in expansion of macro 'ADIS16475_DATA'
757 | .adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[10].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:757:16: note: in expansion of macro 'ADIS16475_DATA'
757 | .adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:772:16: note: in expansion of macro 'ADIS16475_DATA'
772 | .adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:772:16: note: in expansion of macro 'ADIS16475_DATA'
772 | .adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[11].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:772:16: note: in expansion of macro 'ADIS16475_DATA'
772 | .adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:787:16: note: in expansion of macro 'ADIS16475_DATA'
787 | .adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:787:16: note: in expansion of macro 'ADIS16475_DATA'
787 | .adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: note: (near initialization for 'adis16475_chip_info[12].adis_data')
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:787:16: note: in expansion of macro 'ADIS16475_DATA'
787 | .adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:571:3: error: 'const struct adis_data' has no member named 'burst_max_speed_hz'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
| ^~~~~~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:804:16: note: in expansion of macro 'ADIS16475_DATA'
804 | .adis_data = ADIS16475_DATA(16500, &adis1650x_timeouts),
| ^~~~~~~~~~~~~~
drivers/iio/imu/adis16475.c:64:35: warning: excess elements in struct initializer
64 | #define ADIS16475_BURST_MAX_SPEED 1000000
| ^~~~~~~
drivers/iio/imu/adis16475.c:571:24: note: in expansion of macro 'ADIS16475_BURST_MAX_SPEED'
571 | .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
vim +571 drivers/iio/imu/adis16475.c
545
546 #define ADIS16475_DATA(_prod_id, _timeouts) \
547 { \
548 .msc_ctrl_reg = ADIS16475_REG_MSG_CTRL, \
549 .glob_cmd_reg = ADIS16475_REG_GLOB_CMD, \
550 .diag_stat_reg = ADIS16475_REG_DIAG_STAT, \
551 .prod_id_reg = ADIS16475_REG_PROD_ID, \
552 .prod_id = (_prod_id), \
553 .self_test_mask = BIT(2), \
554 .self_test_reg = ADIS16475_REG_GLOB_CMD, \
555 .cs_change_delay = 16, \
556 .read_delay = 5, \
557 .write_delay = 5, \
558 .status_error_msgs = adis16475_status_error_msgs, \
559 .status_error_mask = BIT(ADIS16475_DIAG_STAT_DATA_PATH) | \
560 BIT(ADIS16475_DIAG_STAT_FLASH_MEM) | \
561 BIT(ADIS16475_DIAG_STAT_SPI) | \
562 BIT(ADIS16475_DIAG_STAT_STANDBY) | \
563 BIT(ADIS16475_DIAG_STAT_SENSOR) | \
564 BIT(ADIS16475_DIAG_STAT_MEMORY) | \
565 BIT(ADIS16475_DIAG_STAT_CLK), \
566 .enable_irq = adis16475_enable_irq, \
567 .timeouts = (_timeouts), \
568 .burst_reg_cmd = ADIS16475_REG_GLOB_CMD, \
569 .burst_len = ADIS16475_BURST_MAX_DATA, \
570 .burst_max_len = ADIS16475_BURST32_MAX_DATA, \
> 571 .burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
572 }
573
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[sashal-linux-stable:pending-5.10 463/598] drivers/iio/imu/adis16475.c:607:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head: b2dc84ee261d4651c10723b81720792ff6db40fb
commit: aa8fd441c6fea5188223e742f6bf5a0c21e772d2 [463/598] iio: adis16475: do not directly change spi 'max_speed_hz'
config: mips-randconfig-r021-20210711 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-5.10
git checkout aa8fd441c6fea5188223e742f6bf5a0c21e772d2
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/iio/imu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/iio/imu/adis16475.c:607:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16470, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:622:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:637:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:652:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:667:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:682:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:697:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:712:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:727:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:742:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:757:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:772:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:787:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:804:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16500, &adis1650x_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:821:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16505, &adis1650x_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:838:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16505, &adis1650x_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
^
drivers/iio/imu/adis16475.c:855:16: error: field designator 'burst_max_speed_hz' does not refer to any field in type 'const struct adis_data'
.adis_data = ADIS16475_DATA(16505, &adis1650x_timeouts),
^
drivers/iio/imu/adis16475.c:571:3: note: expanded from macro 'ADIS16475_DATA'
.burst_max_speed_hz = ADIS16475_BURST_MAX_SPEED \
vim +607 drivers/iio/imu/adis16475.c
fff7352bf7a3ce Nuno Sá 2020-04-13 592
fff7352bf7a3ce Nuno Sá 2020-04-13 593 static const struct adis16475_chip_info adis16475_chip_info[] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 594 [ADIS16470] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 595 .name = "adis16470",
fff7352bf7a3ce Nuno Sá 2020-04-13 596 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 597 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 598 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 599 .gyro_max_scale = IIO_RAD_TO_DEGREE(10 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 600 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 601 .accel_max_scale = IIO_M_S_2_TO_G(800 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 602 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 603 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 604 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 605 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 606 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 @607 .adis_data = ADIS16475_DATA(16470, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 608 },
fff7352bf7a3ce Nuno Sá 2020-04-13 609 [ADIS16475_1] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 610 .name = "adis16475-1",
fff7352bf7a3ce Nuno Sá 2020-04-13 611 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 612 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 613 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 614 .gyro_max_scale = IIO_RAD_TO_DEGREE(160 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 615 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 616 .accel_max_scale = IIO_M_S_2_TO_G(4000 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 617 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 618 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 619 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 620 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 621 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 622 .adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 623 },
fff7352bf7a3ce Nuno Sá 2020-04-13 624 [ADIS16475_2] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 625 .name = "adis16475-2",
fff7352bf7a3ce Nuno Sá 2020-04-13 626 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 627 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 628 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 629 .gyro_max_scale = IIO_RAD_TO_DEGREE(40 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 630 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 631 .accel_max_scale = IIO_M_S_2_TO_G(4000 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 632 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 633 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 634 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 635 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 636 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 637 .adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 638 },
fff7352bf7a3ce Nuno Sá 2020-04-13 639 [ADIS16475_3] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 640 .name = "adis16475-3",
fff7352bf7a3ce Nuno Sá 2020-04-13 641 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 642 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 643 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 644 .gyro_max_scale = IIO_RAD_TO_DEGREE(10 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 645 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 646 .accel_max_scale = IIO_M_S_2_TO_G(4000 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 647 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 648 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 649 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 650 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 651 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 652 .adis_data = ADIS16475_DATA(16475, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 653 },
fff7352bf7a3ce Nuno Sá 2020-04-13 654 [ADIS16477_1] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 655 .name = "adis16477-1",
fff7352bf7a3ce Nuno Sá 2020-04-13 656 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 657 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 658 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 659 .gyro_max_scale = IIO_RAD_TO_DEGREE(160 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 660 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 661 .accel_max_scale = IIO_M_S_2_TO_G(800 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 662 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 663 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 664 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 665 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 666 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 667 .adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 668 },
fff7352bf7a3ce Nuno Sá 2020-04-13 669 [ADIS16477_2] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 670 .name = "adis16477-2",
fff7352bf7a3ce Nuno Sá 2020-04-13 671 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 672 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 673 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 674 .gyro_max_scale = IIO_RAD_TO_DEGREE(40 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 675 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 676 .accel_max_scale = IIO_M_S_2_TO_G(800 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 677 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 678 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 679 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 680 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 681 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 682 .adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 683 },
fff7352bf7a3ce Nuno Sá 2020-04-13 684 [ADIS16477_3] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 685 .name = "adis16477-3",
fff7352bf7a3ce Nuno Sá 2020-04-13 686 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 687 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 688 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 689 .gyro_max_scale = IIO_RAD_TO_DEGREE(10 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 690 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 691 .accel_max_scale = IIO_M_S_2_TO_G(800 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 692 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 693 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 694 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 695 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 696 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 697 .adis_data = ADIS16475_DATA(16477, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 698 },
fff7352bf7a3ce Nuno Sá 2020-04-13 699 [ADIS16465_1] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 700 .name = "adis16465-1",
fff7352bf7a3ce Nuno Sá 2020-04-13 701 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 702 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 703 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 704 .gyro_max_scale = IIO_RAD_TO_DEGREE(160 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 705 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 706 .accel_max_scale = IIO_M_S_2_TO_G(4000 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 707 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 708 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 709 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 710 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 711 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 712 .adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 713 },
fff7352bf7a3ce Nuno Sá 2020-04-13 714 [ADIS16465_2] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 715 .name = "adis16465-2",
fff7352bf7a3ce Nuno Sá 2020-04-13 716 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 717 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 718 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 719 .gyro_max_scale = IIO_RAD_TO_DEGREE(40 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 720 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 721 .accel_max_scale = IIO_M_S_2_TO_G(4000 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 722 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 723 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 724 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 725 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 726 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 727 .adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 728 },
fff7352bf7a3ce Nuno Sá 2020-04-13 729 [ADIS16465_3] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 730 .name = "adis16465-3",
fff7352bf7a3ce Nuno Sá 2020-04-13 731 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 732 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 733 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 734 .gyro_max_scale = IIO_RAD_TO_DEGREE(10 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 735 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 736 .accel_max_scale = IIO_M_S_2_TO_G(4000 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 737 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 738 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 739 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 740 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 741 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 742 .adis_data = ADIS16475_DATA(16465, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 743 },
fff7352bf7a3ce Nuno Sá 2020-04-13 744 [ADIS16467_1] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 745 .name = "adis16467-1",
fff7352bf7a3ce Nuno Sá 2020-04-13 746 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 747 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 748 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 749 .gyro_max_scale = IIO_RAD_TO_DEGREE(160 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 750 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 751 .accel_max_scale = IIO_M_S_2_TO_G(800 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 752 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 753 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 754 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 755 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 756 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 757 .adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 758 },
fff7352bf7a3ce Nuno Sá 2020-04-13 759 [ADIS16467_2] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 760 .name = "adis16467-2",
fff7352bf7a3ce Nuno Sá 2020-04-13 761 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 762 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 763 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 764 .gyro_max_scale = IIO_RAD_TO_DEGREE(40 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 765 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 766 .accel_max_scale = IIO_M_S_2_TO_G(800 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 767 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 768 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 769 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 770 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 771 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 772 .adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 773 },
fff7352bf7a3ce Nuno Sá 2020-04-13 774 [ADIS16467_3] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 775 .name = "adis16467-3",
fff7352bf7a3ce Nuno Sá 2020-04-13 776 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 777 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 778 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 779 .gyro_max_scale = IIO_RAD_TO_DEGREE(10 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 780 .accel_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 781 .accel_max_scale = IIO_M_S_2_TO_G(800 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 782 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 783 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 784 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 785 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 786 .num_sync = ARRAY_SIZE(adis16475_sync_mode),
fff7352bf7a3ce Nuno Sá 2020-04-13 787 .adis_data = ADIS16475_DATA(16467, &adis16475_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 788 },
fff7352bf7a3ce Nuno Sá 2020-04-13 789 [ADIS16500] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 790 .name = "adis16500",
fff7352bf7a3ce Nuno Sá 2020-04-13 791 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 792 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 793 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 794 .gyro_max_scale = IIO_RAD_TO_DEGREE(10 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 795 .accel_max_val = 392,
fff7352bf7a3ce Nuno Sá 2020-04-13 796 .accel_max_scale = 32000 << 16,
fff7352bf7a3ce Nuno Sá 2020-04-13 797 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 798 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 799 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 800 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 801 /* pulse sync not supported */
fff7352bf7a3ce Nuno Sá 2020-04-13 802 .num_sync = ARRAY_SIZE(adis16475_sync_mode) - 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 803 .has_burst32 = true,
fff7352bf7a3ce Nuno Sá 2020-04-13 804 .adis_data = ADIS16475_DATA(16500, &adis1650x_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 805 },
fff7352bf7a3ce Nuno Sá 2020-04-13 806 [ADIS16505_1] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 807 .name = "adis16505-1",
fff7352bf7a3ce Nuno Sá 2020-04-13 808 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 809 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 810 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 811 .gyro_max_scale = IIO_RAD_TO_DEGREE(160 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 812 .accel_max_val = 78,
fff7352bf7a3ce Nuno Sá 2020-04-13 813 .accel_max_scale = 32000 << 16,
fff7352bf7a3ce Nuno Sá 2020-04-13 814 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 815 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 816 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 817 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 818 /* pulse sync not supported */
fff7352bf7a3ce Nuno Sá 2020-04-13 819 .num_sync = ARRAY_SIZE(adis16475_sync_mode) - 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 820 .has_burst32 = true,
fff7352bf7a3ce Nuno Sá 2020-04-13 821 .adis_data = ADIS16475_DATA(16505, &adis1650x_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 822 },
fff7352bf7a3ce Nuno Sá 2020-04-13 823 [ADIS16505_2] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 824 .name = "adis16505-2",
fff7352bf7a3ce Nuno Sá 2020-04-13 825 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 826 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 827 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 828 .gyro_max_scale = IIO_RAD_TO_DEGREE(40 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 829 .accel_max_val = 78,
fff7352bf7a3ce Nuno Sá 2020-04-13 830 .accel_max_scale = 32000 << 16,
fff7352bf7a3ce Nuno Sá 2020-04-13 831 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 832 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 833 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 834 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 835 /* pulse sync not supported */
fff7352bf7a3ce Nuno Sá 2020-04-13 836 .num_sync = ARRAY_SIZE(adis16475_sync_mode) - 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 837 .has_burst32 = true,
fff7352bf7a3ce Nuno Sá 2020-04-13 838 .adis_data = ADIS16475_DATA(16505, &adis1650x_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 839 },
fff7352bf7a3ce Nuno Sá 2020-04-13 840 [ADIS16505_3] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 841 .name = "adis16505-3",
fff7352bf7a3ce Nuno Sá 2020-04-13 842 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 843 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 844 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 845 .gyro_max_scale = IIO_RAD_TO_DEGREE(10 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 846 .accel_max_val = 78,
fff7352bf7a3ce Nuno Sá 2020-04-13 847 .accel_max_scale = 32000 << 16,
fff7352bf7a3ce Nuno Sá 2020-04-13 848 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 849 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 850 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 851 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 852 /* pulse sync not supported */
fff7352bf7a3ce Nuno Sá 2020-04-13 853 .num_sync = ARRAY_SIZE(adis16475_sync_mode) - 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 854 .has_burst32 = true,
fff7352bf7a3ce Nuno Sá 2020-04-13 855 .adis_data = ADIS16475_DATA(16505, &adis1650x_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 856 },
fff7352bf7a3ce Nuno Sá 2020-04-13 857 [ADIS16507_1] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 858 .name = "adis16507-1",
fff7352bf7a3ce Nuno Sá 2020-04-13 859 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 860 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 861 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 862 .gyro_max_scale = IIO_RAD_TO_DEGREE(160 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 863 .accel_max_val = 392,
fff7352bf7a3ce Nuno Sá 2020-04-13 864 .accel_max_scale = 32000 << 16,
fff7352bf7a3ce Nuno Sá 2020-04-13 865 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 866 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 867 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 868 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 869 /* pulse sync not supported */
fff7352bf7a3ce Nuno Sá 2020-04-13 870 .num_sync = ARRAY_SIZE(adis16475_sync_mode) - 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 871 .has_burst32 = true,
fff7352bf7a3ce Nuno Sá 2020-04-13 872 .adis_data = ADIS16475_DATA(16507, &adis1650x_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 873 },
fff7352bf7a3ce Nuno Sá 2020-04-13 874 [ADIS16507_2] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 875 .name = "adis16507-2",
fff7352bf7a3ce Nuno Sá 2020-04-13 876 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 877 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 878 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 879 .gyro_max_scale = IIO_RAD_TO_DEGREE(40 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 880 .accel_max_val = 392,
fff7352bf7a3ce Nuno Sá 2020-04-13 881 .accel_max_scale = 32000 << 16,
fff7352bf7a3ce Nuno Sá 2020-04-13 882 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 883 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 884 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 885 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 886 /* pulse sync not supported */
fff7352bf7a3ce Nuno Sá 2020-04-13 887 .num_sync = ARRAY_SIZE(adis16475_sync_mode) - 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 888 .has_burst32 = true,
fff7352bf7a3ce Nuno Sá 2020-04-13 889 .adis_data = ADIS16475_DATA(16507, &adis1650x_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 890 },
fff7352bf7a3ce Nuno Sá 2020-04-13 891 [ADIS16507_3] = {
fff7352bf7a3ce Nuno Sá 2020-04-13 892 .name = "adis16507-3",
fff7352bf7a3ce Nuno Sá 2020-04-13 893 .num_channels = ARRAY_SIZE(adis16475_channels),
fff7352bf7a3ce Nuno Sá 2020-04-13 894 .channels = adis16475_channels,
fff7352bf7a3ce Nuno Sá 2020-04-13 895 .gyro_max_val = 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 896 .gyro_max_scale = IIO_RAD_TO_DEGREE(10 << 16),
fff7352bf7a3ce Nuno Sá 2020-04-13 897 .accel_max_val = 392,
fff7352bf7a3ce Nuno Sá 2020-04-13 898 .accel_max_scale = 32000 << 16,
fff7352bf7a3ce Nuno Sá 2020-04-13 899 .temp_scale = 100,
fff7352bf7a3ce Nuno Sá 2020-04-13 900 .int_clk = 2000,
fff7352bf7a3ce Nuno Sá 2020-04-13 901 .max_dec = 1999,
fff7352bf7a3ce Nuno Sá 2020-04-13 902 .sync = adis16475_sync_mode,
fff7352bf7a3ce Nuno Sá 2020-04-13 903 /* pulse sync not supported */
fff7352bf7a3ce Nuno Sá 2020-04-13 904 .num_sync = ARRAY_SIZE(adis16475_sync_mode) - 1,
fff7352bf7a3ce Nuno Sá 2020-04-13 905 .has_burst32 = true,
fff7352bf7a3ce Nuno Sá 2020-04-13 906 .adis_data = ADIS16475_DATA(16507, &adis1650x_timeouts),
fff7352bf7a3ce Nuno Sá 2020-04-13 907 },
fff7352bf7a3ce Nuno Sá 2020-04-13 908 };
fff7352bf7a3ce Nuno Sá 2020-04-13 909
:::::: The code at line 607 was first introduced by commit
:::::: fff7352bf7a3ceb2bda2479a4b212101b065209d iio: imu: Add support for adis16475
:::::: TO: Nuno Sá <nuno.sa(a)analog.com>
:::::: CC: Jonathan Cameron <Jonathan.Cameron(a)huawei.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-stable-rc:linux-4.4.y 1449/1774] drivers/input/joydev.c:451:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'}
by kernel test robot
Hi Dan,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.4.y
head: 38c92ba3580f0d00e57a55caf8f880aa1a0f2a50
commit: ade5180681d778d36b569ad35cc175ab22196c5f [1449/1774] Input: joydev - prevent potential read overflow in ioctl
config: mips-randconfig-r013-20210705 (attached as .config)
compiler: mips64el-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.4.y
git checkout ade5180681d778d36b569ad35cc175ab22196c5f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/input/joydev.c: In function 'joydev_handle_JSIOCSAXMAP':
>> drivers/input/joydev.c:451:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
451 | for (i = 0; i < len && i < joydev->nabs; i++) {
| ^
drivers/input/joydev.c: In function 'joydev_handle_JSIOCSBTNMAP':
drivers/input/joydev.c:485:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
485 | for (i = 0; i < (len / 2) && i < joydev->nkey; i++) {
| ^
drivers/input/joydev.c: In function 'joydev_ioctl_common':
drivers/input/joydev.c:566:52: warning: operand of ?: changes signedness from 'int' to 'size_t' {aka 'long unsigned int'} due to unsignedness of other operand [-Wsign-compare]
566 | return copy_to_user(argp, joydev->abspam, len) ? -EFAULT : len;
drivers/input/joydev.c:573:52: warning: operand of ?: changes signedness from 'int' to 'size_t' {aka 'long unsigned int'} due to unsignedness of other operand [-Wsign-compare]
573 | return copy_to_user(argp, joydev->keypam, len) ? -EFAULT : len;
drivers/input/joydev.c:581:42: warning: operand of ?: changes signedness from 'int' to 'size_t' {aka 'long unsigned int'} due to unsignedness of other operand [-Wsign-compare]
581 | return copy_to_user(argp, name, len) ? -EFAULT : len;
vim +451 drivers/input/joydev.c
436
437 static int joydev_handle_JSIOCSAXMAP(struct joydev *joydev,
438 void __user *argp, size_t len)
439 {
440 __u8 *abspam;
441 int i;
442 int retval = 0;
443
444 len = min(len, sizeof(joydev->abspam));
445
446 /* Validate the map. */
447 abspam = memdup_user(argp, len);
448 if (IS_ERR(abspam))
449 return PTR_ERR(abspam);
450
> 451 for (i = 0; i < len && i < joydev->nabs; i++) {
452 if (abspam[i] > ABS_MAX) {
453 retval = -EINVAL;
454 goto out;
455 }
456 }
457
458 memcpy(joydev->abspam, abspam, len);
459
460 for (i = 0; i < joydev->nabs; i++)
461 joydev->absmap[joydev->abspam[i]] = i;
462
463 out:
464 kfree(abspam);
465 return retval;
466 }
467
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[zen-kernel-zen-kernel:5.12/muqss 9/16] arm-linux-gnueabi-ld: kernel/sysctl.o:undefined reference to `hrtimer_granularity_us'
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.12/muqss
head: a80522ac87ce290e80c283fa17988a4a0e57fd04
commit: 17886fe82995e8dbfe595e1d5de8717f3ffc73ed [9/16] Make hrtimer granularity and minimum hrtimeout configurable in sysctl. Set default granularity to 100us and min timeout to 500us.
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/zen-kernel/zen-kernel/commit/17886fe82995e8dbfe595e1d5...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.12/muqss
git checkout 17886fe82995e8dbfe595e1d5de8717f3ffc73ed
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arm-linux-gnueabi-ld: kernel/sysctl.o:(.data+0xc9c): undefined reference to `hrtimer_granularity_us'
arm-linux-gnueabi-ld: kernel/time/hrtimer.o: in function `schedule_min_hrtimeout':
(.sched.text+0x978): undefined reference to `hrtimer_granularity_us'
arm-linux-gnueabi-ld: kernel/trace/bpf_trace.o: in function `bpf_trace_run12':
(.text+0x8b9c): undefined reference to `__cant_migrate'
arm-linux-gnueabi-ld: kernel/trace/bpf_trace.o: in function `bpf_trace_run1':
(.text+0x965c): undefined reference to `__cant_migrate'
arm-linux-gnueabi-ld: kernel/trace/bpf_trace.o: in function `bpf_trace_run2':
(.text+0xa288): undefined reference to `__cant_migrate'
arm-linux-gnueabi-ld: kernel/trace/bpf_trace.o: in function `bpf_trace_run3':
(.text+0xad9c): undefined reference to `__cant_migrate'
arm-linux-gnueabi-ld: kernel/trace/bpf_trace.o: in function `bpf_trace_run4':
(.text+0xb8bc): undefined reference to `__cant_migrate'
arm-linux-gnueabi-ld: kernel/trace/bpf_trace.o:(.text+0xc3b4): more undefined references to `__cant_migrate' follow
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-stable-rc:linux-4.4.y 1224/1774] net/core/skbuff.c:1523:32: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.4.y
head: 38c92ba3580f0d00e57a55caf8f880aa1a0f2a50
commit: 2555bb2a5163e3741d5dd5916f3a9f0228750aca [1224/1774] net: drop bogus skb with CHECKSUM_PARTIAL and offset beyond end of trimmed packet
config: mips-randconfig-r013-20210705 (attached as .config)
compiler: mips64el-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.4.y
git checkout 2555bb2a5163e3741d5dd5916f3a9f0228750aca
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/net/sock.h:51,
from include/linux/tcp.h:22,
from net/core/skbuff.c:50:
include/linux/netdevice.h: In function 'netif_msg_init':
include/linux/netdevice.h:3304:37: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
3304 | if (debug_value < 0 || debug_value >= (sizeof(u32) * 8))
| ^~
In file included from include/net/rtnetlink.h:5,
from include/net/sch_generic.h:12,
from include/linux/filter.h:16,
from include/net/sock.h:62,
from include/linux/tcp.h:22,
from net/core/skbuff.c:50:
include/net/netlink.h: In function 'nlmsg_ok':
include/net/netlink.h:337:18: warning: comparison of integer expressions of different signedness: '__u32' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
337 | nlh->nlmsg_len <= remaining);
| ^~
include/net/netlink.h: In function 'nlmsg_parse':
include/net/netlink.h:372:21: warning: comparison of integer expressions of different signedness: '__u32' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
372 | if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen))
| ^
include/net/netlink.h: In function 'nlmsg_validate':
include/net/netlink.h:405:21: warning: comparison of integer expressions of different signedness: '__u32' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
405 | if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen))
| ^
In file included from include/net/sch_generic.h:12,
from include/linux/filter.h:16,
from include/net/sock.h:62,
from include/linux/tcp.h:22,
from net/core/skbuff.c:50:
include/net/rtnetlink.h: In function 'rtnl_msg_family':
include/net/rtnetlink.h:20:21: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
20 | if (nlmsg_len(nlh) >= sizeof(struct rtgenmsg))
| ^~
In file included from include/uapi/linux/stddef.h:1,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/list.h:4,
from include/linux/module.h:9,
from net/core/skbuff.c:41:
include/net/sch_generic.h: In function 'qdisc_cb_private_validate':
include/net/sch_generic.h:267:33: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
267 | BUILD_BUG_ON(sizeof(qcb->data) < sz);
| ^
include/linux/compiler.h:491:19: note: in definition of macro '__compiletime_assert'
491 | bool __cond = !(condition); \
| ^~~~~~~~~
include/linux/compiler.h:511:2: note: in expansion of macro '_compiletime_assert'
511 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/bug.h:50:37: note: in expansion of macro 'compiletime_assert'
50 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bug.h:74:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
74 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/net/sch_generic.h:267:2: note: in expansion of macro 'BUILD_BUG_ON'
267 | BUILD_BUG_ON(sizeof(qcb->data) < sz);
| ^~~~~~~~~~~~
In file included from include/net/sock.h:62,
from include/linux/tcp.h:22,
from net/core/skbuff.c:50:
include/linux/filter.h: In function 'bpf_needs_clear_a':
include/linux/filter.h:517:16: warning: comparison of integer expressions of different signedness: '__u32' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
517 | if (first->k == SKF_AD_OFF + SKF_AD_ALU_XOR_X)
| ^~
In file included from include/linux/tcp.h:22,
from net/core/skbuff.c:50:
include/net/sock.h: In function 'skb_do_copy_data_nocache':
include/net/sock.h:1838:54: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
1838 | if (csum_and_copy_from_iter(to, copy, &csum, from) != copy)
| ^~
include/net/sock.h:1842:46: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
1842 | if (copy_from_iter_nocache(to, copy, from) != copy)
| ^~
include/net/sock.h:1844:44: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
1844 | } else if (copy_from_iter(to, copy, from) != copy)
| ^~
In file included from include/linux/tcp.h:23,
from net/core/skbuff.c:50:
include/net/inet_connection_sock.h: In function 'inet_csk_reqsk_queue_is_full':
include/net/inet_connection_sock.h:294:38: warning: comparison of integer expressions of different signedness: 'int' and 'u32' {aka 'const unsigned int'} [-Wsign-compare]
294 | return inet_csk_reqsk_queue_len(sk) >= sk->sk_max_ack_backlog;
| ^~
net/core/skbuff.c: In function '___pskb_trim':
net/core/skbuff.c:1440:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
1440 | if (offset >= len)
| ^~
net/core/skbuff.c:1446:11: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
1446 | if (end < len) {
| ^
net/core/skbuff.c:1481:11: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
1481 | if (end < len) {
| ^
net/core/skbuff.c:1486:11: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
1486 | if (end > len &&
| ^
net/core/skbuff.c: In function 'pskb_trim_rcsum_slow':
>> net/core/skbuff.c:1523:32: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
1523 | if (offset + sizeof(__sum16) > hdlen)
| ^
net/core/skbuff.c: In function '__pskb_pull_tail':
net/core/skbuff.c:1603:18: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
1603 | if (list->len <= eat) {
| ^~
net/core/skbuff.c: In function 'skb_split_no_header':
net/core/skbuff.c:2571:18: warning: comparison of integer expressions of different signedness: 'int' and 'u32' {aka 'const unsigned int'} [-Wsign-compare]
2571 | if (pos + size > len) {
| ^
net/core/skbuff.c:2574:12: warning: comparison of integer expressions of different signedness: 'int' and 'u32' {aka 'const unsigned int'} [-Wsign-compare]
2574 | if (pos < len) {
| ^
net/core/skbuff.c: In function 'skb_split':
net/core/skbuff.c:2609:10: warning: comparison of integer expressions of different signedness: 'u32' {aka 'const unsigned int'} and 'int' [-Wsign-compare]
2609 | if (len < pos) /* Split line is inside header. */
| ^
In file included from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from arch/mips/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from net/core/skbuff.c:41:
net/core/skbuff.c: In function 'skb_shift':
net/core/skbuff.c:2648:18: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
2648 | BUG_ON(shiftlen > skb->len);
| ^
arch/mips/include/asm/bug.h:33:44: note: in definition of macro 'BUG_ON'
33 | #define BUG_ON(C) __BUG_ON((unsigned long)(C))
| ^
net/core/skbuff.c:2687:16: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
2687 | if ((shiftlen == skb->len) &&
| ^~
net/core/skbuff.c:2688:41: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
2688 | (skb_shinfo(skb)->nr_frags - from) > (MAX_SKB_FRAGS - to))
| ^
net/core/skbuff.c:2701:12: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
2701 | if (todo >= skb_frag_size(fragfrom)) {
| ^~
net/core/skbuff.c: In function 'skb_append_datato_frags':
net/core/skbuff.c:2952:15: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
2952 | if (frg_cnt >= MAX_SKB_FRAGS)
| ^~
net/core/skbuff.c: In function 'skb_append_pagefrags':
net/core/skbuff.c:2993:15: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
2993 | } else if (i < MAX_SKB_FRAGS) {
| ^
net/core/skbuff.c: In function 'skb_segment':
net/core/skbuff.c:3082:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
3082 | if (hsize > len || !sg)
| ^
net/core/skbuff.c:3095:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
3095 | while (pos < offset + len) {
| ^
net/core/skbuff.c:3099:20: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
3099 | if (pos + size > offset + len)
| ^
net/core/skbuff.c:3175:14: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
3175 | while (pos < offset + len) {
| ^
net/core/skbuff.c:3204:12: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
3204 | if (pos < offset) {
| ^
net/core/skbuff.c:3211:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
3211 | if (pos + size <= offset + len) {
| ^~
net/core/skbuff.c: In function 'skb_gro_receive':
net/core/skbuff.c:3282:16: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
3282 | if (nr_frags > MAX_SKB_FRAGS)
| ^
net/core/skbuff.c:3315:40: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
3315 | if (nr_frags + 1 + skbinfo->nr_frags > MAX_SKB_FRAGS)
| ^
net/core/skbuff.c: In function 'alloc_skb_with_frags':
net/core/skbuff.c:4540:13: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
4540 | if (npages > MAX_SKB_FRAGS)
| ^
In file included from arch/mips/include/asm/atomic.h:22,
from include/linux/atomic.h:4,
from include/linux/debug_locks.h:5,
from include/linux/lockdep.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/spinlock.h:81,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from net/core/skbuff.c:41:
arch/mips/include/asm/atomic.h: In function '__atomic_add_unless':
arch/mips/include/asm/cmpxchg.h:212:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
212 | if (sizeof(long) == 8) { \
| ^
arch/mips/include/asm/cmpxchg.h:227:33: note: in expansion of macro '__cmpxchg'
227 | #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_mb__before_llsc(), smp_llsc_mb())
| ^~~~~~~~~
vim +1523 net/core/skbuff.c
1508
1509 /* Note : use pskb_trim_rcsum() instead of calling this directly
1510 */
1511 int pskb_trim_rcsum_slow(struct sk_buff *skb, unsigned int len)
1512 {
1513 if (skb->ip_summed == CHECKSUM_COMPLETE) {
1514 int delta = skb->len - len;
1515
1516 skb->csum = csum_block_sub(skb->csum,
1517 skb_checksum(skb, len, delta, 0),
1518 len);
1519 } else if (skb->ip_summed == CHECKSUM_PARTIAL) {
1520 int hdlen = (len > skb_headlen(skb)) ? skb_headlen(skb) : len;
1521 int offset = skb_checksum_start_offset(skb) + skb->csum_offset;
1522
> 1523 if (offset + sizeof(__sum16) > hdlen)
1524 return -EINVAL;
1525 }
1526 return __pskb_trim(skb, len);
1527 }
1528 EXPORT_SYMBOL(pskb_trim_rcsum_slow);
1529
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH v3 2/7] drm/msm/dsi: add three helper functions
by kernel test robot
Hi Dmitry,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on next-20210709]
[cannot apply to v5.13]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Dmitry-Baryshkov/drm-msm-dpu-add...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 1e16624d7b4376797ede36e3c955375cf0f23298
config: arm-randconfig-r016-20210711 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/0day-ci/linux/commit/d60158cc75b16689ac121290b56216091...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmitry-Baryshkov/drm-msm-dpu-add-support-for-independent-DSI-config/20210711-062150
git checkout d60158cc75b16689ac121290b562160916b57833
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/msm/adreno/adreno_device.c:9:
In file included from drivers/gpu/drm/msm/adreno/adreno_gpu.h:15:
In file included from drivers/gpu/drm/msm/msm_gpu.h:16:
>> drivers/gpu/drm/msm/msm_drv.h:382:14: error: expected ';' after return statement
return false
^
;
>> drivers/gpu/drm/msm/msm_drv.h:380:6: warning: no previous prototype for function 'msm_dsi_is_master_dsi' [-Wmissing-prototypes]
bool msm_dsi_is_master_dsi(struct msm_dsi *msm_dsi)
^
drivers/gpu/drm/msm/msm_drv.h:380:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool msm_dsi_is_master_dsi(struct msm_dsi *msm_dsi)
^
static
1 warning and 1 error generated.
--
In file included from drivers/gpu/drm/msm/dp/dp_display.c:14:
>> drivers/gpu/drm/msm/msm_drv.h:382:14: error: expected ';' after return statement
return false
^
;
>> drivers/gpu/drm/msm/msm_drv.h:380:6: warning: no previous prototype for function 'msm_dsi_is_master_dsi' [-Wmissing-prototypes]
bool msm_dsi_is_master_dsi(struct msm_dsi *msm_dsi)
^
drivers/gpu/drm/msm/msm_drv.h:380:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool msm_dsi_is_master_dsi(struct msm_dsi *msm_dsi)
^
static
drivers/gpu/drm/msm/dp/dp_display.c:1017:21: warning: variable 'drm' set but not used [-Wunused-but-set-variable]
struct drm_device *drm;
^
2 warnings and 1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for QCOM_SCM
Depends on (ARM || ARM64) && HAVE_ARM_SMCCC
Selected by
- ARM_QCOM_SPM_CPUIDLE && CPU_IDLE && (ARM || ARM64) && (ARCH_QCOM || COMPILE_TEST && !ARM64 && MMU
vim +382 drivers/gpu/drm/msm/msm_drv.h
339
340 struct msm_edp;
341 void __init msm_edp_register(void);
342 void __exit msm_edp_unregister(void);
343 int msm_edp_modeset_init(struct msm_edp *edp, struct drm_device *dev,
344 struct drm_encoder *encoder);
345
346 struct msm_dsi;
347 #ifdef CONFIG_DRM_MSM_DSI
348 void __init msm_dsi_register(void);
349 void __exit msm_dsi_unregister(void);
350 int msm_dsi_modeset_init(struct msm_dsi *msm_dsi, struct drm_device *dev,
351 struct drm_encoder *encoder);
352 void msm_dsi_snapshot(struct msm_disp_state *disp_state, struct msm_dsi *msm_dsi);
353 bool msm_dsi_is_cmd_mode(struct msm_dsi *msm_dsi);
354 bool msm_dsi_is_bonded_dsi(struct msm_dsi *msm_dsi);
355 bool msm_dsi_is_master_dsi(struct msm_dsi *msm_dsi);
356 #else
357 static inline void __init msm_dsi_register(void)
358 {
359 }
360 static inline void __exit msm_dsi_unregister(void)
361 {
362 }
363 static inline int msm_dsi_modeset_init(struct msm_dsi *msm_dsi,
364 struct drm_device *dev,
365 struct drm_encoder *encoder)
366 {
367 return -EINVAL;
368 }
369 static inline void msm_dsi_snapshot(struct msm_disp_state *disp_state, struct msm_dsi *msm_dsi)
370 {
371 }
372 static inline bool msm_dsi_is_cmd_mode(struct msm_dsi *msm_dsi)
373 {
374 return false;
375 }
376 static bool msm_dsi_is_bonded_dsi(struct msm_dsi *msm_dsi)
377 {
378 return false;
379 }
> 380 bool msm_dsi_is_master_dsi(struct msm_dsi *msm_dsi)
381 {
> 382 return false
383 }
384 #endif
385
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months