lkml.org 
[lkml]   [2021]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[lst:imx8mq-vpu-blk-ctrl 22/23] drivers/staging/media/hantro/hantro_drv.c:600:9: warning: braces around scalar initializer
tree:   https://git.pengutronix.de/git/lst/linux imx8mq-vpu-blk-ctrl
head: 2cd41211c1291460262d24269ae37db016dadf82
commit: 89853879eff9bbcf33b45b7f0000c95042cd45c2 [22/23] HACK: media: hantro: split i.MX8MQ G1 code
config: csky-buildonly-randconfig-r003-20211008 (attached as .config)
compiler: csky-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
git remote add lst https://git.pengutronix.de/git/lst/linux
git fetch --no-tags lst imx8mq-vpu-blk-ctrl
git checkout 89853879eff9bbcf33b45b7f0000c95042cd45c2
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash drivers/staging/media/hantro/

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

All warnings (new ones prefixed by >>):

In file included from include/linux/bitops.h:33,
from include/linux/kernel.h:12,
from include/linux/clk.h:13,
from drivers/staging/media/hantro/hantro_drv.c:13:
arch/csky/include/asm/bitops.h:77: warning: "__clear_bit" redefined
77 | #define __clear_bit(nr, vaddr) clear_bit(nr, vaddr)
|
In file included from arch/csky/include/asm/bitops.h:76,
from include/linux/bitops.h:33,
from include/linux/kernel.h:12,
from include/linux/clk.h:13,
from drivers/staging/media/hantro/hantro_drv.c:13:
include/asm-generic/bitops/non-atomic.h:34: note: this is the location of the previous definition
34 | #define __clear_bit arch___clear_bit
|
drivers/staging/media/hantro/hantro_drv.c:594:12: error: field name not in record or union initializer
594 | {{ .compatible = "nxp,imx8mq-vpu-g1", .data = &imx8mq_g1_vpu_variant, },
| ^
drivers/staging/media/hantro/hantro_drv.c:594:12: note: (near initialization for 'of_hantro_match[1].name')
drivers/staging/media/hantro/hantro_drv.c:594:47: error: field name not in record or union initializer
594 | {{ .compatible = "nxp,imx8mq-vpu-g1", .data = &imx8mq_g1_vpu_variant, },
| ^
drivers/staging/media/hantro/hantro_drv.c:594:47: note: (near initialization for 'of_hantro_match[1].name')
drivers/staging/media/hantro/hantro_drv.c:594:55: error: excess elements in struct initializer
594 | {{ .compatible = "nxp,imx8mq-vpu-g1", .data = &imx8mq_g1_vpu_variant, },
| ^
drivers/staging/media/hantro/hantro_drv.c:594:55: note: (near initialization for 'of_hantro_match[1].name')
drivers/staging/media/hantro/hantro_drv.c:595:11: error: field name not in record or union initializer
595 | { .compatible = "nxp,imx8mq-vpu-g2", .data = &imx8mq_vpu_g2_variant },
| ^
drivers/staging/media/hantro/hantro_drv.c:595:11: note: (near initialization for 'of_hantro_match[1].type')
drivers/staging/media/hantro/hantro_drv.c:595:46: error: field name not in record or union initializer
595 | { .compatible = "nxp,imx8mq-vpu-g2", .data = &imx8mq_vpu_g2_variant },
| ^
drivers/staging/media/hantro/hantro_drv.c:595:46: note: (near initialization for 'of_hantro_match[1].type')
drivers/staging/media/hantro/hantro_drv.c:595:54: error: excess elements in struct initializer
595 | { .compatible = "nxp,imx8mq-vpu-g2", .data = &imx8mq_vpu_g2_variant },
| ^
drivers/staging/media/hantro/hantro_drv.c:595:54: note: (near initialization for 'of_hantro_match[1].type')
drivers/staging/media/hantro/hantro_drv.c:598:11: error: field name not in record or union initializer
598 | { .compatible = "microchip,sama5d4-vdec", .data = &sama5d4_vdec_variant, },
| ^
drivers/staging/media/hantro/hantro_drv.c:598:11: note: (near initialization for 'of_hantro_match[1].compatible')
drivers/staging/media/hantro/hantro_drv.c:598:51: error: field name not in record or union initializer
598 | { .compatible = "microchip,sama5d4-vdec", .data = &sama5d4_vdec_variant, },
| ^
drivers/staging/media/hantro/hantro_drv.c:598:51: note: (near initialization for 'of_hantro_match[1].compatible')
drivers/staging/media/hantro/hantro_drv.c:598:59: error: excess elements in struct initializer
598 | { .compatible = "microchip,sama5d4-vdec", .data = &sama5d4_vdec_variant, },
| ^
drivers/staging/media/hantro/hantro_drv.c:598:59: note: (near initialization for 'of_hantro_match[1].compatible')
>> drivers/staging/media/hantro/hantro_drv.c:600:9: warning: braces around scalar initializer
600 | { /* sentinel */ }
| ^
drivers/staging/media/hantro/hantro_drv.c:600:9: note: (near initialization for 'of_hantro_match[1].data')
drivers/staging/media/hantro/hantro_drv.c:600:9: error: empty scalar initializer
drivers/staging/media/hantro/hantro_drv.c:600:9: note: (near initialization for 'of_hantro_match[1].data')
drivers/staging/media/hantro/hantro_drv.c:601:2: error: expected '}' before ';' token
601 | };
| ^
drivers/staging/media/hantro/hantro_drv.c:583:54: note: to match this '{'
583 | static const struct of_device_id of_hantro_match[] = {
| ^
drivers/staging/media/hantro/hantro_drv.c:583:34: warning: 'of_hantro_match' defined but not used [-Wunused-const-variable=]
583 | static const struct of_device_id of_hantro_match[] = {
| ^~~~~~~~~~~~~~~
drivers/staging/media/hantro/hantro_drv.c:574:42: warning: 'hantro_fops' defined but not used [-Wunused-const-variable=]
574 | static const struct v4l2_file_operations hantro_fops = {
| ^~~~~~~~~~~
drivers/staging/media/hantro/hantro_drv.c:182:28: warning: 'vpu_m2m_ops' defined but not used [-Wunused-variable]
182 | static struct v4l2_m2m_ops vpu_m2m_ops = {
| ^~~~~~~~~~~


vim +600 drivers/staging/media/hantro/hantro_drv.c

775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 582
a29add8c9bb29d drivers/staging/media/hantro/hantro_drv.c Philipp Zabel 2019-06-12 583 static const struct of_device_id of_hantro_match[] = {
a29add8c9bb29d drivers/staging/media/hantro/hantro_drv.c Philipp Zabel 2019-06-12 584 #ifdef CONFIG_VIDEO_HANTRO_ROCKCHIP
fb7cb344b96938 drivers/staging/media/hantro/hantro_drv.c Paul Kocialkowski 2021-07-19 585 { .compatible = "rockchip,px30-vpu", .data = &px30_vpu_variant, },
4f34591568e7a1 drivers/staging/media/hantro/hantro_drv.c Alex Bee 2021-06-14 586 { .compatible = "rockchip,rk3036-vpu", .data = &rk3036_vpu_variant, },
78bb1ae5472cab drivers/staging/media/hantro/hantro_drv.c Alex Bee 2021-06-14 587 { .compatible = "rockchip,rk3066-vpu", .data = &rk3066_vpu_variant, },
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 588 { .compatible = "rockchip,rk3288-vpu", .data = &rk3288_vpu_variant, },
4b898fedeb26c4 drivers/staging/media/hantro/hantro_drv.c Alex Bee 2021-06-14 589 { .compatible = "rockchip,rk3328-vpu", .data = &rk3328_vpu_variant, },
4b898fedeb26c4 drivers/staging/media/hantro/hantro_drv.c Alex Bee 2021-06-14 590 { .compatible = "rockchip,rk3399-vpu", .data = &rk3399_vpu_variant, },
8e4aaa68786319 drivers/staging/media/hantro/hantro_drv.c Philipp Zabel 2020-03-20 591 #endif
8e4aaa68786319 drivers/staging/media/hantro/hantro_drv.c Philipp Zabel 2020-03-20 592 #ifdef CONFIG_VIDEO_HANTRO_IMX8M
8e4aaa68786319 drivers/staging/media/hantro/hantro_drv.c Philipp Zabel 2020-03-20 593 { .compatible = "nxp,imx8mq-vpu", .data = &imx8mq_vpu_variant, },
89853879eff9bb drivers/staging/media/hantro/hantro_drv.c Lucas Stach 2021-10-02 594 {{ .compatible = "nxp,imx8mq-vpu-g1", .data = &imx8mq_g1_vpu_variant, },
45040f67504195 drivers/staging/media/hantro/hantro_drv.c Benjamin Gaignard 2021-06-03 595 { .compatible = "nxp,imx8mq-vpu-g2", .data = &imx8mq_vpu_g2_variant },
82ad940c009499 drivers/staging/media/hantro/hantro_drv.c Emil Velikov 2021-04-01 596 #endif
82ad940c009499 drivers/staging/media/hantro/hantro_drv.c Emil Velikov 2021-04-01 597 #ifdef CONFIG_VIDEO_HANTRO_SAMA5D4
82ad940c009499 drivers/staging/media/hantro/hantro_drv.c Emil Velikov 2021-04-01 598 { .compatible = "microchip,sama5d4-vdec", .data = &sama5d4_vdec_variant, },
a29add8c9bb29d drivers/staging/media/hantro/hantro_drv.c Philipp Zabel 2019-06-12 599 #endif
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 @600 { /* sentinel */ }
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 601 };
a29add8c9bb29d drivers/staging/media/hantro/hantro_drv.c Philipp Zabel 2019-06-12 602 MODULE_DEVICE_TABLE(of, of_hantro_match);
775fec69008d30 drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c Ezequiel Garcia 2018-12-05 603

:::::: The code at line 600 was first introduced by commit
:::::: 775fec69008d30ed5e4ce9fa7701c5591e424c87 media: add Rockchip VPU JPEG encoder driver

:::::: TO: Ezequiel Garcia <ezequiel@collabora.com>
:::::: CC: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-08 20:45    [W:0.040 / U:0.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site