lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 27 Mar 2022 08:08:39 +0800
From:   kernel test robot <lkp@...el.com>
To:     Bart Van Assche <bvanassche@....org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [bvanassche:ufs-for-next-2022-03-25 33/33]
 include/linux/of.h:857:28: error: initializer element is not constant

tree:   https://github.com/bvanassche/linux ufs-for-next-2022-03-25
head:   ac30f53240eb3296851f8d8d691ec36bfde92307
commit: ac30f53240eb3296851f8d8d691ec36bfde92307 [33/33] of.h: Improve of_match_node()
config: xtensa-randconfig-m031-20220327 (https://download.01.org/0day-ci/archive/20220327/202203270815.J07XgGLC-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 11.2.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/bvanassche/linux/commit/ac30f53240eb3296851f8d8d691ec36bfde92307
        git remote add bvanassche https://github.com/bvanassche/linux
        git fetch --no-tags bvanassche ufs-for-next-2022-03-25
        git checkout ac30f53240eb3296851f8d8d691ec36bfde92307
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash drivers/char/tpm/ drivers/clk/ drivers/crypto/ drivers/dma/ drivers/gpio/ drivers/hwmon/ drivers/i2c/busses/ drivers/i2c/muxes/ drivers/iio/adc/ drivers/iio/imu/bmi160/ drivers/input/joystick/ drivers/input/misc/ drivers/input/serio/ drivers/input/touchscreen/ drivers/leds/ drivers/media/i2c/ drivers/mfd/ drivers/misc/lis3lv02d/ drivers/mtd/devices/ drivers/power/supply/ drivers/pwm/ drivers/uio/ drivers/video/backlight/ drivers/w1/masters/ sound/soc/codecs/ sound/soc/dwc/ sound/soc/xtensa/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/clk-provider.h:9,
                    from drivers/clk/clk-cdce706.c:11:
>> drivers/clk/clk-cdce706.c:693:48: error: 'cdce706_dt_match' undeclared here (not in a function); did you mean 'cdce706_dev_data'?
     693 |                 .of_match_table = of_match_ptr(cdce706_dt_match),
         |                                                ^~~~~~~~~~~~~~~~
   include/linux/of.h:857:30: note: in definition of macro 'of_match_ptr'
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                              ^~~~
   include/linux/of.h:857:35: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                                   ^
   drivers/clk/clk-cdce706.c:693:35: note: in expansion of macro 'of_match_ptr'
     693 |                 .of_match_table = of_match_ptr(cdce706_dt_match),
         |                                   ^~~~~~~~~~~~
>> include/linux/of.h:857:28: error: initializer element is not constant
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/clk/clk-cdce706.c:693:35: note: in expansion of macro 'of_match_ptr'
     693 |                 .of_match_table = of_match_ptr(cdce706_dt_match),
         |                                   ^~~~~~~~~~~~
   include/linux/of.h:857:28: note: (near initialization for 'cdce706_i2c_driver.driver.of_match_table')
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/clk/clk-cdce706.c:693:35: note: in expansion of macro 'of_match_ptr'
     693 |                 .of_match_table = of_match_ptr(cdce706_dt_match),
         |                                   ^~~~~~~~~~~~
--
   In file included from include/linux/irqdomain.h:35,
                    from include/linux/acpi.h:13,
                    from include/linux/i2c.h:13,
                    from drivers/crypto/atmel-ecc.c:13:
>> drivers/crypto/atmel-ecc.c:385:48: error: 'atmel_ecc_dt_ids' undeclared here (not in a function); did you mean 'atmel_ecc_id'?
     385 |                 .of_match_table = of_match_ptr(atmel_ecc_dt_ids),
         |                                                ^~~~~~~~~~~~~~~~
   include/linux/of.h:857:30: note: in definition of macro 'of_match_ptr'
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                              ^~~~
   include/linux/of.h:857:35: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                                   ^
   drivers/crypto/atmel-ecc.c:385:35: note: in expansion of macro 'of_match_ptr'
     385 |                 .of_match_table = of_match_ptr(atmel_ecc_dt_ids),
         |                                   ^~~~~~~~~~~~
>> include/linux/of.h:857:28: error: initializer element is not constant
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/crypto/atmel-ecc.c:385:35: note: in expansion of macro 'of_match_ptr'
     385 |                 .of_match_table = of_match_ptr(atmel_ecc_dt_ids),
         |                                   ^~~~~~~~~~~~
   include/linux/of.h:857:28: note: (near initialization for 'atmel_ecc_driver.driver.of_match_table')
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/crypto/atmel-ecc.c:385:35: note: in expansion of macro 'of_match_ptr'
     385 |                 .of_match_table = of_match_ptr(atmel_ecc_dt_ids),
         |                                   ^~~~~~~~~~~~
--
   In file included from include/linux/of_dma.h:13,
                    from drivers/dma/altera-msgdma.c:22:
>> drivers/dma/altera-msgdma.c:954:48: error: 'msgdma_match' undeclared here (not in a function)
     954 |                 .of_match_table = of_match_ptr(msgdma_match),
         |                                                ^~~~~~~~~~~~
   include/linux/of.h:857:30: note: in definition of macro 'of_match_ptr'
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                              ^~~~
   include/linux/of.h:857:35: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                                   ^
   drivers/dma/altera-msgdma.c:954:35: note: in expansion of macro 'of_match_ptr'
     954 |                 .of_match_table = of_match_ptr(msgdma_match),
         |                                   ^~~~~~~~~~~~
>> include/linux/of.h:857:28: error: initializer element is not constant
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/dma/altera-msgdma.c:954:35: note: in expansion of macro 'of_match_ptr'
     954 |                 .of_match_table = of_match_ptr(msgdma_match),
         |                                   ^~~~~~~~~~~~
   include/linux/of.h:857:28: note: (near initialization for 'msgdma_driver.driver.of_match_table')
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/dma/altera-msgdma.c:954:35: note: in expansion of macro 'of_match_ptr'
     954 |                 .of_match_table = of_match_ptr(msgdma_match),
         |                                   ^~~~~~~~~~~~
--
   In file included from include/linux/irqdomain.h:35,
                    from include/linux/gpio/driver.h:9,
                    from drivers/gpio/gpio-mmio.c:55:
>> drivers/gpio/gpio-mmio.c:810:48: error: 'bgpio_of_match' undeclared here (not in a function)
     810 |                 .of_match_table = of_match_ptr(bgpio_of_match),
         |                                                ^~~~~~~~~~~~~~
   include/linux/of.h:857:30: note: in definition of macro 'of_match_ptr'
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                              ^~~~
   include/linux/of.h:857:35: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                                   ^
   drivers/gpio/gpio-mmio.c:810:35: note: in expansion of macro 'of_match_ptr'
     810 |                 .of_match_table = of_match_ptr(bgpio_of_match),
         |                                   ^~~~~~~~~~~~
>> include/linux/of.h:857:28: error: initializer element is not constant
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/gpio/gpio-mmio.c:810:35: note: in expansion of macro 'of_match_ptr'
     810 |                 .of_match_table = of_match_ptr(bgpio_of_match),
         |                                   ^~~~~~~~~~~~
   include/linux/of.h:857:28: note: (near initialization for 'bgpio_driver.driver.of_match_table')
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/gpio/gpio-mmio.c:810:35: note: in expansion of macro 'of_match_ptr'
     810 |                 .of_match_table = of_match_ptr(bgpio_of_match),
         |                                   ^~~~~~~~~~~~
--
   In file included from include/linux/irqdomain.h:35,
                    from include/linux/acpi.h:13,
                    from include/linux/i2c.h:13,
                    from drivers/gpio/gpio-adp5588.c:13:
>> drivers/gpio/gpio-adp5588.c:460:48: error: 'adp5588_gpio_of_id' undeclared here (not in a function); did you mean 'adp5588_gpio_id'?
     460 |                 .of_match_table = of_match_ptr(adp5588_gpio_of_id),
         |                                                ^~~~~~~~~~~~~~~~~~
   include/linux/of.h:857:30: note: in definition of macro 'of_match_ptr'
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                              ^~~~
   include/linux/of.h:857:35: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                                   ^
   drivers/gpio/gpio-adp5588.c:460:35: note: in expansion of macro 'of_match_ptr'
     460 |                 .of_match_table = of_match_ptr(adp5588_gpio_of_id),
         |                                   ^~~~~~~~~~~~
>> include/linux/of.h:857:28: error: initializer element is not constant
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/gpio/gpio-adp5588.c:460:35: note: in expansion of macro 'of_match_ptr'
     460 |                 .of_match_table = of_match_ptr(adp5588_gpio_of_id),
         |                                   ^~~~~~~~~~~~
   include/linux/of.h:857:28: note: (near initialization for 'adp5588_gpio_driver.driver.of_match_table')
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/gpio/gpio-adp5588.c:460:35: note: in expansion of macro 'of_match_ptr'
     460 |                 .of_match_table = of_match_ptr(adp5588_gpio_of_id),
         |                                   ^~~~~~~~~~~~
--
   In file included from include/linux/irqdomain.h:35,
                    from include/linux/gpio/driver.h:9,
                    from drivers/gpio/gpio-max732x.c:17:
>> drivers/gpio/gpio-max732x.c:740:48: error: 'max732x_of_table' undeclared here (not in a function); did you mean 'max732x_probe'?
     740 |                 .of_match_table = of_match_ptr(max732x_of_table),
         |                                                ^~~~~~~~~~~~~~~~
   include/linux/of.h:857:30: note: in definition of macro 'of_match_ptr'
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                              ^~~~
   include/linux/of.h:857:35: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                                   ^
   drivers/gpio/gpio-max732x.c:740:35: note: in expansion of macro 'of_match_ptr'
     740 |                 .of_match_table = of_match_ptr(max732x_of_table),
         |                                   ^~~~~~~~~~~~
>> include/linux/of.h:857:28: error: initializer element is not constant
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/gpio/gpio-max732x.c:740:35: note: in expansion of macro 'of_match_ptr'
     740 |                 .of_match_table = of_match_ptr(max732x_of_table),
         |                                   ^~~~~~~~~~~~
   include/linux/of.h:857:28: note: (near initialization for 'max732x_driver.driver.of_match_table')
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/gpio/gpio-max732x.c:740:35: note: in expansion of macro 'of_match_ptr'
     740 |                 .of_match_table = of_match_ptr(max732x_of_table),
         |                                   ^~~~~~~~~~~~
--
   In file included from include/linux/irqdomain.h:35,
                    from include/linux/acpi.h:13,
                    from drivers/char/tpm/tpm_tis_i2c_cr50.c:19:
>> drivers/char/tpm/tpm_tis_i2c_cr50.c:790:48: error: 'of_cr50_i2c_match' undeclared here (not in a function)
     790 |                 .of_match_table = of_match_ptr(of_cr50_i2c_match),
         |                                                ^~~~~~~~~~~~~~~~~
   include/linux/of.h:857:30: note: in definition of macro 'of_match_ptr'
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                              ^~~~
   include/linux/of.h:857:35: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                                   ^
   drivers/char/tpm/tpm_tis_i2c_cr50.c:790:35: note: in expansion of macro 'of_match_ptr'
     790 |                 .of_match_table = of_match_ptr(of_cr50_i2c_match),
         |                                   ^~~~~~~~~~~~
>> include/linux/of.h:857:28: error: initializer element is not constant
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/char/tpm/tpm_tis_i2c_cr50.c:790:35: note: in expansion of macro 'of_match_ptr'
     790 |                 .of_match_table = of_match_ptr(of_cr50_i2c_match),
         |                                   ^~~~~~~~~~~~
   include/linux/of.h:857:28: note: (near initialization for 'cr50_i2c_driver.driver.of_match_table')
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/char/tpm/tpm_tis_i2c_cr50.c:790:35: note: in expansion of macro 'of_match_ptr'
     790 |                 .of_match_table = of_match_ptr(of_cr50_i2c_match),
         |                                   ^~~~~~~~~~~~
--
   In file included from include/linux/irqdomain.h:35,
                    from include/linux/acpi.h:13,
                    from include/linux/i2c.h:13,
                    from drivers/char/tpm/tpm_i2c_atmel.c:22:
>> drivers/char/tpm/tpm_i2c_atmel.c:213:48: error: 'i2c_atmel_of_match' undeclared here (not in a function)
     213 |                 .of_match_table = of_match_ptr(i2c_atmel_of_match),
         |                                                ^~~~~~~~~~~~~~~~~~
   include/linux/of.h:857:30: note: in definition of macro 'of_match_ptr'
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                              ^~~~
   include/linux/of.h:857:35: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                                   ^
   drivers/char/tpm/tpm_i2c_atmel.c:213:35: note: in expansion of macro 'of_match_ptr'
     213 |                 .of_match_table = of_match_ptr(i2c_atmel_of_match),
         |                                   ^~~~~~~~~~~~
>> include/linux/of.h:857:28: error: initializer element is not constant
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/char/tpm/tpm_i2c_atmel.c:213:35: note: in expansion of macro 'of_match_ptr'
     213 |                 .of_match_table = of_match_ptr(i2c_atmel_of_match),
         |                                   ^~~~~~~~~~~~
   include/linux/of.h:857:28: note: (near initialization for 'i2c_atmel_driver.driver.of_match_table')
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/char/tpm/tpm_i2c_atmel.c:213:35: note: in expansion of macro 'of_match_ptr'
     213 |                 .of_match_table = of_match_ptr(i2c_atmel_of_match),
         |                                   ^~~~~~~~~~~~
--
   In file included from include/linux/irqdomain.h:35,
                    from include/linux/acpi.h:13,
                    from include/linux/i2c.h:13,
                    from drivers/char/tpm/tpm_i2c_infineon.c:18:
>> drivers/char/tpm/tpm_i2c_infineon.c:727:51: error: 'tpm_tis_i2c_of_match' undeclared here (not in a function); did you mean 'tpm_tis_i2c_status'?
     727 |                    .of_match_table = of_match_ptr(tpm_tis_i2c_of_match),
         |                                                   ^~~~~~~~~~~~~~~~~~~~
   include/linux/of.h:857:30: note: in definition of macro 'of_match_ptr'
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                              ^~~~
   include/linux/of.h:857:35: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                                   ^
   drivers/char/tpm/tpm_i2c_infineon.c:727:38: note: in expansion of macro 'of_match_ptr'
     727 |                    .of_match_table = of_match_ptr(tpm_tis_i2c_of_match),
         |                                      ^~~~~~~~~~~~
>> include/linux/of.h:857:28: error: initializer element is not constant
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/char/tpm/tpm_i2c_infineon.c:727:38: note: in expansion of macro 'of_match_ptr'
     727 |                    .of_match_table = of_match_ptr(tpm_tis_i2c_of_match),
         |                                      ^~~~~~~~~~~~
   include/linux/of.h:857:28: note: (near initialization for 'tpm_tis_i2c_driver.driver.of_match_table')
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/char/tpm/tpm_i2c_infineon.c:727:38: note: in expansion of macro 'of_match_ptr'
     727 |                    .of_match_table = of_match_ptr(tpm_tis_i2c_of_match),
         |                                      ^~~~~~~~~~~~
--
   In file included from include/linux/irqdomain.h:35,
                    from include/linux/acpi.h:13,
                    from include/linux/i2c.h:13,
                    from drivers/hwmon/ad7414.c:20:
   include/linux/of.h:857:35: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                                   ^
   drivers/hwmon/ad7414.c:222:35: note: in expansion of macro 'of_match_ptr'
     222 |                 .of_match_table = of_match_ptr(ad7414_of_match),
         |                                   ^~~~~~~~~~~~
>> include/linux/of.h:857:28: error: initializer element is not constant
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/hwmon/ad7414.c:222:35: note: in expansion of macro 'of_match_ptr'
     222 |                 .of_match_table = of_match_ptr(ad7414_of_match),
         |                                   ^~~~~~~~~~~~
   include/linux/of.h:857:28: note: (near initialization for 'ad7414_driver.driver.of_match_table')
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/hwmon/ad7414.c:222:35: note: in expansion of macro 'of_match_ptr'
     222 |                 .of_match_table = of_match_ptr(ad7414_of_match),
         |                                   ^~~~~~~~~~~~
--
   In file included from include/linux/irqdomain.h:35,
                    from include/linux/acpi.h:13,
                    from include/linux/i2c.h:13,
                    from drivers/hwmon/adc128d818.c:15:
   include/linux/of.h:857:35: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                                   ^
   drivers/hwmon/adc128d818.c:524:35: note: in expansion of macro 'of_match_ptr'
     524 |                 .of_match_table = of_match_ptr(adc128_of_match),
         |                                   ^~~~~~~~~~~~
>> include/linux/of.h:857:28: error: initializer element is not constant
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/hwmon/adc128d818.c:524:35: note: in expansion of macro 'of_match_ptr'
     524 |                 .of_match_table = of_match_ptr(adc128_of_match),
         |                                   ^~~~~~~~~~~~
   include/linux/of.h:857:28: note: (near initialization for 'adc128_driver.driver.of_match_table')
     857 | #define of_match_ptr(_ptr) ((_ptr), NULL)
         |                            ^
   drivers/hwmon/adc128d818.c:524:35: note: in expansion of macro 'of_match_ptr'
     524 |                 .of_match_table = of_match_ptr(adc128_of_match),
         |                                   ^~~~~~~~~~~~
..


vim +857 include/linux/of.h

   856	
 > 857	#define of_match_ptr(_ptr) ((_ptr), NULL)
   858	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ