[shawnguo:imx/dt64 61/65] include/vdso/bits.h:7:33: warning: excess elements in struct initializer

kernel test robot lkp at intel.com
Thu Dec 16 14:06:33 PST 2021


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git imx/dt64
head:   99aa299322718d46f1d9f0552231c8eab5ec7f9c
commit: 31d517ab0a3cb40e11c5400ef0ec393e4a34db65 [61/65] soc: imx: imx8m-blk-ctrl: add i.MX8MN DISP blk-ctrl
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20211217/202112170542.njccjabE-lkp@intel.com/config)
compiler: alpha-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://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git/commit/?id=31d517ab0a3cb40e11c5400ef0ec393e4a34db65
        git remote add shawnguo https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git
        git fetch --no-tags shawnguo imx/dt64
        git checkout 31d517ab0a3cb40e11c5400ef0ec393e4a34db65
        # 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=alpha SHELL=/bin/bash drivers/soc/imx/

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

All warnings (new ones prefixed by >>):

   drivers/soc/imx/imx8m-blk-ctrl.c:536:18: error: 'const struct imx8m_blk_ctrl_domain_data' has no member named 'mipi_phy_rst_mask'
     536 |                 .mipi_phy_rst_mask = BIT(17),
         |                  ^~~~~~~~~~~~~~~~~
   In file included from include/linux/bits.h:6,
                    from include/linux/ratelimit_types.h:5,
                    from include/linux/ratelimit.h:5,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from drivers/soc/imx/imx8m-blk-ctrl.c:7:
>> include/vdso/bits.h:7:33: warning: excess elements in struct initializer
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                 ^
   drivers/soc/imx/imx8m-blk-ctrl.c:536:38: note: in expansion of macro 'BIT'
     536 |                 .mipi_phy_rst_mask = BIT(17),
         |                                      ^~~
   include/vdso/bits.h:7:33: note: (near initialization for 'imx8mn_disp_blk_ctl_domain_data[0]')
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                 ^
   drivers/soc/imx/imx8m-blk-ctrl.c:536:38: note: in expansion of macro 'BIT'
     536 |                 .mipi_phy_rst_mask = BIT(17),
         |                                      ^~~
   drivers/soc/imx/imx8m-blk-ctrl.c:545:18: error: 'const struct imx8m_blk_ctrl_domain_data' has no member named 'mipi_phy_rst_mask'
     545 |                 .mipi_phy_rst_mask = BIT(16),
         |                  ^~~~~~~~~~~~~~~~~
   In file included from include/linux/bits.h:6,
                    from include/linux/ratelimit_types.h:5,
                    from include/linux/ratelimit.h:5,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from drivers/soc/imx/imx8m-blk-ctrl.c:7:
>> include/vdso/bits.h:7:33: warning: excess elements in struct initializer
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                 ^
   drivers/soc/imx/imx8m-blk-ctrl.c:545:38: note: in expansion of macro 'BIT'
     545 |                 .mipi_phy_rst_mask = BIT(16),
         |                                      ^~~
   include/vdso/bits.h:7:33: note: (near initialization for 'imx8mn_disp_blk_ctl_domain_data[1]')
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                 ^
   drivers/soc/imx/imx8m-blk-ctrl.c:545:38: note: in expansion of macro 'BIT'
     545 |                 .mipi_phy_rst_mask = BIT(16),
         |                                      ^~~


vim +7 include/vdso/bits.h

3945ff37d2f48d3 Vincenzo Frascino 2020-03-20  6  
3945ff37d2f48d3 Vincenzo Frascino 2020-03-20 @7  #define BIT(nr)			(UL(1) << (nr))
3945ff37d2f48d3 Vincenzo Frascino 2020-03-20  8  

:::::: The code at line 7 was first introduced by commit
:::::: 3945ff37d2f48d39fd1751d282c80176654049e4 linux/bits.h: Extract common header for vDSO

:::::: TO: Vincenzo Frascino <vincenzo.frascino at arm.com>
:::::: CC: Thomas Gleixner <tglx at linutronix.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



More information about the linux-arm-kernel mailing list