[linux-next:master 3357/9592] drivers/soc/rockchip/dtpm.c:15:12: sparse: sparse: obsolete array initializer, use C99 syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e6ada6df471f847da3b09b357e246c62335bc0bb
commit: b9d6c47a2be8d273ecc063afda6e9fd66a35116d [3357/9592] rockchip/soc/drivers: Add DTPM description for rk3399
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220301/202203012019.rJHP6aue-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b9d6c47a2be8d273ecc063afda6e9fd66a35116d
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout b9d6c47a2be8d273ecc063afda6e9fd66a35116d
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/soc/rockchip/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <yujie.liu@xxxxxxxxx>


sparse warnings: (new ones prefixed by >>)
>> drivers/soc/rockchip/dtpm.c:15:12: sparse: sparse: obsolete array initializer, use C99 syntax
   drivers/soc/rockchip/dtpm.c:17:12: sparse: sparse: obsolete array initializer, use C99 syntax
   drivers/soc/rockchip/dtpm.c:20:12: sparse: sparse: obsolete array initializer, use C99 syntax
   drivers/soc/rockchip/dtpm.c:23:12: sparse: sparse: obsolete array initializer, use C99 syntax
   drivers/soc/rockchip/dtpm.c:26:12: sparse: sparse: obsolete array initializer, use C99 syntax
   drivers/soc/rockchip/dtpm.c:29:12: sparse: sparse: obsolete array initializer, use C99 syntax
   drivers/soc/rockchip/dtpm.c:32:12: sparse: sparse: obsolete array initializer, use C99 syntax
   drivers/soc/rockchip/dtpm.c:35:12: sparse: sparse: obsolete array initializer, use C99 syntax
   drivers/soc/rockchip/dtpm.c:38:12: sparse: sparse: obsolete array initializer, use C99 syntax
   drivers/soc/rockchip/dtpm.c:41:12: sparse: sparse: obsolete array initializer, use C99 syntax

vim +15 drivers/soc/rockchip/dtpm.c

b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  13
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  14  static struct dtpm_node __initdata rk3399_hierarchy[] = {
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28 @15  	[0]{ .name = "rk3399",
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  16  	     .type = DTPM_NODE_VIRTUAL },
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  17  	[1]{ .name = "package",
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  18  	     .type = DTPM_NODE_VIRTUAL,
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  19  	     .parent = &rk3399_hierarchy[0] },
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  20  	[2]{ .name = "/cpus/cpu@0",
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  21  	     .type = DTPM_NODE_DT,
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  22  	     .parent = &rk3399_hierarchy[1] },
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  23  	[3]{ .name = "/cpus/cpu@1",
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  24  	     .type = DTPM_NODE_DT,
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  25  	     .parent = &rk3399_hierarchy[1] },
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  26  	[4]{ .name = "/cpus/cpu@2",
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  27  	     .type = DTPM_NODE_DT,
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  28  	     .parent = &rk3399_hierarchy[1] },
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  29  	[5]{ .name = "/cpus/cpu@3",
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  30  	     .type = DTPM_NODE_DT,
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  31  	     .parent = &rk3399_hierarchy[1] },
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  32  	[6]{ .name = "/cpus/cpu@100",
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  33  	     .type = DTPM_NODE_DT,
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  34  	     .parent = &rk3399_hierarchy[1] },
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  35  	[7]{ .name = "/cpus/cpu@101",
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  36  	     .type = DTPM_NODE_DT,
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  37  	     .parent = &rk3399_hierarchy[1] },
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  38  	[8]{ .name = "/gpu@ff9a0000",
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  39  	     .type = DTPM_NODE_DT,
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  40  	     .parent = &rk3399_hierarchy[1] },
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  41  	[9]{ /* sentinel */ }
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  42  };
b9d6c47a2be8d2 Daniel Lezcano 2022-01-28  43

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux