Re: [PATCH v6 3/9] v4l: platform: Add Renesas CEU driver
Hi Jacopo, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.15-rc8] [cannot apply to linuxtv-media/master next-20180119] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jacopo-Mondi/Renesas-Capture-Engine-Unit-CEU-V4L2-driver/20180120-053007 config: mn10300-allmodconfig (attached as .config) compiler: am33_2.0-linux-gcc (GCC) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=mn10300 Note: it may well be a FALSE warning. FWIW you are at least aware of it now. http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings All warnings (new ones prefixed by >>): In file included from include/linux/scatterlist.h:9:0, from include/linux/dma-mapping.h:11, from drivers/media/platform/renesas-ceu.c:16: drivers/media/platform/renesas-ceu.c: In function 'ceu_start_streaming': >> arch/mn10300/include/asm/io.h:63:25: warning: 'cdwdr' may be used >> uninitialized in this function [-Wmaybe-uninitialized] *(volatile u32 *) addr = b; ~~~^~~ drivers/media/platform/renesas-ceu.c:335:27: note: 'cdwdr' was declared here u32 camcr, cdocr, cfzsr, cdwdr, capwr; ^ In file included from include/linux/scatterlist.h:9:0, from include/linux/dma-mapping.h:11, from drivers/media/platform/renesas-ceu.c:16: >> arch/mn10300/include/asm/io.h:63:25: warning: 'cfzsr' may be used >> uninitialized in this function [-Wmaybe-uninitialized] *(volatile u32 *) addr = b; ~~~^~~ drivers/media/platform/renesas-ceu.c:335:20: note: 'cfzsr' was declared here u32 camcr, cdocr, cfzsr, cdwdr, capwr; ^ drivers/media/platform/renesas-ceu.c:415:8: warning: 'camcr' may be used uninitialized in this function [-Wmaybe-uninitialized] camcr |= mbus_flags & V4L2_MBUS_HSYNC_ACTIVE_LOW ? 1 << 0 : 0; ~~^~~ drivers/media/platform/renesas-ceu.c:335:6: note: 'camcr' was declared here u32 camcr, cdocr, cfzsr, cdwdr, capwr; ^ drivers/media/platform/renesas-ceu.c: In function 'ceu_probe': drivers/media/platform/renesas-ceu.c:1621:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] return ret; ^~~ -- In file included from include/linux/scatterlist.h:9:0, from include/linux/dma-mapping.h:11, from drivers/media//platform/renesas-ceu.c:16: drivers/media//platform/renesas-ceu.c: In function 'ceu_start_streaming': >> arch/mn10300/include/asm/io.h:63:25: warning: 'cdwdr' may be used >> uninitialized in this function [-Wmaybe-uninitialized] *(volatile u32 *) addr = b; ~~~^~~ drivers/media//platform/renesas-ceu.c:335:27: note: 'cdwdr' was declared here u32 camcr, cdocr, cfzsr, cdwdr, capwr; ^ In file included from include/linux/scatterlist.h:9:0, from include/linux/dma-mapping.h:11, from drivers/media//platform/renesas-ceu.c:16: >> arch/mn10300/include/asm/io.h:63:25: warning: 'cfzsr' may be used >> uninitialized in this function [-Wmaybe-uninitialized] *(volatile u32 *) addr = b; ~~~^~~ drivers/media//platform/renesas-ceu.c:335:20: note: 'cfzsr' was declared here u32 camcr, cdocr, cfzsr, cdwdr, capwr; ^ drivers/media//platform/renesas-ceu.c:415:8: warning: 'camcr' may be used uninitialized in this function [-Wmaybe-uninitialized] camcr |= mbus_flags & V4L2_MBUS_HSYNC_ACTIVE_LOW ? 1 << 0 : 0; ~~^~~ drivers/media//platform/renesas-ceu.c:335:6: note: 'camcr' was declared here u32 camcr, cdocr, cfzsr, cdwdr, capwr; ^ drivers/media//platform/renesas-ceu.c: In function 'ceu_probe': drivers/media//platform/renesas-ceu.c:1621:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] return ret; ^~~ vim +/cdwdr +63 arch/mn10300/include/asm/io.h b920de1b include/asm-mn10300/io.h David Howells 2008-02-08 60 b920de1b include/asm-mn10300/io.h David Howells 2008-02-08 61 static inline void writel(u32 b, volatile void __iomem *addr) b920de1b include/asm-mn10300/io.h David Howells 2008-02-08 62 { b920de1b include/asm-mn10300/io.h David Howells 2008-02-08 @63 *(volatile u32 *) addr = b; b920de1b include/asm-mn10300/io.h David Howells 2008-02-08 64 } b920de1b include/asm-mn10300/io.h
Re: [PATCH v6 3/9] v4l: platform: Add Renesas CEU driver
Hi Jacopo, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.15-rc8] [cannot apply to linuxtv-media/master next-20180119] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jacopo-Mondi/Renesas-Capture-Engine-Unit-CEU-V4L2-driver/20180120-053007 config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=ia64 Note: it may well be a FALSE warning. FWIW you are at least aware of it now. http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings All warnings (new ones prefixed by >>): drivers/media/platform/renesas-ceu.c: In function 'ceu_start_streaming': >> drivers/media/platform/renesas-ceu.c:287:2: warning: 'cdwdr' may be used >> uninitialized in this function [-Wmaybe-uninitialized] iowrite32(data, priv->base + reg_offs); ^~ drivers/media/platform/renesas-ceu.c:335:27: note: 'cdwdr' was declared here u32 camcr, cdocr, cfzsr, cdwdr, capwr; ^ >> drivers/media/platform/renesas-ceu.c:287:2: warning: 'cfzsr' may be used >> uninitialized in this function [-Wmaybe-uninitialized] iowrite32(data, priv->base + reg_offs); ^~ drivers/media/platform/renesas-ceu.c:335:20: note: 'cfzsr' was declared here u32 camcr, cdocr, cfzsr, cdwdr, capwr; ^ >> drivers/media/platform/renesas-ceu.c:415:8: warning: 'camcr' may be used >> uninitialized in this function [-Wmaybe-uninitialized] camcr |= mbus_flags & V4L2_MBUS_HSYNC_ACTIVE_LOW ? 1 << 0 : 0; ~~^~~ drivers/media/platform/renesas-ceu.c:335:6: note: 'camcr' was declared here u32 camcr, cdocr, cfzsr, cdwdr, capwr; ^ drivers/media/platform/renesas-ceu.c: In function 'ceu_probe': >> drivers/media/platform/renesas-ceu.c:1621:9: warning: 'ret' may be used >> uninitialized in this function [-Wmaybe-uninitialized] return ret; ^~~ vim +/cdwdr +287 drivers/media/platform/renesas-ceu.c 284 285 static void ceu_write(struct ceu_device *priv, unsigned int reg_offs, u32 data) 286 { > 287 iowrite32(data, priv->base + reg_offs); 288 } 289 290 static u32 ceu_read(struct ceu_device *priv, unsigned int reg_offs) 291 { 292 return ioread32(priv->base + reg_offs); 293 } 294 295 /* 296 * ceu_soft_reset() - Software reset the CEU interface. 297 * @ceu_device: CEU device. 298 * 299 * Returns 0 for success, -EIO for error. 300 */ 301 static int ceu_soft_reset(struct ceu_device *ceudev) 302 { 303 unsigned int i; 304 305 ceu_write(ceudev, CEU_CAPSR, CEU_CAPSR_CPKIL); 306 307 for (i = 0; i < 100; i++) { 308 if (!(ceu_read(ceudev, CEU_CSTSR) & CEU_CSTRST_CPTON)) 309 break; 310 udelay(1); 311 } 312 313 if (i == 100) { 314 dev_err(ceudev->dev, "soft reset time out\n"); 315 return -EIO; 316 } 317 318 for (i = 0; i < 100; i++) { 319 if (!(ceu_read(ceudev, CEU_CAPSR) & CEU_CAPSR_CPKIL)) 320 return 0; 321 udelay(1); 322 } 323 324 /* If we get here, CEU has not reset properly. */ 325 return -EIO; 326 } 327 328 /* --- CEU Capture Operations --- */ 329 330 /* 331 * ceu_hw_config() - Configure CEU interface registers. 332 */ 333 static int ceu_hw_config(struct ceu_device *ceudev) 334 { > 335 u32 camcr, cdocr, cfzsr, cdwdr, capwr; 336 struct v4l2_pix_format_mplane *pix = >v4l2_pix; 337 struct ceu_subdev *ceu_sd = ceudev->sd; 338 struct ceu_mbus_fmt *mbus_fmt = _sd->mbus_fmt; 339 unsigned int mbus_flags = ceu_sd->mbus_flags; 340 341 /* Start configuring CEU registers */ 342 ceu_write(ceudev, CEU_CAIFR, 0); 343 ceu_write(ceudev, CEU_CFWCR, 0); 344 ceu_write(ceudev, CEU_CRCNTR, 0); 345 ceu_write(ceudev, CEU_CRCMPR, 0); 346 347 /* Set the frame capture period for both image capture and data sync. */ 348 capwr = (pix->height << 16) | pix->width * mbus_fmt->bpp / 8; 349 350 /* 351 * Swap input data endianness by default. 352 * In data fetch mode bytes are received in
[linux-next:master 6054/10286] drivers/media/common/videobuf/videobuf2-v4l2.c:678: undefined reference to `video_devdata'
Hi Mauro, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 1fec57a31e561b110756a8b0bd2135a29bd6268f commit: 03fbdb2fc2b8bb27b0ee0534fd3e9c57cdc3854a [6054/10286] media: move videobuf2 to drivers/media/common config: x86_64-randconfig-h0-01180022 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: git checkout 03fbdb2fc2b8bb27b0ee0534fd3e9c57cdc3854a # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/media/common/videobuf/videobuf2-core.o: In function `__read_once_size': include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_buf_queue' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_buf_queue' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_buf_queue' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_buf_queue' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_buf_done' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_buf_done' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_buf_done' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_buf_done' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_qbuf' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_qbuf' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_qbuf' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_qbuf' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_dqbuf' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_dqbuf' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_dqbuf' include/linux/compiler.h:183: undefined reference to `__tracepoint_vb2_dqbuf' drivers/media/common/videobuf/videobuf2-core.o: In function `vb2_core_streamon': drivers/media/common/videobuf/videobuf2-core.c:1726: undefined reference to `v4l_vb2q_enable_media_source' drivers/media/common/videobuf/videobuf2-core.o:(__jump_table+0x10): undefined reference to `__tracepoint_vb2_buf_queue' drivers/media/common/videobuf/videobuf2-core.o:(__jump_table+0x28): undefined reference to `__tracepoint_vb2_buf_done' drivers/media/common/videobuf/videobuf2-core.o:(__jump_table+0x40): undefined reference to `__tracepoint_vb2_qbuf' drivers/media/common/videobuf/videobuf2-core.o:(__jump_table+0x58): undefined reference to `__tracepoint_vb2_dqbuf' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_poll': >> drivers/media/common/videobuf/videobuf2-v4l2.c:678: undefined reference to >> `video_devdata' >> drivers/media/common/videobuf/videobuf2-v4l2.c:685: undefined reference to >> `v4l2_event_pending' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_ioctl_reqbufs': drivers/media/common/videobuf/videobuf2-v4l2.c:714: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_ioctl_create_bufs': drivers/media/common/videobuf/videobuf2-v4l2.c:733: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_ioctl_prepare_buf': drivers/media/common/videobuf/videobuf2-v4l2.c:759: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_ioctl_querybuf': drivers/media/common/videobuf/videobuf2-v4l2.c:769: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_ioctl_qbuf': drivers/media/common/videobuf/videobuf2-v4l2.c:778: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o:drivers/media/common/videobuf/videobuf2-v4l2.c:788: more undefined references to `video_devdata' follow drivers/media/common/videobuf/videobuf2-v4l2.o: In function `_vb2_fop_release': >> drivers/media/common/videobuf/videobuf2-v4l2.c:848: undefined reference to >> `v4l2_fh_release' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_fop_release': drivers/media/common/videobuf/videobuf2-v4l2.c:854: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_fop_write': drivers/media/common/videobuf/videobuf2-v4l2.c:864: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_fop_read': drivers/media/common/videobuf/videobuf2-v4l2.c:888: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_fop_poll': drivers/media/common/videobuf/videobuf2-v4l2.c:911: undefined reference to `video_devdata' vim +678 drivers/media/common/videobuf/videobuf2-v4l2.c 3c5be988
[linux-next:master 3773/9944] drivers/media/dvb-frontends/stb0899_drv.h:151:36: error: weak declaration of 'stb0899_attach' being applied to a already existing, static definition
Hi Wolfgang, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: fdddade65d7b5f8779374eb73d09889185280f60 commit: 6cdeaed3b1420bd2569891be0c4123ff59628e9e [3773/9944] media: dvb_usb_pctv452e: module refcount changes were unbalanced config: x86_64-randconfig-s4-01170712 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: git checkout 6cdeaed3b1420bd2569891be0c4123ff59628e9e # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): In file included from drivers/media/usb/dvb-usb/pctv452e.c:20:0: drivers/media/usb/dvb-usb/pctv452e.c: In function 'pctv452e_frontend_attach': >> drivers/media/dvb-frontends/stb0899_drv.h:151:36: error: weak declaration of >> 'stb0899_attach' being applied to a already existing, static definition static inline struct dvb_frontend *stb0899_attach(struct stb0899_config *config, ^~ vim +/stb0899_attach +151 drivers/media/dvb-frontends/stb0899_drv.h ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 150 ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 @151 static inline struct dvb_frontend *stb0899_attach(struct stb0899_config *config, ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 152 struct i2c_adapter *i2c) ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 153 { ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 154printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__); ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 155return NULL; ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 156 } ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 157 :: The code at line 151 was first introduced by commit :: ae9902da96b4d2d82707706c7fbc93a8e501dde8 V4L/DVB (9417): DVB_ATTACH for STB0899, STB6100, TDA8261 :: TO: Manu Abraham:: CC: Mauro Carvalho Chehab --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[linux-next:master 6051/9035] drivers/media/common/videobuf/videobuf2-core.o:(__jump_table+0x10): undefined reference to `__tracepoint_vb2_buf_queue'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b4464bcab38d3f7fe995a7cb960eeac6889bec08 commit: 03fbdb2fc2b8bb27b0ee0534fd3e9c57cdc3854a [6051/9035] media: move videobuf2 to drivers/media/common config: x86_64-randconfig-s5-01110339 compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: git checkout 03fbdb2fc2b8bb27b0ee0534fd3e9c57cdc3854a make ARCH=x86_64 randconfig make ARCH=x86_64 All errors (new ones prefixed by >>): --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Re: [PATCH 01/33] clk_ops: change round_rate() to return unsigned long
Hi Bryan, I love your patch! Perhaps something to improve: [auto build test WARNING on tegra/for-next] [also build test WARNING on v4.15-rc6] [cannot apply to clk/clk-next next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Bryan-O-Donoghue/change-clk_ops-round_rate-to-scale-past-LONG_MAX/20180101-212907 base: https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-next reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) vim +321 drivers/clk/clk-versaclock5.c 8c1ebe97 Marek Vasut 2017-07-09 318 8c1ebe97 Marek Vasut 2017-07-09 319 static const struct clk_ops vc5_dbl_ops = { 8c1ebe97 Marek Vasut 2017-07-09 320.recalc_rate= vc5_dbl_recalc_rate, 8c1ebe97 Marek Vasut 2017-07-09 @321.round_rate = vc5_dbl_round_rate, 8c1ebe97 Marek Vasut 2017-07-09 322.set_rate = vc5_dbl_set_rate, 8c1ebe97 Marek Vasut 2017-07-09 323 }; 8c1ebe97 Marek Vasut 2017-07-09 324 :: The code at line 321 was first introduced by commit :: 8c1ebe9762670159ca982167131af63c94ff1571 clk: vc5: Add support for the input frequency doubler :: TO: Marek Vasut:: CC: Stephen Boyd --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Re: [PATCH 01/33] clk_ops: change round_rate() to return unsigned long
Hi Bryan, I love your patch! Yet something to improve: [auto build test ERROR on tegra/for-next] [also build test ERROR on v4.15-rc6] [cannot apply to clk/clk-next next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Bryan-O-Donoghue/change-clk_ops-round_rate-to-scale-past-LONG_MAX/20180101-212907 base: https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-next config: x86_64-randconfig-x016-201800 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): >> drivers//clk/clk-versaclock5.c:321:16: error: initialization from >> incompatible pointer type [-Werror=incompatible-pointer-types] .round_rate = vc5_dbl_round_rate, ^~ drivers//clk/clk-versaclock5.c:321:16: note: (near initialization for 'vc5_dbl_ops.round_rate') cc1: some warnings being treated as errors vim +321 drivers//clk/clk-versaclock5.c 8c1ebe97 Marek Vasut 2017-07-09 318 8c1ebe97 Marek Vasut 2017-07-09 319 static const struct clk_ops vc5_dbl_ops = { 8c1ebe97 Marek Vasut 2017-07-09 320.recalc_rate= vc5_dbl_recalc_rate, 8c1ebe97 Marek Vasut 2017-07-09 @321.round_rate = vc5_dbl_round_rate, 8c1ebe97 Marek Vasut 2017-07-09 322.set_rate = vc5_dbl_set_rate, 8c1ebe97 Marek Vasut 2017-07-09 323 }; 8c1ebe97 Marek Vasut 2017-07-09 324 :: The code at line 321 was first introduced by commit :: 8c1ebe9762670159ca982167131af63c94ff1571 clk: vc5: Add support for the input frequency doubler :: TO: Marek Vasut:: CC: Stephen Boyd --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH 01/33] clk_ops: change round_rate() to return unsigned long
Hi Bryan, I love your patch! Perhaps something to improve: [auto build test WARNING on tegra/for-next] [also build test WARNING on v4.15-rc6] [cannot apply to clk/clk-next next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Bryan-O-Donoghue/change-clk_ops-round_rate-to-scale-past-LONG_MAX/20180101-212907 base: https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-next config: i386-randconfig-b0-01011934 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): >> drivers/clk/clk-versaclock5.c:321:2: warning: initialization from >> incompatible pointer type .round_rate = vc5_dbl_round_rate, ^ drivers/clk/clk-versaclock5.c:321:2: warning: (near initialization for 'vc5_dbl_ops.round_rate') vim +321 drivers/clk/clk-versaclock5.c 8c1ebe97 Marek Vasut 2017-07-09 318 8c1ebe97 Marek Vasut 2017-07-09 319 static const struct clk_ops vc5_dbl_ops = { 8c1ebe97 Marek Vasut 2017-07-09 320.recalc_rate= vc5_dbl_recalc_rate, 8c1ebe97 Marek Vasut 2017-07-09 @321.round_rate = vc5_dbl_round_rate, 8c1ebe97 Marek Vasut 2017-07-09 322.set_rate = vc5_dbl_set_rate, 8c1ebe97 Marek Vasut 2017-07-09 323 }; 8c1ebe97 Marek Vasut 2017-07-09 324 :: The code at line 321 was first introduced by commit :: 8c1ebe9762670159ca982167131af63c94ff1571 clk: vc5: Add support for the input frequency doubler :: TO: Marek Vasut:: CC: Stephen Boyd --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[ragnatech:media-tree 3128/3327] drivers/media/dvb-frontends/stb0899_drv.h:151:36: error: weak declaration of 'stb0899_attach' being applied to a already existing, static definition
tree: git://git.ragnatech.se/linux media-tree head: d0c8f6ad8b381dd572576ac50b9696d4d31142bb commit: 6cdeaed3b1420bd2569891be0c4123ff59628e9e [3128/3327] media: dvb_usb_pctv452e: module refcount changes were unbalanced config: x86_64-randconfig-s3-12311435 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: git checkout 6cdeaed3b1420bd2569891be0c4123ff59628e9e # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): In file included from drivers/media/usb/dvb-usb/pctv452e.c:20:0: drivers/media/usb/dvb-usb/pctv452e.c: In function 'pctv452e_frontend_attach': >> drivers/media/dvb-frontends/stb0899_drv.h:151:36: error: weak declaration of >> 'stb0899_attach' being applied to a already existing, static definition static inline struct dvb_frontend *stb0899_attach(struct stb0899_config *config, ^~ vim +/stb0899_attach +151 drivers/media/dvb-frontends/stb0899_drv.h ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 150 ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 @151 static inline struct dvb_frontend *stb0899_attach(struct stb0899_config *config, ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 152 struct i2c_adapter *i2c) ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 153 { ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 154printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__); ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 155return NULL; ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 156 } ae9902da9 drivers/media/dvb/frontends/stb0899_drv.h Manu Abraham 2007-10-08 157 :: The code at line 151 was first introduced by commit :: ae9902da96b4d2d82707706c7fbc93a8e501dde8 V4L/DVB (9417): DVB_ATTACH for STB0899, STB6100, TDA8261 :: TO: Manu Abraham:: CC: Mauro Carvalho Chehab --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH v2 5/9] arch: sh: migor: Use new renesas-ceu camera driver
Hi Jacopo, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.15-rc5 next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jacopo-Mondi/Renesas-Capture-Engine-Unit-CEU-V4L2-driver/20171230-212202 base: git://linuxtv.org/media_tree.git master config: sh-migor_defconfig (attached as .config) compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=sh Note: the linux-review/Jacopo-Mondi/Renesas-Capture-Engine-Unit-CEU-V4L2-driver/20171230-212202 HEAD 71df4d9132d9f8a1821abcec32c12adba1892c50 builds fine. It only hurts bisectibility. All errors (new ones prefixed by >>): >> arch/sh/boards/mach-migor/setup.c:403:3: error: 'struct ov772x_camera_info' >> has no member named 'xclk_rate' .xclk_rate = 1000, ^ vim +403 arch/sh/boards/mach-migor/setup.c 401 402 static struct ov772x_camera_info ov7725_info = { > 403 .xclk_rate = 1000, 404 }; 405 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[linuxtv-media:master 3288/3327] drivers/media/common/videobuf/videobuf2-v4l2.c:678: undefined reference to `video_devdata'
tree: git://linuxtv.org/media_tree.git master head: d0c8f6ad8b381dd572576ac50b9696d4d31142bb commit: 03fbdb2fc2b8bb27b0ee0534fd3e9c57cdc3854a [3288/3327] media: move videobuf2 to drivers/media/common config: x86_64-randconfig-s4-12300216 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: git checkout 03fbdb2fc2b8bb27b0ee0534fd3e9c57cdc3854a # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_poll': >> drivers/media/common/videobuf/videobuf2-v4l2.c:678: undefined reference to >> `video_devdata' >> drivers/media/common/videobuf/videobuf2-v4l2.c:685: undefined reference to >> `v4l2_event_pending' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_ioctl_reqbufs': drivers/media/common/videobuf/videobuf2-v4l2.c:714: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_ioctl_create_bufs': drivers/media/common/videobuf/videobuf2-v4l2.c:733: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_ioctl_prepare_buf': drivers/media/common/videobuf/videobuf2-v4l2.c:759: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_ioctl_querybuf': drivers/media/common/videobuf/videobuf2-v4l2.c:769: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_ioctl_qbuf': drivers/media/common/videobuf/videobuf2-v4l2.c:778: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o:drivers/media/common/videobuf/videobuf2-v4l2.c:788: more undefined references to `video_devdata' follow drivers/media/common/videobuf/videobuf2-v4l2.o: In function `_vb2_fop_release': >> drivers/media/common/videobuf/videobuf2-v4l2.c:848: undefined reference to >> `v4l2_fh_release' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_fop_release': drivers/media/common/videobuf/videobuf2-v4l2.c:854: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_fop_write': drivers/media/common/videobuf/videobuf2-v4l2.c:864: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_fop_read': drivers/media/common/videobuf/videobuf2-v4l2.c:888: undefined reference to `video_devdata' drivers/media/common/videobuf/videobuf2-v4l2.o: In function `vb2_fop_poll': drivers/media/common/videobuf/videobuf2-v4l2.c:911: undefined reference to `video_devdata' vim +678 drivers/media/common/videobuf/videobuf2-v4l2.c 3c5be988 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 675 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 676 unsigned int vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait) 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 677 { 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 @678 struct video_device *vfd = video_devdata(file); 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 679 unsigned long req_events = poll_requested_events(wait); 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 680 unsigned int res = 0; 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 681 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 682 if (test_bit(V4L2_FL_USES_V4L2_FH, >flags)) { 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 683 struct v4l2_fh *fh = file->private_data; 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 684 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 @685 if (v4l2_event_pending(fh)) 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 686 res = POLLPRI; 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 687 else if (req_events & POLLPRI) 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 688 poll_wait(file, >wait, wait); 3c5be988 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 689 } 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 690 49d8ab9f drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-11-03 691 return res | vb2_core_poll(q, file, wait); 3c5be988 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 692 } 3c5be988 drivers/media/v4l2-core/videobuf2-v4l2.c Junghak Sung 2015-10-06 693 EXPORT_SYMBOL_GPL(vb2_poll); 3c5be988 drivers/media/v4l2-core/videobuf2-v4l2.c
[linuxtv-media:master 3320/3326] drivers/staging/media/imx/imx-media-dev.c:55:49: error: request for member 'name' in something not a structure or union
tree: git://linuxtv.org/media_tree.git master head: e3401c2d3804ec67f90ac20ce684171a02c8bf3e commit: 4e48afecd5ee3a394d228349fc1c33982e9fb557 [3320/3326] media: v4l2-async: simplify v4l2_async_subdev structure config: arm-allyesconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 4e48afecd5ee3a394d228349fc1c33982e9fb557 # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): drivers/staging/media/imx/imx-media-dev.c: In function 'find_async_subdev': >> drivers/staging/media/imx/imx-media-dev.c:55:49: error: request for member >> 'name' in something not a structure or union if (devname && !strcmp(asd->match.device_name.name, ^ drivers/staging/media/imx/imx-media-dev.c: In function 'imx_media_add_async_subdev': drivers/staging/media/imx/imx-media-dev.c:110:25: error: request for member 'name' in something not a structure or union asd->match.device_name.name = devname; ^ vim +/name +55 drivers/staging/media/imx/imx-media-dev.c e13029121 Steve Longerbeam 2017-06-10 34 e13029121 Steve Longerbeam 2017-06-10 35 /* 9f6a0c59e Steve Longerbeam 2017-12-14 36 * Find an asd by fwnode or device name. This is called during e13029121 Steve Longerbeam 2017-06-10 37 * driver load to form the async subdev list and bind them. e13029121 Steve Longerbeam 2017-06-10 38 */ 9f6a0c59e Steve Longerbeam 2017-12-14 39 static struct v4l2_async_subdev * 9f6a0c59e Steve Longerbeam 2017-12-14 40 find_async_subdev(struct imx_media_dev *imxmd, 4eef678d3 Steve Longerbeam 2017-12-14 41struct fwnode_handle *fwnode, e13029121 Steve Longerbeam 2017-06-10 42const char *devname) e13029121 Steve Longerbeam 2017-06-10 43 { 9f6a0c59e Steve Longerbeam 2017-12-14 44 struct imx_media_async_subdev *imxasd; 9f6a0c59e Steve Longerbeam 2017-12-14 45 struct v4l2_async_subdev *asd; e13029121 Steve Longerbeam 2017-06-10 46 9f6a0c59e Steve Longerbeam 2017-12-14 47 list_for_each_entry(imxasd, >asd_list, list) { 9f6a0c59e Steve Longerbeam 2017-12-14 48 asd = >asd; 9f6a0c59e Steve Longerbeam 2017-12-14 49 switch (asd->match_type) { e13029121 Steve Longerbeam 2017-06-10 50 case V4L2_ASYNC_MATCH_FWNODE: 4e48afecd Mauro Carvalho Chehab 2017-09-27 51 if (fwnode && asd->match.fwnode == fwnode) 9f6a0c59e Steve Longerbeam 2017-12-14 52 return asd; e13029121 Steve Longerbeam 2017-06-10 53 break; e13029121 Steve Longerbeam 2017-06-10 54 case V4L2_ASYNC_MATCH_DEVNAME: 9f6a0c59e Steve Longerbeam 2017-12-14 @55 if (devname && !strcmp(asd->match.device_name.name, 9f6a0c59e Steve Longerbeam 2017-12-14 56 devname)) 9f6a0c59e Steve Longerbeam 2017-12-14 57 return asd; e13029121 Steve Longerbeam 2017-06-10 58 break; e13029121 Steve Longerbeam 2017-06-10 59 default: e13029121 Steve Longerbeam 2017-06-10 60 break; e13029121 Steve Longerbeam 2017-06-10 61 } e13029121 Steve Longerbeam 2017-06-10 62 } e13029121 Steve Longerbeam 2017-06-10 63 e13029121 Steve Longerbeam 2017-06-10 64 return NULL; e13029121 Steve Longerbeam 2017-06-10 65 } e13029121 Steve Longerbeam 2017-06-10 66 :: The code at line 55 was first introduced by commit :: 9f6a0c59eba91c116f6cd7a487f4929faa07a7f8 media: staging/imx: remove static subdev arrays :: TO: Steve Longerbeam:: CC: Mauro Carvalho Chehab --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[linuxtv-media:master 3292/3294] htmldocs: include/media/dmxdev.h:152: warning: Function parameter or member 'vb2_ctx' not described in 'dmxdev_filter'
tree: git://linuxtv.org/media_tree.git master head: 201b56737f4ea59ee840ebdb88a9970ea6d49cf1 commit: fada1935590f66dc6784981e0d557ca09013c847 [3292/3294] media: move dvb kAPI headers to include/media reproduce: make htmldocs All warnings (new ones prefixed by >>): include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.ablkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.blkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.cipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.compress' not described in 'crypto_alg' include/net/cfg80211.h:3278: warning: Excess enum value 'WIPHY_FLAG_SUPPORTS_SCHED_SCAN' description in 'wiphy_flags' include/net/cfg80211.h:4115: warning: Function parameter or member 'wext.ibss' not described in 'wireless_dev' include/net/cfg80211.h:4115: warning: Function parameter or member 'wext.connect' not described in 'wireless_dev' include/net/cfg80211.h:4115: warning: Function parameter or member 'wext.keys' not described in 'wireless_dev' include/net/cfg80211.h:4115: warning: Function parameter or member 'wext.ie' not described in 'wireless_dev' include/net/cfg80211.h:4115: warning: Function parameter or member 'wext.ie_len' not described in 'wireless_dev' include/net/cfg80211.h:4115: warning: Function parameter or member 'wext.bssid' not described in 'wireless_dev' include/net/cfg80211.h:4115: warning: Function parameter or member 'wext.prev_bssid' not described in 'wireless_dev' include/net/cfg80211.h:4115: warning: Function parameter or member 'wext.ssid' not described in 'wireless_dev' include/net/cfg80211.h:4115: warning: Function parameter or member 'wext.default_key' not described in 'wireless_dev' include/net/cfg80211.h:4115: warning: Function parameter or member 'wext.default_mgmt_key' not described in 'wireless_dev' include/net/cfg80211.h:4115: warning: Function parameter or member 'wext.prev_bssid_valid' not described in 'wireless_dev' include/net/mac80211.h:2251: warning: Function parameter or member 'radiotap_timestamp.units_pos' not described in 'ieee80211_hw' include/net/mac80211.h:2251: warning: Function parameter or member 'radiotap_timestamp.accuracy' not described in 'ieee80211_hw' include/net/mac80211.h:950: warning: Function parameter or member 'rates' not described in 'ieee80211_tx_info' include/net/mac80211.h:950: warning: Function parameter or member 'control.rts_cts_rate_idx' not described in 'ieee80211_tx_info' include/net/mac80211.h:950: warning: Function parameter or member 'control.use_rts' not described in 'ieee80211_tx_info' include/net/mac80211.h:950: warning: Function parameter or member 'control.use_cts_prot' not described in 'ieee80211_tx_info' include/net/mac80211.h:950: warning: Function parameter or member 'control.short_preamble' not described in 'ieee80211_tx_info' include/net/mac80211.h:950: warning: Function parameter or member 'control.skip_table' not described in 'ieee80211_tx_info' include/net/mac80211.h:950: warning: Function parameter or member 'control.jiffies' not described in 'ieee80211_tx_info' include/net/mac80211.h:950:
[linuxtv-media:master 3281/3294] drivers/media/dvb-core/dvb_vb2.c:173: undefined reference to `vb2_core_queue_init'
tree: git://linuxtv.org/media_tree.git master head: 201b56737f4ea59ee840ebdb88a9970ea6d49cf1 commit: 57868acc369ab73ec8f6b43a0c6749077376b189 [3281/3294] media: videobuf2: Add new uAPI for DVB streaming I/O config: i386-randconfig-s1-201752 (attached as .config) compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 reproduce: git checkout 57868acc369ab73ec8f6b43a0c6749077376b189 # save the attached .config to linux build tree make ARCH=i386 Note: the linuxtv-media/master HEAD 201b56737f4ea59ee840ebdb88a9970ea6d49cf1 builds fine. It only hurts bisectibility. All errors (new ones prefixed by >>): drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_init': drivers/media/dvb-core/dvb_vb2.c:170: undefined reference to `vb2_vmalloc_memops' >> drivers/media/dvb-core/dvb_vb2.c:173: undefined reference to >> `vb2_core_queue_init' drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_release': >> drivers/media/dvb-core/dvb_vb2.c:198: undefined reference to >> `vb2_core_queue_release' drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_stream_on': >> drivers/media/dvb-core/dvb_vb2.c:211: undefined reference to >> `vb2_core_streamon' drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_stream_off': >> drivers/media/dvb-core/dvb_vb2.c:238: undefined reference to >> `vb2_buffer_done' >> drivers/media/dvb-core/dvb_vb2.c:242: undefined reference to >> `vb2_core_streamoff' drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_fill_buffer': drivers/media/dvb-core/dvb_vb2.c:294: undefined reference to `vb2_buffer_done' >> drivers/media/dvb-core/dvb_vb2.c:301: undefined reference to >> `vb2_plane_vaddr' drivers/media/dvb-core/dvb_vb2.c:310: undefined reference to `vb2_buffer_done' drivers/media/dvb-core/dvb_vb2.c:317: undefined reference to `vb2_buffer_done' drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_reqbufs': >> drivers/media/dvb-core/dvb_vb2.c:336: undefined reference to >> `vb2_core_reqbufs' drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_querybuf': >> drivers/media/dvb-core/dvb_vb2.c:352: undefined reference to >> `vb2_core_querybuf' drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_expbuf': >> drivers/media/dvb-core/dvb_vb2.c:362: undefined reference to >> `vb2_core_expbuf' drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_qbuf': >> drivers/media/dvb-core/dvb_vb2.c:378: undefined reference to `vb2_core_qbuf' drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_dqbuf': >> drivers/media/dvb-core/dvb_vb2.c:393: undefined reference to `vb2_core_dqbuf' drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_mmap': >> drivers/media/dvb-core/dvb_vb2.c:407: undefined reference to `vb2_mmap' drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_poll': >> drivers/media/dvb-core/dvb_vb2.c:421: undefined reference to `vb2_core_poll' vim +173 drivers/media/dvb-core/dvb_vb2.c 151 152 /* 153 * Videobuf operations 154 */ 155 int dvb_vb2_init(struct dvb_vb2_ctx *ctx, const char *name, int nonblocking) 156 { 157 struct vb2_queue *q = >vb_q; 158 int ret; 159 160 memset(ctx, 0, sizeof(struct dvb_vb2_ctx)); 161 q->type = DVB_BUF_TYPE_CAPTURE; 162 /**capture type*/ 163 q->is_output = 0; 164 /**only mmap is supported currently*/ 165 q->io_modes = VB2_MMAP; 166 q->drv_priv = ctx; 167 q->buf_struct_size = sizeof(struct dvb_buffer); 168 q->min_buffers_needed = 1; 169 q->ops = _vb2_qops; > 170 q->mem_ops = _vmalloc_memops; 171 q->buf_ops = _vb2_buf_ops; 172 q->num_buffers = 0; > 173 ret = vb2_core_queue_init(q); 174 if (ret) { 175 ctx->state = DVB_VB2_STATE_NONE; 176 dprintk(1, "[%s] errno=%d\n", ctx->name, ret); 177 return ret; 178 } 179 180 mutex_init(>mutex); 181 spin_lock_init(>slock); 182 INIT_LIST_HEAD(>dvb_q); 183 184 strncpy(ctx->name, name, DVB_VB2_NAME_MAX); 185 ctx->nonblocking = nonblocking; 186 ctx->state = DVB_VB2_STATE_INIT; 187 188 dprintk(3, "[%s]\n", ctx->name); 189 190 return 0; 191 } 192 193 int dvb_vb2_release(struct dvb_vb2_ctx *ctx) 194 { 195 struct vb2_queue *q = (struct vb2_queue *)>vb_q; 196 197 if (ctx->state & DVB_VB2_STATE_INIT) > 198 vb2_core_queue_release(q); 199 200 ctx->state = DVB_VB2_STATE_NONE; 201 dprintk(3, "[%s]\n", ctx->name); 202 203 return 0; 204 } 205 206 int dvb_vb2_stream_on(struct dvb_vb2_ctx *ctx) 207 { 208 struct vb2_queue *q = >vb_q; 209 int ret; 210 > 211 ret = vb2_core_streamon(q,
[linuxtv-media:master 3281/3294] drivers/media/dvb-core/dvb_vb2.c:170: undefined reference to `vb2_vmalloc_memops'
tree: git://linuxtv.org/media_tree.git master head: 201b56737f4ea59ee840ebdb88a9970ea6d49cf1 commit: 57868acc369ab73ec8f6b43a0c6749077376b189 [3281/3294] media: videobuf2: Add new uAPI for DVB streaming I/O config: i386-randconfig-n0-201752 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: git checkout 57868acc369ab73ec8f6b43a0c6749077376b189 # save the attached .config to linux build tree make ARCH=i386 Note: the linuxtv-media/master HEAD 201b56737f4ea59ee840ebdb88a9970ea6d49cf1 builds fine. It only hurts bisectibility. All errors (new ones prefixed by >>): drivers/media/dvb-core/dvb_vb2.o: In function `dvb_vb2_init': >> drivers/media/dvb-core/dvb_vb2.c:170: undefined reference to >> `vb2_vmalloc_memops' vim +170 drivers/media/dvb-core/dvb_vb2.c 151 152 /* 153 * Videobuf operations 154 */ 155 int dvb_vb2_init(struct dvb_vb2_ctx *ctx, const char *name, int nonblocking) 156 { 157 struct vb2_queue *q = >vb_q; 158 int ret; 159 160 memset(ctx, 0, sizeof(struct dvb_vb2_ctx)); 161 q->type = DVB_BUF_TYPE_CAPTURE; 162 /**capture type*/ 163 q->is_output = 0; 164 /**only mmap is supported currently*/ 165 q->io_modes = VB2_MMAP; 166 q->drv_priv = ctx; 167 q->buf_struct_size = sizeof(struct dvb_buffer); 168 q->min_buffers_needed = 1; 169 q->ops = _vb2_qops; > 170 q->mem_ops = _vmalloc_memops; 171 q->buf_ops = _vb2_buf_ops; 172 q->num_buffers = 0; 173 ret = vb2_core_queue_init(q); 174 if (ret) { 175 ctx->state = DVB_VB2_STATE_NONE; 176 dprintk(1, "[%s] errno=%d\n", ctx->name, ret); 177 return ret; 178 } 179 180 mutex_init(>mutex); 181 spin_lock_init(>slock); 182 INIT_LIST_HEAD(>dvb_q); 183 184 strncpy(ctx->name, name, DVB_VB2_NAME_MAX); 185 ctx->nonblocking = nonblocking; 186 ctx->state = DVB_VB2_STATE_INIT; 187 188 dprintk(3, "[%s]\n", ctx->name); 189 190 return 0; 191 } 192 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[linuxtv-media:master 3288/3291] drivers/media/common/videobuf/videobuf2-core.c:2525:34-35: Unneeded semicolon
tree: git://linuxtv.org/media_tree.git master head: a114a585be4f3173fe454921a0918fb7e71633b0 commit: 03fbdb2fc2b8bb27b0ee0534fd3e9c57cdc3854a [3288/3291] media: move videobuf2 to drivers/media/common config: i386-allmodconfig (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: git checkout 03fbdb2fc2b8bb27b0ee0534fd3e9c57cdc3854a # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): In file included from drivers/media/common/videobuf/videobuf2-dvb.c:21:0: >> include/media/videobuf2-dvb.h:5:10: fatal error: dvbdev.h: No such file or >> directory #include ^~ compilation terminated. coccinelle warnings: (new ones prefixed by >>) >> drivers/media/common/videobuf/videobuf2-core.c:2525:34-35: Unneeded semicolon Please review and possibly fold the followup patch. --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[PATCH] media: fix semicolon.cocci warnings
From: Fengguang Wudrivers/media/common/videobuf/videobuf2-core.c:2525:34-35: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 03fbdb2fc2b8 ("media: move videobuf2 to drivers/media/common") Signed-off-by: Fengguang Wu --- videobuf2-core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/common/videobuf/videobuf2-core.c +++ b/drivers/media/common/videobuf/videobuf2-core.c @@ -2522,7 +2522,7 @@ static int vb2_thread(void *data) break; call_void_qop(q, wait_finish, q); if (copy_timestamp) - vb->timestamp = ktime_get_ns();; + vb->timestamp = ktime_get_ns(); if (!threadio->stop) ret = vb2_core_qbuf(q, vb->index, NULL); call_void_qop(q, wait_prepare, q);
Re: [PATCH 3/4] media: ov2685: add support for OV2685 sensor
Hi Shunqian, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.15-rc5 next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Shunqian-Zheng/media-ov5695-add-support-for-OV5695-sensor/20171226-110821 base: git://linuxtv.org/media_tree.git master reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) vim +248 drivers/media/i2c/ov2685.c 232 233 /* Write registers up to 4 at a time */ 234 static int ov2685_write_reg(struct i2c_client *client, u16 reg, 235 unsigned int len, u32 val) 236 { 237 int buf_i; 238 int val_i; 239 u8 buf[6]; 240 u8 *val_p; 241 242 if (len > 4) 243 return -EINVAL; 244 245 buf[0] = reg >> 8; 246 buf[1] = reg & 0xff; 247 > 248 val = cpu_to_be32(val); 249 val_p = (u8 *) 250 buf_i = 2; 251 val_i = 4 - len; 252 253 while (val_i < 4) 254 buf[buf_i++] = val_p[val_i++]; 255 256 if (i2c_master_send(client, buf, len + 2) != len + 2) 257 return -EIO; 258 259 return 0; 260 } 261 262 static int ov2685_write_array(struct i2c_client *client, 263const struct regval *regs) 264 { 265 int i, ret = 0; 266 267 for (i = 0; ret == 0 && regs[i].addr != REG_NULL; i++) 268 ret = ov2685_write_reg(client, regs[i].addr, 269 OV2685_REG_VALUE_08BIT, regs[i].val); 270 271 return ret; 272 } 273 274 /* Read registers up to 4 at a time */ 275 static int ov2685_read_reg(struct i2c_client *client, u16 reg, 276 unsigned int len, u32 *val) 277 { 278 struct i2c_msg msgs[2]; 279 u8 *data_be_p; 280 u32 data_be = 0; > 281 u16 reg_addr_be = cpu_to_be16(reg); 282 int ret; 283 284 if (len > 4) 285 return -EINVAL; 286 287 data_be_p = (u8 *)_be; 288 /* Write register address */ 289 msgs[0].addr = client->addr; 290 msgs[0].flags = 0; 291 msgs[0].len = 2; 292 msgs[0].buf = (u8 *)_addr_be; 293 294 /* Read data from register */ 295 msgs[1].addr = client->addr; 296 msgs[1].flags = I2C_M_RD; 297 msgs[1].len = len; 298 msgs[1].buf = _be_p[4 - len]; 299 300 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); 301 if (ret != ARRAY_SIZE(msgs)) 302 return -EIO; 303 > 304 *val = be32_to_cpu(data_be); 305 306 return 0; 307 } 308 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Re: [PATCH 1/4] media: ov5695: add support for OV5695 sensor
Hi Shunqian, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.15-rc5 next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Shunqian-Zheng/media-ov5695-add-support-for-OV5695-sensor/20171226-110821 base: git://linuxtv.org/media_tree.git master reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) vim +713 drivers/media/i2c/ov5695.c 697 698 /* Write registers up to 4 at a time */ 699 static int ov5695_write_reg(struct i2c_client *client, u16 reg, 700 unsigned int len, u32 val) 701 { 702 int buf_i; 703 int val_i; 704 u8 buf[6]; 705 u8 *val_p; 706 707 if (len > 4) 708 return -EINVAL; 709 710 buf[0] = reg >> 8; 711 buf[1] = reg & 0xff; 712 > 713 val = cpu_to_be32(val); 714 val_p = (u8 *) 715 buf_i = 2; 716 val_i = 4 - len; 717 718 while (val_i < 4) 719 buf[buf_i++] = val_p[val_i++]; 720 721 if (i2c_master_send(client, buf, len + 2) != len + 2) 722 return -EIO; 723 724 return 0; 725 } 726 727 static int ov5695_write_array(struct i2c_client *client, 728const struct regval *regs) 729 { 730 int i, ret = 0; 731 732 for (i = 0; ret == 0 && regs[i].addr != REG_NULL; i++) 733 ret = ov5695_write_reg(client, regs[i].addr, 734 OV5695_REG_VALUE_08BIT, regs[i].val); 735 736 return ret; 737 } 738 739 /* Read registers up to 4 at a time */ 740 static int ov5695_read_reg(struct i2c_client *client, u16 reg, unsigned int len, 741 u32 *val) 742 { 743 struct i2c_msg msgs[2]; 744 u8 *data_be_p; 745 u32 data_be = 0; > 746 u16 reg_addr_be = cpu_to_be16(reg); 747 int ret; 748 749 if (len > 4) 750 return -EINVAL; 751 752 data_be_p = (u8 *)_be; 753 /* Write register address */ 754 msgs[0].addr = client->addr; 755 msgs[0].flags = 0; 756 msgs[0].len = 2; 757 msgs[0].buf = (u8 *)_addr_be; 758 759 /* Read data from register */ 760 msgs[1].addr = client->addr; 761 msgs[1].flags = I2C_M_RD; 762 msgs[1].len = len; 763 msgs[1].buf = _be_p[4 - len]; 764 765 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); 766 if (ret != ARRAY_SIZE(msgs)) 767 return -EIO; 768 > 769 *val = be32_to_cpu(data_be); 770 771 return 0; 772 } 773 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Re: [PATCH v4 16/18] scripts: kernel-doc: improve nested logic to handle multiple identifiers
Hi Mauro, I love your patch! Perhaps something to improve: [auto build test WARNING on lwn/docs-next] [also build test WARNING on v4.15-rc4 next-20171221] [cannot apply to linus/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Mauro-Carvalho-Chehab/kernel-doc-add-supported-to-document-nested-structs/20171221-055609 base: git://git.lwn.net/linux-2.6 docs-next reproduce: make htmldocs All warnings (new ones prefixed by >>): WARNING: convert(1) not found, for SVG to PDF conversion install ImageMagick (https://www.imagemagick.org) include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/crypto/hash.h:89: warning: duplicate section name 'Note' include/crypto/hash.h:95: warning: duplicate section name 'Note' include/crypto/hash.h:102: warning: duplicate section name 'Note' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.ablkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.blkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.cipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.compress' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.ablkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.blkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.cipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.compress' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.ablkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.blkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.cipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.compress' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.ablkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.blkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.cipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.compress' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.ablkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.blkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.cipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.compress' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.ablkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.blkcipher' not described in 'crypto_alg' include/linux/crypto.h:469: warning: Function parameter or member 'cra_u.cipher' not described in 'crypto_alg'
Re: [PATCH v4 15/18] scripts: kernel-doc: handle nested struct function arguments
Hi Mauro, I love your patch! Perhaps something to improve: [auto build test WARNING on lwn/docs-next] [also build test WARNING on v4.15-rc4 next-20171221] [cannot apply to linus/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Mauro-Carvalho-Chehab/kernel-doc-add-supported-to-document-nested-structs/20171221-055609 base: git://git.lwn.net/linux-2.6 docs-next reproduce: make htmldocs All warnings (new ones prefixed by >>): Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1072. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1072. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1072. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1072. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1072. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1072. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1072. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1072. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1072. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by
Re: [PATCH v4 14/18] scripts: kernel-doc: print the declaration name on warnings
Hi Mauro, I love your patch! Perhaps something to improve: [auto build test WARNING on lwn/docs-next] [also build test WARNING on v4.15-rc4 next-20171220] [cannot apply to linus/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Mauro-Carvalho-Chehab/kernel-doc-add-supported-to-document-nested-structs/20171221-055609 base: git://git.lwn.net/linux-2.6 docs-next reproduce: make htmldocs All warnings (new ones prefixed by >>): Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1058. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1058. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1058. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1058. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1058. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1058. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1058. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1058. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1058. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(struct|union)([^{};]+){ <-- HERE ([^{}]*)}([^{}\;]*)\;/ at scripts/kernel-doc line 1036. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by
Re: [PATCH v2 2/2] media: coda: Add i.MX51 (CodaHx4) support
Hi Philipp, I love your patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.15-rc4 next-20171220] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Philipp-Zabel/media-dt-bindings-coda-Add-compatible-for-CodaHx4-on-i-MX51/20171221-050217 base: git://linuxtv.org/media_tree.git master config: x86_64-allmodconfig (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 Note: it may well be a FALSE warning. FWIW you are at least aware of it now. http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings All warnings (new ones prefixed by >>): drivers/media/platform/coda/coda-bit.c: In function 'coda_setup_iram': >> drivers/media/platform/coda/coda-bit.c:648:28: warning: 'me_bits' may be >> used uninitialized in this function [-Wmaybe-uninitialized] iram_info->axi_sram_use |= me_bits; ^~ vim +/me_bits +648 drivers/media/platform/coda/coda-bit.c 588 589 static void coda_setup_iram(struct coda_ctx *ctx) 590 { 591 struct coda_iram_info *iram_info = >iram_info; 592 struct coda_dev *dev = ctx->dev; 593 int w64, w128; 594 int mb_width; 595 int dbk_bits; 596 int bit_bits; 597 int ip_bits; 598 int me_bits; 599 600 memset(iram_info, 0, sizeof(*iram_info)); 601 iram_info->next_paddr = dev->iram.paddr; 602 iram_info->remaining = dev->iram.size; 603 604 if (!dev->iram.vaddr) 605 return; 606 607 switch (dev->devtype->product) { 608 case CODA_HX4: 609 dbk_bits = CODA7_USE_HOST_DBK_ENABLE; 610 bit_bits = CODA7_USE_HOST_BIT_ENABLE; 611 ip_bits = CODA7_USE_HOST_IP_ENABLE; 612 me_bits = CODA7_USE_HOST_ME_ENABLE; 613 break; 614 case CODA_7541: 615 dbk_bits = CODA7_USE_HOST_DBK_ENABLE | CODA7_USE_DBK_ENABLE; 616 bit_bits = CODA7_USE_HOST_BIT_ENABLE | CODA7_USE_BIT_ENABLE; 617 ip_bits = CODA7_USE_HOST_IP_ENABLE | CODA7_USE_IP_ENABLE; 618 me_bits = CODA7_USE_HOST_ME_ENABLE | CODA7_USE_ME_ENABLE; 619 break; 620 case CODA_960: 621 dbk_bits = CODA9_USE_HOST_DBK_ENABLE | CODA9_USE_DBK_ENABLE; 622 bit_bits = CODA9_USE_HOST_BIT_ENABLE | CODA7_USE_BIT_ENABLE; 623 ip_bits = CODA9_USE_HOST_IP_ENABLE | CODA7_USE_IP_ENABLE; 624 break; 625 default: /* CODA_DX6 */ 626 return; 627 } 628 629 if (ctx->inst_type == CODA_INST_ENCODER) { 630 struct coda_q_data *q_data_src; 631 632 q_data_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); 633 mb_width = DIV_ROUND_UP(q_data_src->width, 16); 634 w128 = mb_width * 128; 635 w64 = mb_width * 64; 636 637 /* Prioritize in case IRAM is too small for everything */ 638 if (dev->devtype->product == CODA_HX4 || 639 dev->devtype->product == CODA_7541) { 640 iram_info->search_ram_size = round_up(mb_width * 16 * 64136 + 2048, 1024); 642 iram_info->search_ram_paddr = coda_iram_alloc(iram_info, 643 iram_info->search_ram_size); 644 if (!iram_info->search_ram_paddr) { 645 pr_err("IRAM is smaller than the search ram size\n"); 646 goto out; 647 } > 648 iram_info->axi_sram_use |= me_bits; 649 } 650 651 /* Only H.264BP and H.263P3 are considered */ 652 iram_info->buf_dbk_y_use = coda_iram_alloc(iram_info, w64); 653 iram_info->buf_dbk_c_use = coda_iram_alloc(iram_info, w64); 654 if (!iram_info->buf_dbk_c_use) 655 goto out; 656 iram_info->axi_sram_use |= dbk_bits; 657 658 iram_info->buf_bit_use = coda_iram_alloc(iram_info, w128); 659 if (!iram_info->buf_bit_use) 660 goto out; 661 iram_info->axi_sram_use |= bit_bits; 662 663 iram_info->buf_ip_ac_dc_use =
[linux-next:master 5319/5462] drivers/media/rc/lirc_dev.c:368:2: warning: 'txbuf' may be used uninitialized in this function
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: a5791b188fb25ff731d01d1c463b01a99c58f930 commit: d60ea519eb2fbee045ca18a26bd37d5949ac4f87 [5319/5462] Merge remote-tracking branch 'v4l-dvb/master' config: xtensa-allmodconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout d60ea519eb2fbee045ca18a26bd37d5949ac4f87 # save the attached .config to linux build tree make.cross ARCH=xtensa Note: it may well be a FALSE warning. FWIW you are at least aware of it now. http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings All warnings (new ones prefixed by >>): drivers/media/rc/lirc_dev.c: In function 'ir_lirc_transmit_ir': >> drivers/media/rc/lirc_dev.c:368:2: warning: 'txbuf' may be used >> uninitialized in this function [-Wmaybe-uninitialized] kfree(txbuf); ^~~~ vim +/txbuf +368 drivers/media/rc/lirc_dev.c 74c839b2f drivers/media/rc/lirc_dev.c Sean Young 2017-01-30 228 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 229 static ssize_t ir_lirc_transmit_ir(struct file *file, const char __user *buf, 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 230 size_t n, loff_t *ppos) 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 231 { 7e45d660e drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 232 struct lirc_fh *fh = file->private_data; 7e45d660e drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 233 struct rc_dev *dev = fh->rc; a74b2bff5 drivers/media/rc/lirc_dev.c Sean Young 2017-12-13 234 unsigned int *txbuf; 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 235 struct ir_raw_event *raw = NULL; 4957133fe drivers/media/rc/lirc_dev.c Sean Young 2017-11-04 236 ssize_t ret; 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 237 size_t count; 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 238 ktime_t start; 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 239 s64 towait; 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 240 unsigned int duration = 0; /* signal duration in us */ 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 241 int i; 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 242 4957133fe drivers/media/rc/lirc_dev.c Sean Young 2017-11-04 243 ret = mutex_lock_interruptible(>lock); 4957133fe drivers/media/rc/lirc_dev.c Sean Young 2017-11-04 244 if (ret) 4957133fe drivers/media/rc/lirc_dev.c Sean Young 2017-11-04 245 return ret; 4a62a5ab5 drivers/media/IR/lirc_dev.c Jarod Wilson2010-07-03 246 4957133fe drivers/media/rc/lirc_dev.c Sean Young 2017-11-04 247 if (!dev->registered) { 4957133fe drivers/media/rc/lirc_dev.c Sean Young 2017-11-04 248 ret = -ENODEV; a74b2bff5 drivers/media/rc/lirc_dev.c Sean Young 2017-12-13 249 goto out_unlock; 4a62a5ab5 drivers/media/IR/lirc_dev.c Jarod Wilson2010-07-03 250 } 4a62a5ab5 drivers/media/IR/lirc_dev.c Jarod Wilson2010-07-03 251 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 252 start = ktime_get(); 4a62a5ab5 drivers/media/IR/lirc_dev.c Jarod Wilson2010-07-03 253 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 254 if (!dev->tx_ir) { 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 255 ret = -EINVAL; a74b2bff5 drivers/media/rc/lirc_dev.c Sean Young 2017-12-13 256 goto out_unlock; 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 257 } 4a62a5ab5 drivers/media/IR/lirc_dev.c Jarod Wilson2010-07-03 258 7e45d660e drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 259 if (fh->send_mode == LIRC_MODE_SCANCODE) { 42e0442f8 drivers/media/rc/lirc_dev.c Sean Young 2017-11-02 260 struct lirc_scancode scan; 3381b779a drivers/media/rc/lirc_dev.c David Härdeman 2017-06-30 261 4957133fe drivers/media/rc/lirc_dev.c Sean Young 2017-11-04 262 if (n != sizeof(scan)) { 4957133fe drivers/media/rc/lirc_dev.c Sean Young 2017-11-04 263 ret = -EINVAL; a74b2bff5 drivers/media/rc/lirc_dev.c Sean Young 2017-12-13 264 goto out_unlock; 3381b779a drivers/media/rc/lirc_dev.c David Härdeman 2017-06-30 265 } 3381b779a drivers/media/rc/lirc_dev.c David Härdeman 2017-06-30 266 4957133fe
[ragnatech:media-tree] BUILD SUCCESS 330dada5957e3ca0c8811b14c45e3ac42c694651
tree/branch: git://git.ragnatech.se/linux media-tree branch HEAD: 330dada5957e3ca0c8811b14c45e3ac42c694651 media: dvb_frontend: fix return error code elapsed time: 72m configs tested: 622 The following configs have been built successfully. More configs may be tested in the coming days. pariscc3000_defconfig parisc b180_defconfig parisc defconfig alpha defconfig pariscallnoconfig s390 gcov_defconfig tile allnoconfig um x86_64_defconfig arm cm_x2xx_defconfig armmmp2_defconfig powerpc rainier_defconfig arm pcm027_defconfig crisetrax-100lx_defconfig powerpc sbc834x_defconfig blackfinBF561-EZKIT-SMP_defconfig m32rmappi2.opsp_defconfig m68k m5275evb_defconfig x86_64 randconfig-a0-12131849 x86_64 randconfig-a0-12132016 x86_64 randconfig-a0-12132140 arm64 defconfig powerpc canyonlands_defconfig powerpc mpc8315_rdb_defconfig arm orion5x_defconfig powerpc acadia_defconfig shsh7785lcr_defconfig blackfinDNP5370_defconfig powerpc mpc5200_defconfig sh se7206_defconfig arm collie_defconfig armmagician_defconfig sh polaris_defconfig blackfin BF561-ACVILON_defconfig mips db1xxx_defconfig powerpc bamboo_defconfig ia64sim_defconfig m68kmvme147_defconfig powerpc mgcoge_defconfig powerpcsam440ep_defconfig shecovec24-romimage_defconfig arm ezx_defconfig mips ath25_defconfig sh apsh4a3a_defconfig arm lpc32xx_defconfig arm netwinder_defconfig powerpc g5_defconfig i386 randconfig-c0-12131617 i386 randconfig-c0-12131618 i386 randconfig-c0-12131619 i386 randconfig-c0-12131620 i386 randconfig-c0-12131622 i386 randconfig-c0-12131623 i386 randconfig-c0-12131624 i386 randconfig-c0-12131625 i386 randconfig-c0-12131626 i386 randconfig-c0-12131627 i386 randconfig-c0-12131629 i386 randconfig-c0-12131630 i386 randconfig-c0-12131631 i386 randconfig-c0-12131632 i386 randconfig-c0-12131633 i386 randconfig-c0-12131634 i386 randconfig-c0-12131635 i386 randconfig-c0-12131636 i386 randconfig-c0-12131637 i386 randconfig-c0-12131638 i386 randconfig-c0-12131639 i386 randconfig-c0-12131640 i386 randconfig-c0-12131641 i386 randconfig-c0-12131642 i386 randconfig-c0-12131643 i386 randconfig-c0-12131644 i386 randconfig-c0-12131645 i386 randconfig-c0-12131646 i386 randconfig-c0-12131647 i386 randconfig-c0-12131648 i386 randconfig-c0-12131649 i386 randconfig-c0-12131650 i386 randconfig-c0-12131651 i386 randconfig-c0-12131652 i386 randconfig-c0-12131653 i386 randconfig-c0-12131654 i386 randconfig-c0-12131953 i386 randconfig-c0-12132008 i386 randconfig-c0-12132125 i386 randconfig-x010-12131225 i386 randconfig-x011-12131225 i386 randconfig-x012-12131225 i386 randconfig-x013-12131225 i386 randconfig-x014-12131225 i386 randconfig-x015-12131225 i386 randconfig-x016-12131225 i386 randconfig-x017-12131225 i386 randconfig-x018-12131225 i386 randconfig-x019-12131225 x86_64lkp x86_64 rhel x86_64 rhel-7.2 microblaze mmu_defconfig microblazenommu_defconfig i386 randconfig-n0-201750 ia64 alldefconfig ia64
[ragnatech:media-tree] BUILD INCOMPLETE 72c27a68a2a3f650f0dc7891ee98f02283fc11af
tree/branch: git://git.ragnatech.se/linux media-tree branch HEAD: 72c27a68a2a3f650f0dc7891ee98f02283fc11af media: pvrusb2: properly check endpoint types TIMEOUT after 1192m Sorry we cannot finish the testset for your branch within a reasonable time. It's our fault -- either some build server is down or some build worker is busy doing bisects for _other_ trees. The branch will get more complete coverage and possible error reports when our build infrastructure is restored or catches up. There will be no more build success notification for this branch head, but you can expect reasonably good test coverage after waiting for 1 day. configs timed out: 164 alphaallmodconfig alphaallyesconfig alpha defconfig arm allnoconfig arm at91_dt_defconfig armcustomconfig-0 armcustomconfig-1 armcustomconfig-2 arm efm32_defconfig arm exynos_defconfig armmulti_v5_defconfig armmulti_v7_defconfig armshmobile_defconfig arm sunxi_defconfig arm64 allnoconfig arm64 customconfig-0 arm64 customconfig-1 arm64 customconfig-2 arm64 defconfig blackfinBF526-EZBRD_defconfig blackfinBF533-EZKIT_defconfig blackfinBF561-EZKIT-SMP_defconfig blackfin TCM-BF537_defconfig blackfin allmodconfig blackfin allyesconfig c6xevmc6678_defconfig cris allmodconfig cris allyesconfig cris etrax-100lx_v2_defconfig frv defconfig h8300h8300h-sim_defconfig i386 alldefconfig i386 allmodconfig i386 allnoconfig i386 customconfig-0 i386 customconfig-1 i386 customconfig-2 i386defconfig i386randconfig-a0 i386randconfig-a1 i386randconfig-i0 i386randconfig-i1 i386randconfig-n0 i386randconfig-s0 i386randconfig-s1 i386 randconfig-x000 i386 randconfig-x001 i386 randconfig-x002 i386 randconfig-x003 i386 randconfig-x004 i386 randconfig-x005 i386 randconfig-x006 i386 randconfig-x007 i386 randconfig-x008 i386 randconfig-x009 i386 randconfig-x010 i386 randconfig-x011 i386 randconfig-x012 i386 randconfig-x013 i386 randconfig-x014 i386 randconfig-x015 i386 randconfig-x016 i386 randconfig-x017 i386 randconfig-x018 i386 randconfig-x019 i386 tinyconfig ia64 alldefconfig ia64 allmodconfig ia64 allnoconfig ia64 allyesconfig ia64defconfig m32r m32104ut_defconfig m32r mappi3.smp_defconfig m32r opsput_defconfig m32r usrv_defconfig m68k allmodconfig m68k allyesconfig m68k m5475evb_defconfig m68k multi_defconfig m68k sun3_defconfig microblaze mmu_defconfig microblazenommu_defconfig mips 32r2_defconfig mips 64r6el_defconfig mips allmodconfig mips allnoconfig mips allyesconfig mips fuloong2e_defconfig mips jz4740 mips malta_kvm_defconfig mips txx9 mn10300 asb2364_defconfig nios2 10m50_defconfig openriscor1ksim_defconfig parisc
[ragnatech:media-tree] BUILD SUCCESS 0393e735649dc41358adb7b603bd57dad1ed3260
tree/branch: git://git.ragnatech.se/linux media-tree branch HEAD: 0393e735649dc41358adb7b603bd57dad1ed3260 media: uvcvideo: Stream error events carry no data elapsed time: 1165m configs tested: 138 The following configs have been built successfully. More configs may be tested in the coming days. arm badge4_defconfig mips db1xxx_defconfig parisc defconfig shtitan_defconfig sh rsk7269_defconfig sh sh7785lcr_32bit_defconfig shallnoconfig i386 randconfig-x014-201749 i386 randconfig-x013-201749 i386 randconfig-x015-201749 i386 randconfig-x019-201749 i386 randconfig-x018-201749 i386 randconfig-x011-201749 i386 randconfig-x017-201749 i386 randconfig-x012-201749 i386 randconfig-x010-201749 i386 randconfig-x016-201749 microblaze mmu_defconfig microblazenommu_defconfig i386 randconfig-n0-201749 x86_64 randconfig-x004-201749 x86_64 randconfig-x008-201749 x86_64 randconfig-x001-201749 x86_64 randconfig-x000-201749 x86_64 randconfig-x009-201749 x86_64 randconfig-x003-201749 x86_64 randconfig-x006-201749 x86_64 randconfig-x007-201749 x86_64 randconfig-x005-201749 x86_64 randconfig-x002-201749 i386 randconfig-i1-201749 i386 randconfig-i0-201749 x86_64 acpi-redef x86_64 allyesdebian x86_64nfsroot arm at91_dt_defconfig arm allnoconfig arm efm32_defconfig arm64 defconfig armmulti_v5_defconfig arm sunxi_defconfig arm64 allnoconfig arm exynos_defconfig armshmobile_defconfig armmulti_v7_defconfig x86_64 randconfig-x011-201749 x86_64 randconfig-x018-201749 x86_64 randconfig-x017-201749 x86_64 randconfig-x012-201749 x86_64 randconfig-x019-201749 x86_64 randconfig-x013-201749 x86_64 randconfig-x010-201749 x86_64 randconfig-x015-201749 x86_64 randconfig-x014-201749 x86_64 randconfig-x016-201749 i386 randconfig-a0-201749 i386 randconfig-a1-201749 cris etrax-100lx_v2_defconfig blackfin TCM-BF537_defconfig blackfinBF561-EZKIT-SMP_defconfig blackfinBF533-EZKIT_defconfig blackfinBF526-EZBRD_defconfig i386 allnoconfig i386defconfig i386 alldefconfig i386 randconfig-s0-201749 i386 randconfig-s1-201749 x86_64 defconfig powerpc ksi8560_defconfig xtensaallnoconfig x86_64 randconfig-i0-201749 arm axm55xx_defconfig arm omap1_defconfig pariscc3000_defconfig i386 tinyconfig i386 allmodconfig i386 randconfig-x074-201749 i386 randconfig-x076-201749 i386 randconfig-x071-201749 i386 randconfig-x077-201749 i386 randconfig-x073-201749 i386 randconfig-x075-201749 i386 randconfig-x070-201749 i386 randconfig-x079-201749 i386 randconfig-x072-201749 i386 randconfig-x078-201749 m68k m5475evb_defconfig m68k multi_defconfig m68k sun3_defconfig i386 randconfig-x001-201749 i386 randconfig-x003-201749 i386 randconfig-x004-201749 i386 randconfig-x002-201749 i386 randconfig-x008-201749 i386 randconfig-x006-201749 i386 randconfig-x009-201749 i386 randconfig-x000-201749 i386 randconfig-x005-201749 i386 randconfig-x007-201749 sparc defconfig sparc64 allnoconfig sparc64 defconfig
[media-next:master 3023/3029] htmldocs: include/media/rc-core.h:96: warning: Excess struct member 'rawir' description in 'lirc_fh'
tree: git://linuxtv.org/mchehab/media-next.git master head: ba815f198ca28764d3702d4401af91acf78d74c1 commit: 77bf465a4ffd7596f0367db74c571bb670ffdfb7 [3023/3029] media: lirc: allow lirc device to be opened more than once reproduce: make htmldocs All warnings (new ones prefixed by >>): vim +96 include/media/rc-core.h 70 71 /** 72 * struct lirc_fh - represents an open lirc file 73 * @list: list of open file handles 74 * @rc: rcdev for this lirc chardev 75 * @carrier_low: when setting the carrier range, first the low end must be 76 * set with an ioctl and then the high end with another ioctl 77 * @send_timeout_reports: report timeouts in lirc raw IR. 78 * @rawir: queue for incoming raw IR 79 * @scancodes: queue for incoming decoded scancodes 80 * @wait_poll: poll struct for lirc device 81 * @send_mode: lirc mode for sending, either LIRC_MODE_SCANCODE or 82 * LIRC_MODE_PULSE 83 * @rec_mode: lirc mode for receiving, either LIRC_MODE_SCANCODE or 84 * LIRC_MODE_MODE2 85 */ 86 struct lirc_fh { 87 struct list_head list; 88 struct rc_dev *rc; 89 int carrier_low; 90 boolsend_timeout_reports; 91 DECLARE_KFIFO_PTR(rawir, unsigned int); 92 DECLARE_KFIFO_PTR(scancodes, struct lirc_scancode); 93 wait_queue_head_t wait_poll; 94 u8 send_mode; 95 u8 rec_mode; > 96 }; 97 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Re: [PATCH 3/3] media: dvb_frontend: Add commands implementation for compat ioct
Hi Jaedon, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.15-rc2 next-20171204] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jaedon-Shin/Add-support-compat-in-dvb_frontend-c/20171204-201817 base: git://linuxtv.org/media_tree.git master config: x86_64-randconfig-ne0-12042359 (attached as .config) compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): drivers/media/dvb-core/dvb_frontend.c:1992:4: error: unknown type name 'compat_uptr_t' compat_uptr_t reserved2; ^ drivers/media/dvb-core/dvb_frontend.c:2000:2: error: unknown type name 'compat_uptr_t' compat_uptr_t props; ^ In file included from include/linux/string.h:6:0, from drivers/media/dvb-core/dvb_frontend.c:30: drivers/media/dvb-core/dvb_frontend.c: In function 'dvb_frontend_handle_compat_ioctl': drivers/media/dvb-core/dvb_frontend.c:2018:29: error: implicit declaration of function 'compat_ptr' [-Werror=implicit-function-declaration] if (copy_from_user(, compat_ptr(arg), sizeof(prop))) ^ include/linux/compiler.h:58:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/media/dvb-core/dvb_frontend.c:2018:3: note: in expansion of macro >> 'if' if (copy_from_user(, compat_ptr(arg), sizeof(prop))) ^~ drivers/media/dvb-core/dvb_frontend.c:2018:29: warning: passing argument 2 of 'copy_from_user' makes pointer from integer without a cast [-Wint-conversion] if (copy_from_user(, compat_ptr(arg), sizeof(prop))) ^ include/linux/compiler.h:58:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/media/dvb-core/dvb_frontend.c:2018:3: note: in expansion of macro >> 'if' if (copy_from_user(, compat_ptr(arg), sizeof(prop))) ^~ In file included from include/linux/poll.h:12:0, from drivers/media/dvb-core/dvb_frontend.c:35: include/linux/uaccess.h:144:1: note: expected 'const void *' but argument is of type 'int' copy_from_user(void *to, const void __user *from, unsigned long n) ^~ In file included from include/linux/string.h:6:0, from drivers/media/dvb-core/dvb_frontend.c:30: drivers/media/dvb-core/dvb_frontend.c:2018:29: warning: passing argument 2 of 'copy_from_user' makes pointer from integer without a cast [-Wint-conversion] if (copy_from_user(, compat_ptr(arg), sizeof(prop))) ^ include/linux/compiler.h:58:42: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/media/dvb-core/dvb_frontend.c:2018:3: note: in expansion of macro >> 'if' if (copy_from_user(, compat_ptr(arg), sizeof(prop))) ^~ In file included from include/linux/poll.h:12:0, from drivers/media/dvb-core/dvb_frontend.c:35: include/linux/uaccess.h:144:1: note: expected 'const void *' but argument is of type 'int' copy_from_user(void *to, const void __user *from, unsigned long n) ^~ In file included from include/linux/string.h:6:0, from drivers/media/dvb-core/dvb_frontend.c:30: drivers/media/dvb-core/dvb_frontend.c:2018:29: warning: passing argument 2 of 'copy_from_user' makes pointer from integer without a cast [-Wint-conversion] if (copy_from_user(, compat_ptr(arg), sizeof(prop))) ^ include/linux/compiler.h:69:16: note: in definition of macro '__trace_if' __r = !!(cond); \ ^~~~ >> drivers/media/dvb-core/dvb_frontend.c:2018:3: note: in expansion of macro >> 'if' if (copy_from_user(, compat_ptr(arg), sizeof(prop))) ^~ In file included from include/linux/poll.h:12:0, from drivers/media/dvb-core/dvb_frontend.c:35: include/linux/uaccess.h:144:1: note: expected 'const void *' but argument is of type 'int' copy_from_user(void *to, const void __user *from, unsigned long n) ^~ drivers/media/dvb-core/dvb_frontend.c:2030:21: warning: passing argument 1 of 'memdup_user' makes pointer from integer without a cast [-Wint-conversion] tvp = memdup_user(compat_ptr(tvps->props), tvps->num * sizeof(*tvp)); ^~ In file included from drivers/media/dvb-core/dvb_frontend.c:30:0: include/linux/string.h:13:14: note: expected 'const void *' but
Re: [PATCH 2/3] media: dvb_frontend: Add compat_ioctl callback
Hi Jaedon, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.15-rc2 next-20171204] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jaedon-Shin/Add-support-compat-in-dvb_frontend-c/20171204-201817 base: git://linuxtv.org/media_tree.git master config: x86_64-randconfig-x014-201749 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/media/dvb-core/dvb_frontend.c: In function 'dvb_frontend_compat_ioctl': >> drivers/media/dvb-core/dvb_frontend.c:1985:54: error: implicit declaration >> of function 'compat_ptr'; did you mean 'complete'? >> [-Werror=implicit-function-declaration] return dvb_frontend_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); ^~ complete cc1: some warnings being treated as errors vim +1985 drivers/media/dvb-core/dvb_frontend.c 1980 1981 #ifdef CONFIG_COMPAT 1982 static long dvb_frontend_compat_ioctl(struct file *file, unsigned int cmd, 1983unsigned long arg) 1984 { > 1985 return dvb_frontend_ioctl(file, cmd, (unsigned > long)compat_ptr(arg)); 1986 } 1987 #endif 1988 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH 3/3] media: dvb_frontend: Add commands implementation for compat ioct
Hi Jaedon, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.15-rc2 next-20171204] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jaedon-Shin/Add-support-compat-in-dvb_frontend-c/20171204-201817 base: git://linuxtv.org/media_tree.git master config: x86_64-randconfig-x014-201749 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All error/warnings (new ones prefixed by >>): >> drivers/media//dvb-core/dvb_frontend.c:1992:4: error: unknown type name >> 'compat_uptr_t' compat_uptr_t reserved2; ^ drivers/media//dvb-core/dvb_frontend.c:2000:2: error: unknown type name 'compat_uptr_t' compat_uptr_t props; ^ drivers/media//dvb-core/dvb_frontend.c: In function 'dvb_frontend_handle_compat_ioctl': drivers/media//dvb-core/dvb_frontend.c:2018:29: error: implicit declaration of function 'compat_ptr'; did you mean 'complete'? [-Werror=implicit-function-declaration] if (copy_from_user(, compat_ptr(arg), sizeof(prop))) ^~ complete >> drivers/media//dvb-core/dvb_frontend.c:2018:29: warning: passing argument 2 >> of 'copy_from_user' makes pointer from integer without a cast >> [-Wint-conversion] In file included from include/linux/poll.h:12:0, from drivers/media//dvb-core/dvb_frontend.c:35: include/linux/uaccess.h:144:1: note: expected 'const void *' but argument is of type 'int' copy_from_user(void *to, const void __user *from, unsigned long n) ^~ >> drivers/media//dvb-core/dvb_frontend.c:2030:21: warning: passing argument 1 >> of 'memdup_user' makes pointer from integer without a cast [-Wint-conversion] tvp = memdup_user(compat_ptr(tvps->props), tvps->num * sizeof(*tvp)); ^~ In file included from drivers/media//dvb-core/dvb_frontend.c:30:0: include/linux/string.h:13:14: note: expected 'const void *' but argument is of type 'int' extern void *memdup_user(const void __user *, size_t); ^~~ drivers/media//dvb-core/dvb_frontend.c:2049:29: warning: passing argument 2 of 'copy_from_user' makes pointer from integer without a cast [-Wint-conversion] if (copy_from_user(, compat_ptr(arg), sizeof(prop))) ^~ In file included from include/linux/poll.h:12:0, from drivers/media//dvb-core/dvb_frontend.c:35: include/linux/uaccess.h:144:1: note: expected 'const void *' but argument is of type 'int' copy_from_user(void *to, const void __user *from, unsigned long n) ^~ drivers/media//dvb-core/dvb_frontend.c:2061:21: warning: passing argument 1 of 'memdup_user' makes pointer from integer without a cast [-Wint-conversion] tvp = memdup_user(compat_ptr(tvps->props), tvps->num * sizeof(*tvp)); ^~ In file included from drivers/media//dvb-core/dvb_frontend.c:30:0: include/linux/string.h:13:14: note: expected 'const void *' but argument is of type 'int' extern void *memdup_user(const void __user *, size_t); ^~~ >> drivers/media//dvb-core/dvb_frontend.c:2087:20: warning: cast to pointer >> from integer of different size [-Wint-to-pointer-cast] if (copy_to_user((void __user *)compat_ptr(tvps->props), tvp, ^ cc1: some warnings being treated as errors vim +/compat_uptr_t +1992 drivers/media//dvb-core/dvb_frontend.c 1980 1981 #ifdef CONFIG_COMPAT 1982 struct compat_dtv_property { 1983 __u32 cmd; 1984 __u32 reserved[3]; 1985 union { 1986 __u32 data; 1987 struct dtv_fe_stats st; 1988 struct { 1989 __u8 data[32]; 1990 __u32 len; 1991 __u32 reserved1[3]; > 1992 compat_uptr_t reserved2; 1993 } buffer; 1994 } u; 1995 int result; 1996 } __attribute__ ((packed)); 1997 1998 struct compat_dtv_properties { 1999 __u32 num; > 2000 compat_uptr_t props; 2001 }; 2002 2003 #define COMPAT_FE_SET_PROPERTY _IOW('o', 82, struct compat_dtv_properties) 2004 #define COMPAT_FE_GET_PROPERTY _IOR('o', 83, struct compat_dtv_properties) 2005 2006 static int dvb_frontend_handle_compat_ioctl(struct file *file, unsigned int cmd, 2007 unsigned long arg) 2008 { 2009 struct dvb_device *dvbdev = file->private_data; 2010 struct dvb_frontend *fe =
[PATCH] dvb_frontend: fix ifnullfree.cocci warnings
drivers/media/dvb-core/dvb_frontend.c:154:2-7: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganizing relevant code to avoid passing NULL values. NULL check before some freeing functions is not needed. Based on checkpatch warning "kfree(NULL) is safe this check is probably not required" and kfreeaddr.cocci by Julia Lawall. Generated by: scripts/coccinelle/free/ifnullfree.cocci Fixes: b1cb7372fa82 ("dvb_frontend: don't use-after-free the frontend struct") Signed-off-by: Fengguang Wu--- dvb_frontend.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/media/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb-core/dvb_frontend.c @@ -150,8 +150,7 @@ static void __dvb_frontend_free(struct d dvb_frontend_invoke_release(fe, fe->ops.release); - if (fepriv) - kfree(fepriv); + kfree(fepriv); } static void dvb_frontend_free(struct kref *ref)
drivers/media/dvb-core/dvb_frontend.c:154:2-7: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganiz
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 commit: b1cb7372fa822af6c06c8045963571d13ad6348b dvb_frontend: don't use-after-free the frontend struct date: 3 weeks ago coccinelle warnings: (new ones prefixed by >>) >> drivers/media/dvb-core/dvb_frontend.c:154:2-7: WARNING: NULL check before >> freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or >> usb_free_urb is not needed. Maybe consider reorganizing relevant code to >> avoid passing NULL values. Please review and possibly fold the followup patch. --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Re: [PATCH v2 04/11] media: rkisp1: add Rockchip MIPI Synopsys DPHY driver
Hi Jacob, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20171124] [cannot apply to rockchip/for-next v4.14] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jacob-Chen/Rockchip-ISP1-Driver/20171126-224713 base: git://linuxtv.org/media_tree.git master config: mips-allmodconfig (attached as .config) compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=mips All errors (new ones prefixed by >>): drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c:634:66: error: expected identifier or '(' before '=' token struct v4l2_async_notifier_operationsrockchip_mipidphy_async_ops = { ^ drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c: In function 'rockchip_mipidphy_media_init': >> drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c:707:24: error: >> 'rockchip_mipidphy_async_ops' undeclared (first use in this function); did >> you mean 'rockchip_mipidphy_match_id'? priv->notifier.ops = _mipidphy_async_ops; ^~~ rockchip_mipidphy_match_id drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c:707:24: note: each undeclared identifier is reported only once for each function it appears in At top level: drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c:593:1: warning: 'rockchip_mipidphy_notifier_complete' defined but not used [-Wunused-function] rockchip_mipidphy_notifier_complete(struct v4l2_async_notifier *notifier) ^~~ drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c:579:1: warning: 'rockchip_mipidphy_notifier_unbind' defined but not used [-Wunused-function] rockchip_mipidphy_notifier_unbind(struct v4l2_async_notifier *notifier, ^ drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c:555:1: warning: 'rockchip_mipidphy_notifier_bound' defined but not used [-Wunused-function] rockchip_mipidphy_notifier_bound(struct v4l2_async_notifier *notifier, ^~~~ vim +707 drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c 632 633 static const > 634 struct v4l2_async_notifier_operationsrockchip_mipidphy_async_ops = { 635 .bound = rockchip_mipidphy_notifier_bound, 636 .unbind = rockchip_mipidphy_notifier_unbind, 637 .complete = rockchip_mipidphy_notifier_complete, 638 }; 639 640 static int rockchip_mipidphy_fwnode_parse(struct device *dev, 641 struct v4l2_fwnode_endpoint *vep, 642 struct v4l2_async_subdev *asd) 643 { 644 struct sensor_async_subdev *s_asd = 645 container_of(asd, struct sensor_async_subdev, asd); 646 struct v4l2_mbus_config *config = _asd->mbus; 647 648 if (vep->bus_type != V4L2_MBUS_CSI2) { 649 dev_err(dev, "Only CSI2 bus type is currently supported\n"); 650 return -EINVAL; 651 } 652 653 if (vep->base.port != 0) { 654 dev_err(dev, "The PHY has only port 0\n"); 655 return -EINVAL; 656 } 657 658 config->type = V4L2_MBUS_CSI2; 659 config->flags = vep->bus.mipi_csi2.flags; 660 s_asd->lanes = vep->bus.mipi_csi2.num_data_lanes; 661 662 switch (vep->bus.mipi_csi2.num_data_lanes) { 663 case 1: 664 config->flags |= V4L2_MBUS_CSI2_1_LANE; 665 break; 666 case 2: 667 config->flags |= V4L2_MBUS_CSI2_2_LANE; 668 break; 669 case 3: 670 config->flags |= V4L2_MBUS_CSI2_3_LANE; 671 break; 672 case 4: 673 config->flags |= V4L2_MBUS_CSI2_4_LANE; 674 break; 675 default: 676 return -EINVAL; 677 } 678 679 return 0; 680 } 681 682 static int rockchip_mipidphy_media_init(struct mipidphy_priv *priv) 683 { 684 int ret; 685 686 priv->pads[MIPI_DPHY_SY_PAD_SOURCE].flags = 687 MEDIA_PAD_FL_SOURCE | MEDIA_PAD_FL_MUST_CONNECT; 688 priv->pads[MIPI_DPHY_SY_PAD_SINK].flags = 689 MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_MUST_CONNECT; 690 691 ret = media_entity_pads_init(>sd.entity, 692
Re: [PATCH v2 03/11] media: rkisp1: add rockchip isp1 driver
Hi Jacob, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20171124] [cannot apply to rockchip/for-next v4.14] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jacob-Chen/Rockchip-ISP1-Driver/20171126-224713 base: git://linuxtv.org/media_tree.git master config: mips-allmodconfig (attached as .config) compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=mips All error/warnings (new ones prefixed by >>): drivers/media//platform/rockchip/isp1/rkisp1.c: In function 'rkisp1_isp_sd_s_stream': >> drivers/media//platform/rockchip/isp1/rkisp1.c:136:6: warning: 'isp_ctrl' >> may be used uninitialized in this function [-Wmaybe-uninitialized] u32 isp_ctrl; ^~~~ >> drivers/media//platform/rockchip/isp1/rkisp1.c:209:2: warning: 'acq_mult' >> may be used uninitialized in this function [-Wmaybe-uninitialized] writel(acq_mult * in_frm->width, base + CIF_ISP_ACQ_H_SIZE); ^~~ drivers/media//platform/rockchip/isp1/rkisp1.c:139:6: note: 'acq_mult' was declared here u32 acq_mult; ^~~~ -- drivers/media//platform/rockchip/isp1/dev.c: In function 'rkisp1_runtime_suspend': drivers/media//platform/rockchip/isp1/dev.c:597:9: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration] return pinctrl_pm_select_sleep_state(dev); ^ drivers/media//platform/rockchip/isp1/dev.c: In function 'rkisp1_runtime_resume': >> drivers/media//platform/rockchip/isp1/dev.c:605:8: error: implicit >> declaration of function 'pinctrl_pm_select_default_state'; did you mean >> 'irq_set_default_host'? [-Werror=implicit-function-declaration] ret = pinctrl_pm_select_default_state(dev); ^~~ irq_set_default_host cc1: some warnings being treated as errors -- >> drivers/media//platform/rockchip/isp1/isp_params.c:1350:3: error: 'const >> struct v4l2_ioctl_ops' has no member named 'vidioc_enum_fmt_meta_out'; did >> you mean 'vidioc_enum_fmt_meta_cap'? .vidioc_enum_fmt_meta_out = rkisp1_params_enum_fmt_meta_out, ^~~~ vidioc_enum_fmt_meta_cap drivers/media//platform/rockchip/isp1/isp_params.c:1350:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .vidioc_enum_fmt_meta_out = rkisp1_params_enum_fmt_meta_out, ^~~ drivers/media//platform/rockchip/isp1/isp_params.c:1350:30: note: (near initialization for 'rkisp1_params_ioctl.vidioc_g_std') >> drivers/media//platform/rockchip/isp1/isp_params.c:1351:3: error: 'const >> struct v4l2_ioctl_ops' has no member named 'vidioc_g_fmt_meta_out'; did you >> mean 'vidioc_g_fmt_meta_cap'? .vidioc_g_fmt_meta_out = rkisp1_params_g_fmt_meta_out, ^ vidioc_g_fmt_meta_cap drivers/media//platform/rockchip/isp1/isp_params.c:1351:27: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .vidioc_g_fmt_meta_out = rkisp1_params_g_fmt_meta_out, ^~~~ drivers/media//platform/rockchip/isp1/isp_params.c:1351:27: note: (near initialization for 'rkisp1_params_ioctl.vidioc_s_std') >> drivers/media//platform/rockchip/isp1/isp_params.c:1352:3: error: 'const >> struct v4l2_ioctl_ops' has no member named 'vidioc_s_fmt_meta_out'; did you >> mean 'vidioc_s_fmt_meta_cap'? .vidioc_s_fmt_meta_out = rkisp1_params_g_fmt_meta_out, ^ vidioc_s_fmt_meta_cap drivers/media//platform/rockchip/isp1/isp_params.c:1352:27: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .vidioc_s_fmt_meta_out = rkisp1_params_g_fmt_meta_out, ^~~~ drivers/media//platform/rockchip/isp1/isp_params.c:1352:27: note: (near initialization for 'rkisp1_params_ioctl.vidioc_querystd') >> drivers/media//platform/rockchip/isp1/isp_params.c:1353:3: error: 'const >> struct v4l2_ioctl_ops' has no member named 'vidioc_try_fmt_meta_out'; did >> you mean 'vidioc_try_fmt_meta_cap'? .vidioc_try_fmt_meta_out = rkisp1_params_g_fmt_meta_out, ^~~ vidioc_try_fmt_meta_cap drivers/media//platform/rockchip/isp1/isp_params.c:1353:29: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
Re: [PATCH v2 04/11] media: rkisp1: add Rockchip MIPI Synopsys DPHY driver
Hi Jacob, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20171124] [cannot apply to rockchip/for-next v4.14] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jacob-Chen/Rockchip-ISP1-Driver/20171126-224713 base: git://linuxtv.org/media_tree.git master config: blackfin-allmodconfig (attached as .config) compiler: bfin-uclinux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=blackfin All errors (new ones prefixed by >>): >> drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c:634:66: error: expected >> identifier or '(' before '=' token struct v4l2_async_notifier_operationsrockchip_mipidphy_async_ops = { ^ drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c: In function 'rockchip_mipidphy_media_init': >> drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c:707:24: error: >> 'rockchip_mipidphy_async_ops' undeclared (first use in this function) priv->notifier.ops = _mipidphy_async_ops; ^~~ drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c:707:24: note: each undeclared identifier is reported only once for each function it appears in At top level: drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c:593:1: warning: 'rockchip_mipidphy_notifier_complete' defined but not used [-Wunused-function] rockchip_mipidphy_notifier_complete(struct v4l2_async_notifier *notifier) ^~~ drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c:579:1: warning: 'rockchip_mipidphy_notifier_unbind' defined but not used [-Wunused-function] rockchip_mipidphy_notifier_unbind(struct v4l2_async_notifier *notifier, ^ drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c:555:1: warning: 'rockchip_mipidphy_notifier_bound' defined but not used [-Wunused-function] rockchip_mipidphy_notifier_bound(struct v4l2_async_notifier *notifier, ^~~~ vim +634 drivers/media/platform/rockchip/isp1/mipi_dphy_sy.c 632 633 static const > 634 struct v4l2_async_notifier_operationsrockchip_mipidphy_async_ops = { 635 .bound = rockchip_mipidphy_notifier_bound, 636 .unbind = rockchip_mipidphy_notifier_unbind, 637 .complete = rockchip_mipidphy_notifier_complete, 638 }; 639 640 static int rockchip_mipidphy_fwnode_parse(struct device *dev, 641 struct v4l2_fwnode_endpoint *vep, 642 struct v4l2_async_subdev *asd) 643 { 644 struct sensor_async_subdev *s_asd = 645 container_of(asd, struct sensor_async_subdev, asd); 646 struct v4l2_mbus_config *config = _asd->mbus; 647 648 if (vep->bus_type != V4L2_MBUS_CSI2) { 649 dev_err(dev, "Only CSI2 bus type is currently supported\n"); 650 return -EINVAL; 651 } 652 653 if (vep->base.port != 0) { 654 dev_err(dev, "The PHY has only port 0\n"); 655 return -EINVAL; 656 } 657 658 config->type = V4L2_MBUS_CSI2; 659 config->flags = vep->bus.mipi_csi2.flags; 660 s_asd->lanes = vep->bus.mipi_csi2.num_data_lanes; 661 662 switch (vep->bus.mipi_csi2.num_data_lanes) { 663 case 1: 664 config->flags |= V4L2_MBUS_CSI2_1_LANE; 665 break; 666 case 2: 667 config->flags |= V4L2_MBUS_CSI2_2_LANE; 668 break; 669 case 3: 670 config->flags |= V4L2_MBUS_CSI2_3_LANE; 671 break; 672 case 4: 673 config->flags |= V4L2_MBUS_CSI2_4_LANE; 674 break; 675 default: 676 return -EINVAL; 677 } 678 679 return 0; 680 } 681 682 static int rockchip_mipidphy_media_init(struct mipidphy_priv *priv) 683 { 684 int ret; 685 686 priv->pads[MIPI_DPHY_SY_PAD_SOURCE].flags = 687 MEDIA_PAD_FL_SOURCE | MEDIA_PAD_FL_MUST_CONNECT; 688 priv->pads[MIPI_DPHY_SY_PAD_SINK].flags = 689 MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_MUST_CONNECT; 690 691 ret = media_entity_pads_init(>sd.entity, 692 MIPI_DPHY_SY_PADS_NUM, priv->pads); 693 if (ret < 0) 694
drivers/media/i2c/et8ek8/et8ek8_driver.c:1456: undefined reference to `v4l2_async_register_subdev_sensor_common'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0c86a6bd85ff0629cd2c5141027fc1c8bb6cde9c commit: d8932f38c10ffb4b604c97d0765b500e8964cbd1 media: et8ek8: Add support for flash and lens devices date: 3 weeks ago config: x86_64-randconfig-s0-11240340 (attached as .config) compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 reproduce: git checkout d8932f38c10ffb4b604c97d0765b500e8964cbd1 # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/media/i2c/et8ek8/et8ek8_driver.o: In function `et8ek8_probe': >> drivers/media/i2c/et8ek8/et8ek8_driver.c:1456: undefined reference to >> `v4l2_async_register_subdev_sensor_common' vim +1456 drivers/media/i2c/et8ek8/et8ek8_driver.c 1406 1407 static int et8ek8_probe(struct i2c_client *client, 1408 const struct i2c_device_id *devid) 1409 { 1410 struct et8ek8_sensor *sensor; 1411 struct device *dev = >dev; 1412 int ret; 1413 1414 sensor = devm_kzalloc(>dev, sizeof(*sensor), GFP_KERNEL); 1415 if (!sensor) 1416 return -ENOMEM; 1417 1418 sensor->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); 1419 if (IS_ERR(sensor->reset)) { 1420 dev_dbg(>dev, "could not request reset gpio\n"); 1421 return PTR_ERR(sensor->reset); 1422 } 1423 1424 sensor->vana = devm_regulator_get(dev, "vana"); 1425 if (IS_ERR(sensor->vana)) { 1426 dev_err(>dev, "could not get regulator for vana\n"); 1427 return PTR_ERR(sensor->vana); 1428 } 1429 1430 sensor->ext_clk = devm_clk_get(dev, NULL); 1431 if (IS_ERR(sensor->ext_clk)) { 1432 dev_err(>dev, "could not get clock\n"); 1433 return PTR_ERR(sensor->ext_clk); 1434 } 1435 1436 ret = of_property_read_u32(dev->of_node, "clock-frequency", 1437 >xclk_freq); 1438 if (ret) { 1439 dev_warn(dev, "can't get clock-frequency\n"); 1440 return ret; 1441 } 1442 1443 mutex_init(>power_lock); 1444 1445 v4l2_i2c_subdev_init(>subdev, client, _ops); 1446 sensor->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; 1447 sensor->subdev.internal_ops = _internal_ops; 1448 1449 sensor->pad.flags = MEDIA_PAD_FL_SOURCE; 1450 ret = media_entity_pads_init(>subdev.entity, 1, >pad); 1451 if (ret < 0) { 1452 dev_err(>dev, "media entity init failed!\n"); 1453 goto err_mutex; 1454 } 1455 > 1456 ret = v4l2_async_register_subdev_sensor_common(>subdev); 1457 if (ret < 0) 1458 goto err_entity; 1459 1460 dev_dbg(dev, "initialized!\n"); 1461 1462 return 0; 1463 1464 err_entity: 1465 media_entity_cleanup(>subdev.entity); 1466 err_mutex: 1467 mutex_destroy(>power_lock); 1468 return ret; 1469 } 1470 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH] media: mtk-vcodec: add missing MODULE_LICENSE/DESCRIPTION
Hi Jesse, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.14 next-20171121] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jesse-Chan/media-mtk-vcodec-add-missing-MODULE_LICENSE-DESCRIPTION/20171122-124620 base: git://linuxtv.org/media_tree.git master config: xtensa-allmodconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=xtensa All errors (new ones prefixed by >>): >> drivers/media/platform/mtk-vcodec/mtk_vcodec_intr.c:55:16: error: expected >> declaration specifiers or '...' before string constant MODULE_LICENSE("GPL v2"); ^ drivers/media/platform/mtk-vcodec/mtk_vcodec_intr.c:56:20: error: expected declaration specifiers or '...' before string constant MODULE_DESCRIPTION("Mediatek video codec driver"); ^ vim +55 drivers/media/platform/mtk-vcodec/mtk_vcodec_intr.c 54 > 55 MODULE_LICENSE("GPL v2"); --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[linux-next:master 10144/11219] ov13858.c:undefined reference to `v4l2_async_register_subdev_sensor_common'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 5a3517e009e979f21977d362212b7729c5165d92 commit: 2e8a9fbb79508261703835dd4977014249c9e18f [10144/11219] media: ov13858: Add support for flash and lens devices config: x86_64-randconfig-u0-11041325 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 2e8a9fbb79508261703835dd4977014249c9e18f # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/media/i2c/ov13858.o: In function `ov13858_probe': >> ov13858.c:(.text+0xa2f): undefined reference to >> `v4l2_async_register_subdev_sensor_common' --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[ragnatech:media-tree] BUILD SUCCESS 1acce5f72cfabcafee5e101b9ac7d71ebe1c7af9
tree/branch: git://git.ragnatech.se/linux media-tree branch HEAD: 1acce5f72cfabcafee5e101b9ac7d71ebe1c7af9 media: v4l2-fwnode: use the cached value instead of getting again elapsed time: 173m configs tested: 155 The following configs have been built successfully. More configs may be tested in the coming days. shtitan_defconfig sh rsk7269_defconfig sh sh7785lcr_32bit_defconfig shallnoconfig i386 randconfig-x019-201744 i386 randconfig-x013-201744 i386 randconfig-x014-201744 i386 randconfig-x015-201744 i386 randconfig-x011-201744 i386 randconfig-x018-201744 i386 randconfig-x010-201744 i386 randconfig-x017-201744 i386 randconfig-x012-201744 i386 randconfig-x016-201744 x86_64 randconfig-x000-201744 x86_64 randconfig-x001-201744 x86_64 randconfig-x008-201744 x86_64 randconfig-x004-201744 x86_64 randconfig-x005-201744 x86_64 randconfig-x006-201744 x86_64 randconfig-x007-201744 x86_64 randconfig-x003-201744 x86_64 randconfig-x009-201744 x86_64 randconfig-x002-201744 powerpc defconfig s390default_defconfig powerpc ppc64_defconfig powerpc allnoconfig x86_64 defconfig armu300_defconfig powerpc canyonlands_defconfig alpha defconfig pariscallnoconfig parisc b180_defconfig pariscc3000_defconfig parisc defconfig x86_64 randconfig-x018-201744 x86_64 randconfig-x011-201744 x86_64 randconfig-x019-201744 x86_64 randconfig-x013-201744 x86_64 randconfig-x012-201744 x86_64 randconfig-x017-201744 x86_64 randconfig-x016-201744 x86_64 randconfig-x015-201744 x86_64 randconfig-x014-201744 x86_64 randconfig-x010-201744 arm omap2plus_defconfig armsa1100 arm allmodconfig arm samsung armmvebu_v7_defconfig arm ixp4xx_defconfig arm imx_v6_v7_defconfig arm64allmodconfig arm tegra_defconfig arm arm5 arm64alldefconfig armsh arm arm67 i386 randconfig-a0-201744 i386 randconfig-a1-201744 frv defconfig mn10300 asb2364_defconfig openriscor1ksim_defconfig tile tilegx_defconfig um i386_defconfig um x86_64_defconfig cris etrax-100lx_v2_defconfig blackfin TCM-BF537_defconfig blackfinBF561-EZKIT-SMP_defconfig blackfinBF533-EZKIT_defconfig blackfinBF526-EZBRD_defconfig arm nuc960_defconfig arm palmz72_defconfig mipsmalta_kvm_guest_defconfig powerpc sequoia_defconfig powerpc tqm8555_defconfig i386 allnoconfig i386defconfig i386 alldefconfig m68k sun3_defconfig m68k multi_defconfig m68k m5475evb_defconfig i386 randconfig-s0-201744 i386 randconfig-s1-201744 x86_64 allmodconfig i386 allmodconfig x86_64 randconfig-i0-201744 sparc defconfig sparc64 allnoconfig sparc64 defconfig i386 randconfig-i1-201744 i386 randconfig-i0-201744 m32roaks32r_defconfig mips lasat_defconfig powerpc mpc8540_ads_defconfig i386 tinyconfig mips jz4740 mips malta_kvm_defconfig mips 64r6el_defconfig mips 32r2_defconfig mips
Re: [PATCH v2 1/2] media: i2c: Add the ov7740 image sensor driver
Hi Wenyou, I love your patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.14-rc7 next-20171018] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wenyou-Yang/media-i2c-Add-the-ov7740-image-sensor-driver/20171030-140347 base: git://linuxtv.org/media_tree.git master config: sh-allmodconfig (attached as .config) compiler: sh4-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=sh All warnings (new ones prefixed by >>): >> drivers/media/i2c/ov7740.c:57:0: warning: "REG_REG15" redefined #define REG_REG15 0x15 In file included from arch/sh/include/asm/ptrace_32.h:4:0, from arch/sh/include/uapi/asm/ptrace.h:30, from arch/sh/include/asm/ptrace.h:13, from include/linux/irq.h:28, from include/linux/gpio/driver.h:6, from include/asm-generic/gpio.h:12, from arch/sh/include/asm/gpio.h:23, from include/linux/gpio.h:48, from drivers/media/i2c/ov7740.c:16: arch/sh/include/uapi/asm/ptrace_32.h:20:0: note: this is the location of the previous definition #define REG_REG15 15 In file included from drivers/media/i2c/ov7740.c:21:0: drivers/media/i2c/ov7740.c: In function 'ov7740_set_ctrl': include/linux/regmap.h:73:2: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized] regmap_update_bits_base(map, reg, mask, val, NULL, false, false) ^~~ drivers/media/i2c/ov7740.c:512:5: note: 'val' was declared here u8 val; ^~~ vim +/REG_REG15 +57 drivers/media/i2c/ov7740.c 55 56 #define REG_REG14 0x14 > 57 #define REG_REG15 0x15 58 #define REG15_GAIN_MSB 0x03 59 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH v2 1/2] media: i2c: Add the ov7740 image sensor driver
Hi Wenyou, I love your patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.14-rc7 next-20171018] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wenyou-Yang/media-i2c-Add-the-ov7740-image-sensor-driver/20171030-140347 base: git://linuxtv.org/media_tree.git master config: blackfin-allyesconfig (attached as .config) compiler: bfin-uclinux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=blackfin Note: it may well be a FALSE warning. FWIW you are at least aware of it now. http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings All warnings (new ones prefixed by >>): In file included from drivers/media//i2c/ov7740.c:21:0: drivers/media//i2c/ov7740.c: In function 'ov7740_set_ctrl': >> include/linux/regmap.h:73:2: warning: 'val' may be used uninitialized in >> this function [-Wmaybe-uninitialized] regmap_update_bits_base(map, reg, mask, val, NULL, false, false) ^~~ drivers/media//i2c/ov7740.c:512:5: note: 'val' was declared here u8 val; ^~~ -- In file included from drivers/media/i2c/ov7740.c:21:0: drivers/media/i2c/ov7740.c: In function 'ov7740_set_ctrl': >> include/linux/regmap.h:73:2: warning: 'val' may be used uninitialized in >> this function [-Wmaybe-uninitialized] regmap_update_bits_base(map, reg, mask, val, NULL, false, false) ^~~ drivers/media/i2c/ov7740.c:512:5: note: 'val' was declared here u8 val; ^~~ vim +/val +73 include/linux/regmap.h 8019ff6cf Nariman Poushin 2015-07-16 71 ca7a94464 Kuninori Morimoto 2016-02-15 72 #define regmap_update_bits(map, reg, mask, val) \ ca7a94464 Kuninori Morimoto 2016-02-15 @73 regmap_update_bits_base(map, reg, mask, val, NULL, false, false) 30ed9cb7a Kuninori Morimoto 2016-02-15 74 #define regmap_update_bits_async(map, reg, mask, val)\ 30ed9cb7a Kuninori Morimoto 2016-02-15 75 regmap_update_bits_base(map, reg, mask, val, NULL, true, false) 98c2dc486 Kuninori Morimoto 2016-02-15 76 #define regmap_update_bits_check(map, reg, mask, val, change)\ 98c2dc486 Kuninori Morimoto 2016-02-15 77 regmap_update_bits_base(map, reg, mask, val, change, false, false) 89d8d4b83 Kuninori Morimoto 2016-02-15 78 #define regmap_update_bits_check_async(map, reg, mask, val, change)\ 89d8d4b83 Kuninori Morimoto 2016-02-15 79 regmap_update_bits_base(map, reg, mask, val, change, true, false) ca7a94464 Kuninori Morimoto 2016-02-15 80 :: The code at line 73 was first introduced by commit :: ca7a94464b5457a8dc5add19f6fc3bea59d6193f regmap: merge regmap_update_bits() into macro :: TO: Kuninori Morimoto:: CC: Mark Brown --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH] media: av7110: switch to useing timer_setup()
Hi Dmitry, Thank you for the patch! Yet we hit a small issue. [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.14-rc6 next-20171018] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Dmitry-Torokhov/media-av7110-switch-to-useing-timer_setup/20171027-014646 base: git://linuxtv.org/media_tree.git master config: x86_64-randconfig-x001-201743 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All error/warnings (new ones prefixed by >>): In file included from include/linux/list.h:8:0, from include/linux/module.h:9, from drivers/media//pci/ttpci/av7110_ir.c:24: drivers/media//pci/ttpci/av7110_ir.c: In function 'av7110_emit_keyup': >> drivers/media//pci/ttpci/av7110_ir.c:89:39: error: 'keyup_timer' undeclared >> (first use in this function) struct infrared *ir = from_timer(ir, keyup_timer, t); ^ include/linux/kernel.h:927:26: note: in definition of macro 'container_of' void *__mptr = (void *)(ptr); \ ^~~ >> drivers/media//pci/ttpci/av7110_ir.c:89:24: note: in expansion of macro >> 'from_timer' struct infrared *ir = from_timer(ir, keyup_timer, t); ^~ drivers/media//pci/ttpci/av7110_ir.c:89:39: note: each undeclared identifier is reported only once for each function it appears in struct infrared *ir = from_timer(ir, keyup_timer, t); ^ include/linux/kernel.h:927:26: note: in definition of macro 'container_of' void *__mptr = (void *)(ptr); \ ^~~ >> drivers/media//pci/ttpci/av7110_ir.c:89:24: note: in expansion of macro >> 'from_timer' struct infrared *ir = from_timer(ir, keyup_timer, t); ^~ In file included from include/uapi/linux/stddef.h:1:0, 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 drivers/media//pci/ttpci/av7110_ir.c:22: >> include/linux/kernel.h:928:51: error: 'struct infrared' has no member named >> 't' BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ ^ include/linux/compiler.h:553:19: note: in definition of macro '__compiletime_assert' bool __cond = !(condition);\ ^ include/linux/compiler.h:576:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~ include/linux/build_bug.h:46:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^~ include/linux/kernel.h:928:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ ^~~~ include/linux/kernel.h:928:20: note: in expansion of macro '__same_type' BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ ^~~ include/linux/timer.h:183:2: note: in expansion of macro 'container_of' container_of(callback_timer, typeof(*var), timer_fieldname) ^~~~ >> drivers/media//pci/ttpci/av7110_ir.c:89:24: note: in expansion of macro >> 'from_timer' struct infrared *ir = from_timer(ir, keyup_timer, t); ^~ In file included from include/linux/compiler.h:58:0, 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 drivers/media//pci/ttpci/av7110_ir.c:22: >> include/linux/compiler-gcc.h:165:2: error: 'struct infrared' has no member >> named 't' __builtin_offsetof(a, b) ^ include/linux/stddef.h:16:32: note: in expansion of macro '__compiler_offsetof' #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) ^~~ include/linux/kernel.h:931:21: note: in expansion of macro 'offsetof' ((type *)(__mptr - offsetof(type, member))); }) ^~~~ include/linux/timer.h:183:2: note: in expansion of macro 'container_of' container_of(callback_timer, typeof(*var), timer_fieldname) ^~~~ >> drivers/media//pci/ttpci/av7110_ir.c:89:24: note: in expansion of
[ragnatech:media-tree 2742/2771] drivers/media//dvb-core/dvb_frontend.c:2447:1: warning: the frame size of 1048 bytes is larger than 1024 bytes
tree: git://git.ragnatech.se/linux media-tree head: 8382e556b1a2f30c4bf866f021b33577a64f9ebf commit: d73dcf0cdb95a47f7e4e991ab63dd30f6eb67b4e [2742/2771] media: dvb_frontend: cleanup ioctl handling logic config: i386-randconfig-h1-10130413 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout d73dcf0cdb95a47f7e4e991ab63dd30f6eb67b4e # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32 Cyclomatic Complexity 3 include/linux/log2.h:is_power_of_2 Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_read Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_set Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_inc Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_dec_and_test Cyclomatic Complexity 1 arch/x86/include/asm/current.h:get_current Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR Cyclomatic Complexity 1 include/linux/err.h:IS_ERR Cyclomatic Complexity 2 include/linux/thread_info.h:test_ti_thread_flag Cyclomatic Complexity 2 include/linux/thread_info.h:check_object_size Cyclomatic Complexity 2 include/linux/thread_info.h:copy_overflow Cyclomatic Complexity 4 include/linux/thread_info.h:check_copy_size Cyclomatic Complexity 70 include/linux/ktime.h:ktime_divns Cyclomatic Complexity 1 include/linux/ktime.h:ktime_to_us Cyclomatic Complexity 1 include/linux/ktime.h:ktime_us_delta Cyclomatic Complexity 1 include/linux/ktime.h:ktime_add_us Cyclomatic Complexity 1 include/linux/timekeeping.h:ktime_get_boottime Cyclomatic Complexity 1 include/linux/refcount.h:refcount_set Cyclomatic Complexity 1 include/linux/refcount.h:refcount_inc Cyclomatic Complexity 1 include/linux/refcount.h:refcount_dec_and_test Cyclomatic Complexity 1 include/linux/sched.h:task_thread_info Cyclomatic Complexity 1 include/linux/sched.h:test_tsk_thread_flag Cyclomatic Complexity 1 include/linux/sched/signal.h:signal_pending Cyclomatic Complexity 1 include/linux/kasan.h:kasan_kmalloc Cyclomatic Complexity 28 include/linux/slab.h:kmalloc_index Cyclomatic Complexity 1 include/linux/slab.h:kmem_cache_alloc_trace Cyclomatic Complexity 1 include/linux/slab.h:kmalloc_order_trace Cyclomatic Complexity 67 include/linux/slab.h:kmalloc_large Cyclomatic Complexity 5 include/linux/slab.h:kmalloc Cyclomatic Complexity 1 include/linux/slab.h:kzalloc Cyclomatic Complexity 1 include/linux/semaphore.h:sema_init Cyclomatic Complexity 2 include/linux/uaccess.h:copy_to_user Cyclomatic Complexity 4 include/linux/poll.h:poll_wait Cyclomatic Complexity 1 include/linux/kref.h:kref_init Cyclomatic Complexity 1 include/linux/kref.h:kref_get Cyclomatic Complexity 2 include/linux/kref.h:kref_put Cyclomatic Complexity 2 include/linux/freezer.h:freezing Cyclomatic Complexity 2 include/linux/freezer.h:try_to_freeze_unsafe Cyclomatic Complexity 2 include/linux/freezer.h:try_to_freeze Cyclomatic Complexity 1 drivers/media//dvb-core/dvb_frontend.c:dvb_frontend_put Cyclomatic Complexity 1 drivers/media//dvb-core/dvb_frontend.c:dvb_frontend_get Cyclomatic Complexity 1 drivers/media//dvb-core/dvb_frontend.c:has_get_frontend Cyclomatic Complexity 5 drivers/media//dvb-core/dvb_frontend.c:dvbv3_type Cyclomatic Complexity 5 drivers/media//dvb-core/dvb_frontend.c:dvb_frontend_init Cyclomatic Complexity 2 drivers/media//dvb-core/dvb_frontend.c:dvb_frontend_swzigzag_update_delay Cyclomatic Complexity 20 drivers/media//dvb-core/dvb_frontend.c:dvb_frontend_swzigzag_autotune Cyclomatic Complexity 6 drivers/media//dvb-core/dvb_frontend.c:dvb_frontend_is_exiting Cyclomatic Complexity 2 drivers/media//dvb-core/dvb_frontend.c:dvb_frontend_should_wakeup Cyclomatic Complexity 3 drivers/media//dvb-core/dvb_frontend.c:is_dvbv3_delsys Cyclomatic Complexity 4 drivers/media//dvb-core/dvb_frontend.c:emulate_delivery_system Cyclomatic Complexity 10 drivers/media//dvb-core/dvb_frontend.c:dvbv5_set_delivery_system Cyclomatic Complexity 7 drivers/media//dvb-core/dvb_frontend.c:dvbv3_set_delivery_system Cyclomatic Complexity 2 drivers/media//dvb-core/dvb_frontend.c:dvb_frontend_poll Cyclomatic Complexity 4 drivers/media//dvb-core/dvb_frontend.c:dvb_frontend_suspend Cyclomatic Complexity 2 drivers/media//dvb-core/dvb_frontend.c:dvb_frontend_invoke_release Cyclomatic Complexity 1
[linuxtv-media:master 2747/2770] drivers/media/dvb-core/dvbdev.c:86:1: warning: control reaches end of non-void function
tree: git://linuxtv.org/media_tree.git master head: 01153bf04db18d5fcd30df64ffe428db7ff7bada commit: 6bbf7a855d200ddd83494a9ceb95f9465f953f59 [2747/2770] media: dvbdev: convert DVB device types into an enum config: x86_64-acpi-redef (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 6bbf7a855d200ddd83494a9ceb95f9465f953f59 # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): drivers/media/dvb-core/dvbdev.c: In function 'nums2minor': >> drivers/media/dvb-core/dvbdev.c:86:1: warning: control reaches end of >> non-void function [-Wreturn-type] } ^ vim +86 drivers/media/dvb-core/dvbdev.c 70 71 static int nums2minor(int num, enum dvb_device_type type, int id) 72 { 73 int n = (num << 6) | (id << 4); 74 75 switch (type) { 76 case DVB_DEVICE_VIDEO: return n; 77 case DVB_DEVICE_AUDIO: return n | 1; 78 case DVB_DEVICE_SEC:return n | 2; 79 case DVB_DEVICE_FRONTEND: return n | 3; 80 case DVB_DEVICE_DEMUX: return n | 4; 81 case DVB_DEVICE_DVR:return n | 5; 82 case DVB_DEVICE_CA: return n | 6; 83 case DVB_DEVICE_NET:return n | 7; 84 case DVB_DEVICE_OSD:return n | 8; 85 } > 86 } 87 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH v2 1/2] staging: Introduce NVIDIA Tegra20 video decoder driver
Hi Dmitry, [auto build test WARNING on staging/staging-testing] [also build test WARNING on v4.14-rc3 next-20170929] [cannot apply to tegra/for-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Dmitry-Osipenko/staging-Introduce-NVIDIA-Tegra20-video-decoder-driver/20171006-101015 config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=ia64 All warnings (new ones prefixed by >>): In file included from include/linux/kernel.h:13:0, from include/linux/clk.h:16, from drivers/staging/tegra-vde/vde.c:11: drivers/staging/tegra-vde/vde.c: In function 'tegra_vde_setup_hw_context': >> drivers/staging/tegra-vde/vde.c:51:11: warning: format '%X' expects argument >> of type 'unsigned int', but argument 5 has type 'long long unsigned int' >> [-Wformat=] pr_debug("%s: %d: 0x%08X => " #__addr ")\n", \ ^ include/linux/printk.h:285:21: note: in definition of macro 'pr_fmt' #define pr_fmt(fmt) fmt ^~~ include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^~~~ drivers/staging/tegra-vde/vde.c:51:2: note: in expansion of macro 'pr_debug' pr_debug("%s: %d: 0x%08X => " #__addr ")\n", \ ^~~~ drivers/staging/tegra-vde/vde.c:362:2: note: in expansion of macro 'VDE_WR' VDE_WR(bitstream_data_paddr + bitstream_data_size, ^~ >> drivers/staging/tegra-vde/vde.c:51:11: warning: format '%X' expects argument >> of type 'unsigned int', but argument 5 has type 'phys_addr_t {aka long long >> unsigned int}' [-Wformat=] pr_debug("%s: %d: 0x%08X => " #__addr ")\n", \ ^ include/linux/printk.h:285:21: note: in definition of macro 'pr_fmt' #define pr_fmt(fmt) fmt ^~~ include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^~~~ drivers/staging/tegra-vde/vde.c:51:2: note: in expansion of macro 'pr_debug' pr_debug("%s: %d: 0x%08X => " #__addr ")\n", \ ^~~~ drivers/staging/tegra-vde/vde.c:435:2: note: in expansion of macro 'VDE_WR' VDE_WR(bitstream_data_paddr, vde->regs + SXE(0x6C)); ^~ drivers/staging/tegra-vde/vde.c: In function 'tegra_vde_attach_dmabuf': drivers/staging/tegra-vde/vde.c:531:40: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=] dev_err(dev, "Too small dmabuf size %d @0x%lX, " ^ drivers/staging/tegra-vde/vde.c: In function 'tegra_vde_ioctl_decode_h264': drivers/staging/tegra-vde/vde.c:855:16: warning: format '%X' expects argument of type 'unsigned int', but argument 3 has type 'phys_addr_t {aka long long unsigned int}' [-Wformat=] dev_err(dev, "Decoding failed, " ^~~ vim +51 drivers/staging/tegra-vde/vde.c > 11 #include 12 #include 13 #include 14 #include 15 #include 16 #include 17 #include 18 #include 19 #include 20 #include 21 #include 22 #include 23 #include 24 25 #include 26 27 #include "uapi.h" 28 29 #define SXE(offt) (0x + (offt)) /* Syntax Engine */ 30 #define BSEV(offt) (0x1000 + (offt)) /* Video Bitstream Engine */ 31 #define MBE(offt) (0x2000 + (offt)) /* Macroblock Engine */ 32 #define PPE(offt) (0x2200 + (offt)) /* Post-processing Engine */ 33 #define MCE(offt) (0x2400 + (offt)) /* Motion Compensation Eng. */ 34 #define TFE(offt) (0x2600 + (offt)) /* Transform Engine */ 35 #define VDMA(offt) (0x2A00 + (offt)) /* Video DMA */ 36 #define FRAMEID(offt) (0x3800 + (offt)) 37 38 #define ICMDQUE_WR 0x00 39 #define CMDQUE_CONTROL 0x08 40 #define INTR_STATUS 0x18 41 #define BSE_INT_ENB 0x40 42 #define BSE_CONFIG 0x44 43 44 #define BSE_ICMDQUE_EMPTY BIT(3) 45 #define BSE_DMA_BUSYBIT(23) 46 47 #define TEGRA_VDE_TIMEOUT msecs_to_jiffies(1000) 48 49 #define VDE_WR(__data, __addr) \ 50 do {\ > 51 pr_debug("%s: %d: 0x%08X => " #__addr ")\n",\ 52__func__, __LINE__, (__data));\ 53
Re: [PATCH v2 1/2] staging: Introduce NVIDIA Tegra20 video decoder driver
Hi Dmitry, [auto build test WARNING on staging/staging-testing] [also build test WARNING on v4.14-rc3 next-20170929] [cannot apply to tegra/for-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Dmitry-Osipenko/staging-Introduce-NVIDIA-Tegra20-video-decoder-driver/20171006-101015 config: blackfin-allyesconfig (attached as .config) compiler: bfin-uclinux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=blackfin All warnings (new ones prefixed by >>): In file included from include/linux/kernel.h:13:0, from include/linux/clk.h:16, from drivers/staging/tegra-vde/vde.c:11: drivers/staging/tegra-vde/vde.c: In function 'tegra_vde_setup_hw_context': >> drivers/staging/tegra-vde/vde.c:51:11: warning: format '%X' expects argument >> of type 'unsigned int', but argument 5 has type 'long unsigned int' >> [-Wformat=] pr_debug("%s: %d: 0x%08X => " #__addr ")\n", \ ^ include/linux/printk.h:285:21: note: in definition of macro 'pr_fmt' #define pr_fmt(fmt) fmt ^~~ include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^~~~ >> drivers/staging/tegra-vde/vde.c:51:2: note: in expansion of macro 'pr_debug' pr_debug("%s: %d: 0x%08X => " #__addr ")\n", \ ^~~~ >> drivers/staging/tegra-vde/vde.c:362:2: note: in expansion of macro 'VDE_WR' VDE_WR(bitstream_data_paddr + bitstream_data_size, ^~ drivers/staging/tegra-vde/vde.c: In function 'tegra_vde_attach_dmabuf': >> drivers/staging/tegra-vde/vde.c:531:40: warning: format '%d' expects >> argument of type 'int', but argument 3 has type 'size_t {aka long unsigned >> int}' [-Wformat=] dev_err(dev, "Too small dmabuf size %d @0x%lX, " ^ vim +51 drivers/staging/tegra-vde/vde.c > 11 #include 12 #include 13 #include 14 #include 15 #include 16 #include 17 #include 18 #include 19 #include 20 #include 21 #include 22 #include 23 #include 24 25 #include 26 27 #include "uapi.h" 28 29 #define SXE(offt) (0x + (offt)) /* Syntax Engine */ 30 #define BSEV(offt) (0x1000 + (offt)) /* Video Bitstream Engine */ 31 #define MBE(offt) (0x2000 + (offt)) /* Macroblock Engine */ 32 #define PPE(offt) (0x2200 + (offt)) /* Post-processing Engine */ 33 #define MCE(offt) (0x2400 + (offt)) /* Motion Compensation Eng. */ 34 #define TFE(offt) (0x2600 + (offt)) /* Transform Engine */ 35 #define VDMA(offt) (0x2A00 + (offt)) /* Video DMA */ 36 #define FRAMEID(offt) (0x3800 + (offt)) 37 38 #define ICMDQUE_WR 0x00 39 #define CMDQUE_CONTROL 0x08 40 #define INTR_STATUS 0x18 41 #define BSE_INT_ENB 0x40 42 #define BSE_CONFIG 0x44 43 44 #define BSE_ICMDQUE_EMPTY BIT(3) 45 #define BSE_DMA_BUSYBIT(23) 46 47 #define TEGRA_VDE_TIMEOUT msecs_to_jiffies(1000) 48 49 #define VDE_WR(__data, __addr) \ 50 do {\ > 51 pr_debug("%s: %d: 0x%08X => " #__addr ")\n",\ 52__func__, __LINE__, (__data));\ 53 writel_relaxed(__data, __addr); \ 54 } while (0) 55 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[ragnatech:media-tree 2692/2696] drivers/media/rc/gpio-ir-recv.c:38:8: error: implicit declaration of function 'gpiod_get_value'
tree: git://git.ragnatech.se/linux media-tree head: a8c779eb056e9874c6278151ade857c3ac227db9 commit: eed008e605d13ee4fb64668350be58999e85aac7 [2692/2696] [media] media: rc: gpio-ir-recv: use gpiolib API config: x86_64-randconfig-s4-10051614 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout eed008e605d13ee4fb64668350be58999e85aac7 # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/media/rc/gpio-ir-recv.c: In function 'gpio_ir_recv_irq': >> drivers/media/rc/gpio-ir-recv.c:38:8: error: implicit declaration of >> function 'gpiod_get_value' [-Werror=implicit-function-declaration] val = gpiod_get_value(gpio_dev->gpiod); ^~~ drivers/media/rc/gpio-ir-recv.c: In function 'gpio_ir_recv_probe': >> drivers/media/rc/gpio-ir-recv.c:60:20: error: implicit declaration of >> function 'devm_gpiod_get' [-Werror=implicit-function-declaration] gpio_dev->gpiod = devm_gpiod_get(dev, NULL, GPIOD_IN); ^~ >> drivers/media/rc/gpio-ir-recv.c:60:46: error: 'GPIOD_IN' undeclared (first >> use in this function) gpio_dev->gpiod = devm_gpiod_get(dev, NULL, GPIOD_IN); ^~~~ drivers/media/rc/gpio-ir-recv.c:60:46: note: each undeclared identifier is reported only once for each function it appears in >> drivers/media/rc/gpio-ir-recv.c:68:18: error: implicit declaration of >> function 'gpiod_to_irq' [-Werror=implicit-function-declaration] gpio_dev->irq = gpiod_to_irq(gpio_dev->gpiod); ^~~~ cc1: some warnings being treated as errors vim +/gpiod_get_value +38 drivers/media/rc/gpio-ir-recv.c 32 33 static irqreturn_t gpio_ir_recv_irq(int irq, void *dev_id) 34 { 35 int val; 36 struct gpio_rc_dev *gpio_dev = dev_id; 37 > 38 val = gpiod_get_value(gpio_dev->gpiod); 39 if (val >= 0) 40 ir_raw_event_store_edge(gpio_dev->rcdev, val == 1); 41 42 return IRQ_HANDLED; 43 } 44 45 static int gpio_ir_recv_probe(struct platform_device *pdev) 46 { 47 struct device *dev = >dev; 48 struct device_node *np = dev->of_node; 49 struct gpio_rc_dev *gpio_dev; 50 struct rc_dev *rcdev; 51 int rc; 52 53 if (!np) 54 return -ENODEV; 55 56 gpio_dev = devm_kzalloc(dev, sizeof(*gpio_dev), GFP_KERNEL); 57 if (!gpio_dev) 58 return -ENOMEM; 59 > 60 gpio_dev->gpiod = devm_gpiod_get(dev, NULL, GPIOD_IN); 61 if (IS_ERR(gpio_dev->gpiod)) { 62 rc = PTR_ERR(gpio_dev->gpiod); 63 /* Just try again if this happens */ 64 if (rc != -EPROBE_DEFER) 65 dev_err(dev, "error getting gpio (%d)\n", rc); 66 return rc; 67 } > 68 gpio_dev->irq = gpiod_to_irq(gpio_dev->gpiod); 69 if (gpio_dev->irq < 0) 70 return gpio_dev->irq; 71 72 rcdev = devm_rc_allocate_device(dev, RC_DRIVER_IR_RAW); 73 if (!rcdev) 74 return -ENOMEM; 75 76 rcdev->priv = gpio_dev; 77 rcdev->device_name = GPIO_IR_DEVICE_NAME; 78 rcdev->input_phys = GPIO_IR_DEVICE_NAME "/input0"; 79 rcdev->input_id.bustype = BUS_HOST; 80 rcdev->input_id.vendor = 0x0001; 81 rcdev->input_id.product = 0x0001; 82 rcdev->input_id.version = 0x0100; 83 rcdev->dev.parent = dev; 84 rcdev->driver_name = KBUILD_MODNAME; 85 rcdev->min_timeout = 1; 86 rcdev->timeout = IR_DEFAULT_TIMEOUT; 87 rcdev->max_timeout = 10 * IR_DEFAULT_TIMEOUT; 88 rcdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER; 89 rcdev->map_name = of_get_property(np, "linux,rc-map-name", NULL); 90 if (!rcdev->map_name) 91 rcdev->map_name = RC_MAP_EMPTY; 92 93 gpio_dev->rcdev = rcdev; 94 95 rc = devm_rc_register_device(dev, rcdev); 96 if (rc < 0) { 97 dev_err(dev, "failed to register rc device (%d)\n", rc); 98 return rc; 99 } 100 101 platform_set_drvdata(pdev, gpio_dev); 102 103 return devm_request_irq(dev, gpio_dev->irq, gpio_ir_recv_irq, 104 IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING, 105 "gpio-ir-recv-irq", gpio_dev); 106 } 107 --- 0-DAY kernel test infrastructureOpen Source Technology Center
Re: [PATCH] string.h: work around for increased stack usage
Hi Arnd, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc3 next-20170929] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arnd-Bergmann/string-h-work-around-for-increased-stack-usage/20171003-210611 config: x86_64-randconfig-ws0-10040032 (attached as .config) compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All error/warnings (new ones prefixed by >>): In file included from lib/string.c:23:0: >> include/linux/string.h:235:2: error: expected identifier or '(' before 'do' do { \ ^ >> lib/string.c:1048:6: note: in expansion of macro 'fortify_panic' void fortify_panic(const char *name) ^ >> include/linux/string.h:238:4: error: expected identifier or '(' before >> 'while' } while (0) ^ >> lib/string.c:1048:6: note: in expansion of macro 'fortify_panic' void fortify_panic(const char *name) ^ vim +235 include/linux/string.h 231 232 /* work around GCC PR82365 */ 233 #if defined(CONFIG_KASAN) && !defined(__clang__) && GCC_VERSION <= 8 234 #define fortify_panic(x) \ > 235 do { \ 236 asm volatile(""); \ 237 fortify_panic(x); \ > 238 } while (0) 239 #endif 240 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH v2] scripts: kernel-doc: fix nexted handling
Hi Mauro, [auto build test WARNING on linus/master] [also build test WARNING on v4.14-rc2 next-20170926] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Mauro-Carvalho-Chehab/scripts-kernel-doc-fix-nexted-handling/20170927-091127 reproduce: make htmldocs All warnings (new ones prefixed by >>): WARNING: convert(1) not found, for SVG to PDF conversion install ImageMagick (https://www.imagemagick.org) kernel/trace/blktrace.c:824: warning: No description found for parameter 'cgid' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'band_pref' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'adjust' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:4115: warning: Excess struct/union/enum/typedef >> member 'bssid' description in 'wireless_dev' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'band_pref' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'adjust' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:4115: warning: Excess struct/union/enum/typedef >> member 'bssid' description in 'wireless_dev' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'band_pref' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'adjust' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:4115: warning: Excess struct/union/enum/typedef >> member 'bssid' description in 'wireless_dev' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'band_pref' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'adjust' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:4115: warning: Excess struct/union/enum/typedef >> member 'bssid' description in 'wireless_dev' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'band_pref' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'adjust' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:4115: warning: Excess struct/union/enum/typedef >> member 'bssid' description in 'wireless_dev' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'band_pref' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'adjust' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:4115: warning: Excess struct/union/enum/typedef >> member 'bssid' description in 'wireless_dev' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'band_pref' description in 'cfg80211_bss_selection' >> include/net/cfg80211.h:2056: warning: Excess struct/union/enum/typedef >> member 'adjust' description in 'cfg80211_bss_selection' vim +2056 include/net/cfg80211.h 04a773ad Johannes Berg2009-04-19 2041 04a773ad Johannes Berg2009-04-19 2042 /** 38de03d2 Arend van Spriel 2016-03-02 2043 * struct cfg80211_bss_selection - connection parameters for BSS selection. 38de03d2 Arend van Spriel 2016-03-02 2044 * 38de03d2 Arend van Spriel 2016-03-02 2045 * @behaviour: requested BSS selection behaviour. 38de03d2 Arend van Spriel 2016-03-02 2046 * @param: parameters for requestion behaviour. 38de03d2 Arend van Spriel 2016-03-02 2047 * @band_pref: preferred band for %NL80211_BSS_SELECT_ATTR_BAND_PREF. 38de03d2 Arend van Spriel 2016-03-02 2048 * @adjust: parameters for %NL80211_BSS_SELECT_ATTR_RSSI_ADJUST. 38de03d2 Arend van Spriel 2016-03-02 2049 */ 38de03d2 Arend van Spriel 2016-03-02 2050 struct cfg80211_bss_selection { 38de03d2 Arend van Spriel 2016-03-02 2051 enum nl80211_bss_select_attr behaviour; 38de03d2 Arend van Spriel 2016-03-02 2052 union { 57fbcce3 Johannes Berg2016-04-12 2053 enum nl80211_band band_pref; 38de03d2 Arend van Spriel 2016-03-02 2054 struct cfg80211_bss_select_adjust adjust; 38de03d2 Arend van Spriel 2016-03-02 2055 } param; 38de03d2 Arend van Spriel 2016-03-02 @2056 }; 38de03d2 Arend van Spriel 2016-03-02 2057 :: The code at line 2056 was first introduced by commit :: 38de03d2a28925b489c11546804e2f5418cc17a4 nl80211: add feature for BSS selection support :: TO: Arend van Spriel:: CC: Johannes Berg --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description:
drivers/media/pci/solo6x10/solo6x10-gpio.c:165: warning: unused variable 'ret'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: cd4175b11685b11c40e31a03e05084cc212b0649 commit: d3202d1981dc5a5f03f9afc96480619b48b60124 media: solo6x10: export hardware GPIO pins 8:31 to gpiolib interface date: 7 weeks ago config: x86_64-randconfig-a0-09241049 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: git checkout d3202d1981dc5a5f03f9afc96480619b48b60124 # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): drivers/media/pci/solo6x10/solo6x10-gpio.c: In function 'solo_gpio_init': >> drivers/media/pci/solo6x10/solo6x10-gpio.c:165: warning: unused variable >> 'ret' vim +/ret +165 drivers/media/pci/solo6x10/solo6x10-gpio.c 162 163 int solo_gpio_init(struct solo_dev *solo_dev) 164 { > 165 int ret; 166 167 solo_gpio_config(solo_dev); 168 #ifdef CONFIG_GPIOLIB 169 solo_dev->gpio_dev.label = SOLO6X10_NAME"_gpio"; 170 solo_dev->gpio_dev.parent = _dev->pdev->dev; 171 solo_dev->gpio_dev.owner = THIS_MODULE; 172 solo_dev->gpio_dev.base = -1; 173 solo_dev->gpio_dev.ngpio = 24; 174 solo_dev->gpio_dev.can_sleep = 0; 175 176 solo_dev->gpio_dev.get_direction = solo_gpiochip_get_direction; 177 solo_dev->gpio_dev.direction_input = solo_gpiochip_direction_input; 178 solo_dev->gpio_dev.direction_output = solo_gpiochip_direction_output; 179 solo_dev->gpio_dev.get = solo_gpiochip_get; 180 solo_dev->gpio_dev.set = solo_gpiochip_set; 181 182 ret = gpiochip_add_data(_dev->gpio_dev, solo_dev); 183 184 if (ret) { 185 solo_dev->gpio_dev.label = NULL; 186 return -1; 187 } 188 #endif 189 return 0; 190 } 191 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH] ov9655: fix potential integer overflow
Hi Gustavo, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.14-rc1 next-20170921] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Gustavo-A-R-Silva/ov9655-fix-potential-integer-overflow/20170921-174735 base: git://linuxtv.org/media_tree.git master config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): >> ERROR: "__aeabi_uldivmod" [drivers/media/i2c/ov9650.ko] undefined! --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH] ov9655: fix potential integer overflow
Hi Gustavo, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.14-rc1 next-20170921] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Gustavo-A-R-Silva/ov9655-fix-potential-integer-overflow/20170921-174735 base: git://linuxtv.org/media_tree.git master config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): >> ERROR: "__udivdi3" [drivers/media/i2c/ov9650.ko] undefined! --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH v4 2/3] media: ov7670: Add the get_fmt callback
Hi Wenyou, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.14-rc1 next-20170918] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wenyou-Yang/media-ov7670-Add-entity-init-and-power-operation/20170918-145527 base: git://linuxtv.org/media_tree.git master config: x86_64-randconfig-x003-201738 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): drivers/media/i2c/ov7670.c: In function 'ov7670_set_fmt': >> drivers/media/i2c/ov7670.c:1006:3: warning: ISO C90 forbids mixed >> declarations and code [-Wdeclaration-after-statement] struct v4l2_mbus_framefmt *mbus_fmt; ^~ vim +1006 drivers/media/i2c/ov7670.c 984 985 /* 986 * Set a format. 987 */ 988 static int ov7670_set_fmt(struct v4l2_subdev *sd, 989 struct v4l2_subdev_pad_config *cfg, 990 struct v4l2_subdev_format *format) 991 { 992 struct ov7670_format_struct *ovfmt; 993 struct ov7670_win_size *wsize; 994 struct ov7670_info *info = to_state(sd); 995 unsigned char com7; 996 int ret; 997 998 if (format->pad) 999 return -EINVAL; 1000 1001 if (format->which == V4L2_SUBDEV_FORMAT_TRY) { 1002 ret = ov7670_try_fmt_internal(sd, >format, NULL, NULL); 1003 if (ret) 1004 return ret; 1005 #ifdef CONFIG_VIDEO_V4L2_SUBDEV_API > 1006 struct v4l2_mbus_framefmt *mbus_fmt; 1007 1008 mbus_fmt = v4l2_subdev_get_try_format(sd, cfg, format->pad); 1009 *mbus_fmt = format->format; 1010 return 0; 1011 #else 1012 return -ENOTTY; 1013 #endif 1014 } 1015 1016 ret = ov7670_try_fmt_internal(sd, >format, , ); 1017 1018 if (ret) 1019 return ret; 1020 /* 1021 * COM7 is a pain in the ass, it doesn't like to be read then 1022 * quickly written afterward. But we have everything we need 1023 * to set it absolutely here, as long as the format-specific 1024 * register sets list it first. 1025 */ 1026 com7 = ovfmt->regs[0].value; 1027 com7 |= wsize->com7_bit; 1028 ov7670_write(sd, REG_COM7, com7); 1029 /* 1030 * Now write the rest of the array. Also store start/stops 1031 */ 1032 ov7670_write_array(sd, ovfmt->regs + 1); 1033 ov7670_set_hw(sd, wsize->hstart, wsize->hstop, wsize->vstart, 1034 wsize->vstop); 1035 ret = 0; 1036 if (wsize->regs) 1037 ret = ov7670_write_array(sd, wsize->regs); 1038 info->fmt = ovfmt; 1039 1040 /* 1041 * If we're running RGB565, we must rewrite clkrc after setting 1042 * the other parameters or the image looks poor. If we're *not* 1043 * doing RGB565, we must not rewrite clkrc or the image looks 1044 * *really* poor. 1045 * 1046 * (Update) Now that we retain clkrc state, we should be able 1047 * to write it unconditionally, and that will make the frame 1048 * rate persistent too. 1049 */ 1050 if (ret == 0) 1051 ret = ov7670_write(sd, REG_CLKRC, info->clkrc); 1052 return 0; 1053 } 1054 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH v3 2/3] media: ov7670: Add the get_fmt callback
Hi Wenyou, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.14-rc1 next-20170915] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wenyou-Yang/media-ov7670-Add-entity-init-and-power-operation/20170918-093913 base: git://linuxtv.org/media_tree.git master config: i386-randconfig-x009-09180108 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All error/warnings (new ones prefixed by >>): drivers/media//i2c/ov7670.c: In function 'ov7670_set_fmt': >> drivers/media//i2c/ov7670.c:1004:14: error: implicit declaration of function >> 'v4l2_subdev_get_try_format' [-Werror=implicit-function-declaration] mbus_fmt = v4l2_subdev_get_try_format(sd, cfg, format->pad); ^~ >> drivers/media//i2c/ov7670.c:1004:12: warning: assignment makes pointer from >> integer without a cast [-Wint-conversion] mbus_fmt = v4l2_subdev_get_try_format(sd, cfg, format->pad); ^ drivers/media//i2c/ov7670.c: In function 'ov7670_get_fmt': drivers/media//i2c/ov7670.c:1056:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion] mbus_fmt = v4l2_subdev_get_try_format(sd, cfg, 0); ^ drivers/media//i2c/ov7670.c: In function 'ov7670_open': >> drivers/media//i2c/ov7670.c:1547:38: error: 'struct v4l2_subdev_fh' has no >> member named 'pad' v4l2_subdev_get_try_format(sd, fh->pad, 0); ^~ drivers/media//i2c/ov7670.c: In function 'ov7670_probe': drivers/media//i2c/ov7670.c:1750:10: error: 'struct v4l2_subdev' has no member named 'entity' info->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; ^ drivers/media//i2c/ov7670.c:1751:40: error: 'struct v4l2_subdev' has no member named 'entity' ret = media_entity_pads_init(>sd.entity, 1, >pad); ^ drivers/media//i2c/ov7670.c:1764:32: error: 'struct v4l2_subdev' has no member named 'entity' media_entity_cleanup(>sd.entity); ^ drivers/media//i2c/ov7670.c: In function 'ov7670_remove': drivers/media//i2c/ov7670.c:1781:32: error: 'struct v4l2_subdev' has no member named 'entity' media_entity_cleanup(>sd.entity); ^ cc1: some warnings being treated as errors vim +/v4l2_subdev_get_try_format +1004 drivers/media//i2c/ov7670.c 982 983 /* 984 * Set a format. 985 */ 986 static int ov7670_set_fmt(struct v4l2_subdev *sd, 987 struct v4l2_subdev_pad_config *cfg, 988 struct v4l2_subdev_format *format) 989 { 990 struct ov7670_format_struct *ovfmt; 991 struct ov7670_win_size *wsize; 992 struct ov7670_info *info = to_state(sd); 993 struct v4l2_mbus_framefmt *mbus_fmt; 994 unsigned char com7; 995 int ret; 996 997 if (format->pad) 998 return -EINVAL; 999 1000 if (format->which == V4L2_SUBDEV_FORMAT_TRY) { 1001 ret = ov7670_try_fmt_internal(sd, >format, NULL, NULL); 1002 if (ret) 1003 return ret; > 1004 mbus_fmt = v4l2_subdev_get_try_format(sd, cfg, > format->pad); 1005 *mbus_fmt = format->format; 1006 return 0; 1007 } 1008 1009 ret = ov7670_try_fmt_internal(sd, >format, , ); 1010 1011 if (ret) 1012 return ret; 1013 /* 1014 * COM7 is a pain in the ass, it doesn't like to be read then 1015 * quickly written afterward. But we have everything we need 1016 * to set it absolutely here, as long as the format-specific 1017 * register sets list it first. 1018 */ 1019 com7 = ovfmt->regs[0].value; 1020 com7 |= wsize->com7_bit; 1021 ov7670_write(sd, REG_COM7, com7); 1022 /* 1023 * Now write the rest of the array. Also store start/stops 1024 */ 1025 ov7670_write_array(sd, ovfmt->regs + 1); 1026 ov7670_set_hw(sd, wsize->hstart, wsize->hstop, wsize->vstart, 1027 wsize->vstop); 1028 ret = 0; 1029 if (wsize->regs) 1030 ret = ov7670_write_array(sd, wsize->regs); 1031 info->fmt = ovfmt; 1032 1033 /* 1034 * If we're running RGB565, we must rewrite clkrc after setting 1035 * the other parameters or the image looks poor. If we're *not* 1036 * doing RGB565, we must not rewrite clkrc or the image looks 1037 *
Re: [PATCH v3 1/3] media: ov7670: Add entity pads initialization
Hi Wenyou, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.14-rc1 next-20170915] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wenyou-Yang/media-ov7670-Add-entity-init-and-power-operation/20170918-093913 base: git://linuxtv.org/media_tree.git master config: i386-randconfig-x009-09180108 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): drivers/media/i2c/ov7670.c: In function 'ov7670_probe': >> drivers/media/i2c/ov7670.c:1694:10: error: 'struct v4l2_subdev' has no >> member named 'entity' info->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; ^ drivers/media/i2c/ov7670.c:1695:40: error: 'struct v4l2_subdev' has no member named 'entity' ret = media_entity_pads_init(>sd.entity, 1, >pad); ^ drivers/media/i2c/ov7670.c:1708:32: error: 'struct v4l2_subdev' has no member named 'entity' media_entity_cleanup(>sd.entity); ^ drivers/media/i2c/ov7670.c: In function 'ov7670_remove': drivers/media/i2c/ov7670.c:1725:32: error: 'struct v4l2_subdev' has no member named 'entity' media_entity_cleanup(>sd.entity); ^ vim +1694 drivers/media/i2c/ov7670.c 1575 1576 static int ov7670_probe(struct i2c_client *client, 1577 const struct i2c_device_id *id) 1578 { 1579 struct v4l2_fract tpf; 1580 struct v4l2_subdev *sd; 1581 struct ov7670_info *info; 1582 int ret; 1583 1584 info = devm_kzalloc(>dev, sizeof(*info), GFP_KERNEL); 1585 if (info == NULL) 1586 return -ENOMEM; 1587 sd = >sd; 1588 v4l2_i2c_subdev_init(sd, client, _ops); 1589 1590 info->clock_speed = 30; /* default: a guess */ 1591 if (client->dev.platform_data) { 1592 struct ov7670_config *config = client->dev.platform_data; 1593 1594 /* 1595 * Must apply configuration before initializing device, because it 1596 * selects I/O method. 1597 */ 1598 info->min_width = config->min_width; 1599 info->min_height = config->min_height; 1600 info->use_smbus = config->use_smbus; 1601 1602 if (config->clock_speed) 1603 info->clock_speed = config->clock_speed; 1604 1605 /* 1606 * It should be allowed for ov7670 too when it is migrated to 1607 * the new frame rate formula. 1608 */ 1609 if (config->pll_bypass && id->driver_data != MODEL_OV7670) 1610 info->pll_bypass = true; 1611 1612 if (config->pclk_hb_disable) 1613 info->pclk_hb_disable = true; 1614 } 1615 1616 info->clk = devm_clk_get(>dev, "xclk"); 1617 if (IS_ERR(info->clk)) 1618 return PTR_ERR(info->clk); 1619 ret = clk_prepare_enable(info->clk); 1620 if (ret) 1621 return ret; 1622 1623 ret = ov7670_init_gpio(client, info); 1624 if (ret) 1625 goto clk_disable; 1626 1627 info->clock_speed = clk_get_rate(info->clk) / 100; 1628 if (info->clock_speed < 10 || info->clock_speed > 48) { 1629 ret = -EINVAL; 1630 goto clk_disable; 1631 } 1632 1633 /* Make sure it's an ov7670 */ 1634 ret = ov7670_detect(sd); 1635 if (ret) { 1636 v4l_dbg(1, debug, client, 1637 "chip found @ 0x%x (%s) is not an ov7670 chip.\n", 1638 client->addr << 1, client->adapter->name); 1639 goto clk_disable; 1640 } 1641 v4l_info(client, "chip found @ 0x%02x (%s)\n", 1642 client->addr << 1, client->adapter->name); 1643 1644 info->devtype = _devdata[id->driver_data]; 1645 info->fmt = _formats[0]; 1646 info->clkrc = 0; 1647 1648 /* Set default frame rate to 30 fps */ 1649 tpf.numerator = 1; 1650 tpf.denominator = 30; 1651 info->devtype->set_framerate(sd, ); 1652 1653 if (info->pclk_hb_disable) 1654 ov7670_write(sd, REG_COM10, COM10_PCLK_HB); 1655 1656 v4l2_ctrl_handler_init(>hdl, 10); 1657 v4l2_ctrl_new_std(>hdl, _ctrl_ops, 1658
Re: [PATCH v8 1/4] rockchip/rga: v4l2 m2m support
Hi Jacob, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.13 next-20170913] [cannot apply to rockchip/for-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jacob-Chen/Add-Rockchip-RGA-V4l2-support/20170913-171106 base: git://linuxtv.org/media_tree.git master config: ia64-allyesconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=ia64 All errors (new ones prefixed by >>): drivers/media/platform/rockchip-rga/rga.c: In function 'rga_setup_ctrls': >> drivers/media/platform/rockchip-rga/rga.c:190:11: error: >> 'V4L2_CID_PORTER_DUFF_MODE' undeclared (first use in this function) V4L2_CID_PORTER_DUFF_MODE, ^ drivers/media/platform/rockchip-rga/rga.c:190:11: note: each undeclared identifier is reported only once for each function it appears in >> drivers/media/platform/rockchip-rga/rga.c:191:11: error: >> 'V4L2_PORTER_DUFF_CLEAR' undeclared (first use in this function) V4L2_PORTER_DUFF_CLEAR, 0, ^~ >> drivers/media/platform/rockchip-rga/rga.c:192:11: error: >> 'V4L2_PORTER_DUFF_SRC' undeclared (first use in this function) V4L2_PORTER_DUFF_SRC); ^~~~ vim +/V4L2_CID_PORTER_DUFF_MODE +190 drivers/media/platform/rockchip-rga/rga.c 182 183 static int rga_setup_ctrls(struct rga_ctx *ctx) 184 { 185 struct rockchip_rga *rga = ctx->rga; 186 187 v4l2_ctrl_handler_init(>ctrl_handler, 5); 188 189 v4l2_ctrl_new_std_menu(>ctrl_handler, _ctrl_ops, > 190 V4L2_CID_PORTER_DUFF_MODE, > 191 V4L2_PORTER_DUFF_CLEAR, 0, > 192 V4L2_PORTER_DUFF_SRC); 193 194 v4l2_ctrl_new_std(>ctrl_handler, _ctrl_ops, 195V4L2_CID_HFLIP, 0, 1, 1, 0); 196 197 v4l2_ctrl_new_std(>ctrl_handler, _ctrl_ops, 198V4L2_CID_VFLIP, 0, 1, 1, 0); 199 200 v4l2_ctrl_new_std(>ctrl_handler, _ctrl_ops, 201V4L2_CID_ROTATE, 0, 270, 90, 0); 202 203 v4l2_ctrl_new_std(>ctrl_handler, _ctrl_ops, 204V4L2_CID_BG_COLOR, 0, 0x, 1, 0); 205 206 if (ctx->ctrl_handler.error) { 207 int err = ctx->ctrl_handler.error; 208 209 v4l2_err(>v4l2_dev, "%s failed\n", __func__); 210 v4l2_ctrl_handler_free(>ctrl_handler); 211 return err; 212 } 213 214 return 0; 215 } 216 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[linuxtv-media:fixes 2543/2599] fs/compat_ioctl.c:1335:18: error: 'DMX_SET_SOURCE' undeclared here (not in a function)
tree: git://linuxtv.org/media_tree.git fixes head: 12f92866f13f9ca12e158c07978246ed83d52ed0 commit: 13adefbe9e566c6db91579e4ce17f1e5193d6f2c [2543/2599] media: dmx.h: get rid of DMX_SET_SOURCE config: x86_64-randconfig-i0-201736 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: git checkout 13adefbe9e566c6db91579e4ce17f1e5193d6f2c # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): fs/compat_ioctl.c:1334:18: error: 'DMX_GET_CAPS' undeclared here (not in a function) COMPATIBLE_IOCTL(DMX_GET_CAPS) ^ fs/compat_ioctl.c:833:21: note: in definition of macro 'XFORM' #define XFORM(i) (((i) ^ ((i) << 27) ^ ((i) << 17)) & 0x) ^ fs/compat_ioctl.c:1334:1: note: in expansion of macro 'COMPATIBLE_IOCTL' COMPATIBLE_IOCTL(DMX_GET_CAPS) ^ >> fs/compat_ioctl.c:1335:18: error: 'DMX_SET_SOURCE' undeclared here (not in a >> function) COMPATIBLE_IOCTL(DMX_SET_SOURCE) ^ fs/compat_ioctl.c:833:21: note: in definition of macro 'XFORM' #define XFORM(i) (((i) ^ ((i) << 27) ^ ((i) << 17)) & 0x) ^ fs/compat_ioctl.c:1335:1: note: in expansion of macro 'COMPATIBLE_IOCTL' COMPATIBLE_IOCTL(DMX_SET_SOURCE) ^ vim +/DMX_SET_SOURCE +1335 fs/compat_ioctl.c 644fd4f5 Christoph Hellwig 2007-05-08 849 644fd4f5 Christoph Hellwig 2007-05-08 850 /* Big T */ 644fd4f5 Christoph Hellwig 2007-05-08 851 COMPATIBLE_IOCTL(TCGETA) 644fd4f5 Christoph Hellwig 2007-05-08 852 COMPATIBLE_IOCTL(TCSETA) 644fd4f5 Christoph Hellwig 2007-05-08 853 COMPATIBLE_IOCTL(TCSETAW) 644fd4f5 Christoph Hellwig 2007-05-08 854 COMPATIBLE_IOCTL(TCSETAF) 644fd4f5 Christoph Hellwig 2007-05-08 855 COMPATIBLE_IOCTL(TCSBRK) 644fd4f5 Christoph Hellwig 2007-05-08 856 COMPATIBLE_IOCTL(TCXONC) 644fd4f5 Christoph Hellwig 2007-05-08 857 COMPATIBLE_IOCTL(TCFLSH) 644fd4f5 Christoph Hellwig 2007-05-08 858 COMPATIBLE_IOCTL(TCGETS) 644fd4f5 Christoph Hellwig 2007-05-08 859 COMPATIBLE_IOCTL(TCSETS) 644fd4f5 Christoph Hellwig 2007-05-08 860 COMPATIBLE_IOCTL(TCSETSW) 644fd4f5 Christoph Hellwig 2007-05-08 861 COMPATIBLE_IOCTL(TCSETSF) 644fd4f5 Christoph Hellwig 2007-05-08 862 COMPATIBLE_IOCTL(TIOCLINUX) 644fd4f5 Christoph Hellwig 2007-05-08 863 COMPATIBLE_IOCTL(TIOCSBRK) b7b8de08 Werner Fink2010-12-03 864 COMPATIBLE_IOCTL(TIOCGDEV) 644fd4f5 Christoph Hellwig 2007-05-08 865 COMPATIBLE_IOCTL(TIOCCBRK) 4cfbafd3 Andreas Schwab 2010-02-10 866 COMPATIBLE_IOCTL(TIOCGSID) 644fd4f5 Christoph Hellwig 2007-05-08 867 COMPATIBLE_IOCTL(TIOCGICOUNT) c6298038 Cyrill Gorcunov2012-10-24 868 COMPATIBLE_IOCTL(TIOCGEXCL) 644fd4f5 Christoph Hellwig 2007-05-08 869 /* Little t */ 644fd4f5 Christoph Hellwig 2007-05-08 870 COMPATIBLE_IOCTL(TIOCGETD) 644fd4f5 Christoph Hellwig 2007-05-08 871 COMPATIBLE_IOCTL(TIOCSETD) 644fd4f5 Christoph Hellwig 2007-05-08 872 COMPATIBLE_IOCTL(TIOCEXCL) 644fd4f5 Christoph Hellwig 2007-05-08 873 COMPATIBLE_IOCTL(TIOCNXCL) 644fd4f5 Christoph Hellwig 2007-05-08 874 COMPATIBLE_IOCTL(TIOCCONS) 644fd4f5 Christoph Hellwig 2007-05-08 875 COMPATIBLE_IOCTL(TIOCGSOFTCAR) 644fd4f5 Christoph Hellwig 2007-05-08 876 COMPATIBLE_IOCTL(TIOCSSOFTCAR) 644fd4f5 Christoph Hellwig 2007-05-08 877 COMPATIBLE_IOCTL(TIOCSWINSZ) 644fd4f5 Christoph Hellwig 2007-05-08 878 COMPATIBLE_IOCTL(TIOCGWINSZ) 644fd4f5 Christoph Hellwig 2007-05-08 879 COMPATIBLE_IOCTL(TIOCMGET) 644fd4f5 Christoph Hellwig 2007-05-08 880 COMPATIBLE_IOCTL(TIOCMBIC) 644fd4f5 Christoph Hellwig 2007-05-08 881 COMPATIBLE_IOCTL(TIOCMBIS) 644fd4f5 Christoph Hellwig 2007-05-08 882 COMPATIBLE_IOCTL(TIOCMSET) 644fd4f5 Christoph Hellwig 2007-05-08 883 COMPATIBLE_IOCTL(TIOCNOTTY) 644fd4f5 Christoph Hellwig 2007-05-08 884 COMPATIBLE_IOCTL(TIOCSTI) 644fd4f5 Christoph Hellwig 2007-05-08 885 COMPATIBLE_IOCTL(TIOCOUTQ) 644fd4f5 Christoph Hellwig 2007-05-08 886 COMPATIBLE_IOCTL(TIOCSPGRP) 644fd4f5 Christoph Hellwig 2007-05-08 887 COMPATIBLE_IOCTL(TIOCGPGRP) 644fd4f5 Christoph Hellwig 2007-05-08 888 COMPATIBLE_IOCTL(TIOCSERGETLSR) 142e5460 Jaeden Amero 2012-09-24 889 #ifdef TIOCSRS485 84c3b848 Jaeden Amero 2012-09-19 890 COMPATIBLE_IOCTL(TIOCSRS485) 142e5460 Jaeden Amero 2012-09-24 891 #endif 142e5460 Jaeden Amero 2012-09-24 892 #ifdef TIOCGRS485 84c3b848 Jaeden Amero 2012-09-19 893 COMPATIBLE_IOCTL(TIOCGRS485) 142e5460 Jaeden Amero 2012-09-24 894 #endif 81257def Heiko Carstens 2007-11-28 895 #ifdef TCGETS2 81257def Heiko Carstens 2007-11-28 896 COMPATIBLE_IOCTL(TCGETS2) 81257def Heiko
[media-next:master 2542/2599] fs/compat_ioctl.c:1334:18: error: 'DMX_GET_CAPS' undeclared here (not in a function)
tree: git://linuxtv.org/mchehab/media-next.git master head: 12f92866f13f9ca12e158c07978246ed83d52ed0 commit: 286fe1ca3fa1b6fcc7ce8695b7c8d681e6e1c3b7 [2542/2599] media: dmx.h: get rid of DMX_GET_CAPS config: x86_64-randconfig-i0-201736 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: git checkout 286fe1ca3fa1b6fcc7ce8695b7c8d681e6e1c3b7 # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): >> fs/compat_ioctl.c:1334:18: error: 'DMX_GET_CAPS' undeclared here (not in a >> function) COMPATIBLE_IOCTL(DMX_GET_CAPS) ^ fs/compat_ioctl.c:833:21: note: in definition of macro 'XFORM' #define XFORM(i) (((i) ^ ((i) << 27) ^ ((i) << 17)) & 0x) ^ fs/compat_ioctl.c:1334:1: note: in expansion of macro 'COMPATIBLE_IOCTL' COMPATIBLE_IOCTL(DMX_GET_CAPS) ^ vim +/DMX_GET_CAPS +1334 fs/compat_ioctl.c 644fd4f5 Christoph Hellwig 2007-05-08 849 644fd4f5 Christoph Hellwig 2007-05-08 850 /* Big T */ 644fd4f5 Christoph Hellwig 2007-05-08 851 COMPATIBLE_IOCTL(TCGETA) 644fd4f5 Christoph Hellwig 2007-05-08 852 COMPATIBLE_IOCTL(TCSETA) 644fd4f5 Christoph Hellwig 2007-05-08 853 COMPATIBLE_IOCTL(TCSETAW) 644fd4f5 Christoph Hellwig 2007-05-08 854 COMPATIBLE_IOCTL(TCSETAF) 644fd4f5 Christoph Hellwig 2007-05-08 855 COMPATIBLE_IOCTL(TCSBRK) 644fd4f5 Christoph Hellwig 2007-05-08 856 COMPATIBLE_IOCTL(TCXONC) 644fd4f5 Christoph Hellwig 2007-05-08 857 COMPATIBLE_IOCTL(TCFLSH) 644fd4f5 Christoph Hellwig 2007-05-08 858 COMPATIBLE_IOCTL(TCGETS) 644fd4f5 Christoph Hellwig 2007-05-08 859 COMPATIBLE_IOCTL(TCSETS) 644fd4f5 Christoph Hellwig 2007-05-08 860 COMPATIBLE_IOCTL(TCSETSW) 644fd4f5 Christoph Hellwig 2007-05-08 861 COMPATIBLE_IOCTL(TCSETSF) 644fd4f5 Christoph Hellwig 2007-05-08 862 COMPATIBLE_IOCTL(TIOCLINUX) 644fd4f5 Christoph Hellwig 2007-05-08 863 COMPATIBLE_IOCTL(TIOCSBRK) b7b8de08 Werner Fink2010-12-03 864 COMPATIBLE_IOCTL(TIOCGDEV) 644fd4f5 Christoph Hellwig 2007-05-08 865 COMPATIBLE_IOCTL(TIOCCBRK) 4cfbafd3 Andreas Schwab 2010-02-10 866 COMPATIBLE_IOCTL(TIOCGSID) 644fd4f5 Christoph Hellwig 2007-05-08 867 COMPATIBLE_IOCTL(TIOCGICOUNT) c6298038 Cyrill Gorcunov2012-10-24 868 COMPATIBLE_IOCTL(TIOCGEXCL) 644fd4f5 Christoph Hellwig 2007-05-08 869 /* Little t */ 644fd4f5 Christoph Hellwig 2007-05-08 870 COMPATIBLE_IOCTL(TIOCGETD) 644fd4f5 Christoph Hellwig 2007-05-08 871 COMPATIBLE_IOCTL(TIOCSETD) 644fd4f5 Christoph Hellwig 2007-05-08 872 COMPATIBLE_IOCTL(TIOCEXCL) 644fd4f5 Christoph Hellwig 2007-05-08 873 COMPATIBLE_IOCTL(TIOCNXCL) 644fd4f5 Christoph Hellwig 2007-05-08 874 COMPATIBLE_IOCTL(TIOCCONS) 644fd4f5 Christoph Hellwig 2007-05-08 875 COMPATIBLE_IOCTL(TIOCGSOFTCAR) 644fd4f5 Christoph Hellwig 2007-05-08 876 COMPATIBLE_IOCTL(TIOCSSOFTCAR) 644fd4f5 Christoph Hellwig 2007-05-08 877 COMPATIBLE_IOCTL(TIOCSWINSZ) 644fd4f5 Christoph Hellwig 2007-05-08 878 COMPATIBLE_IOCTL(TIOCGWINSZ) 644fd4f5 Christoph Hellwig 2007-05-08 879 COMPATIBLE_IOCTL(TIOCMGET) 644fd4f5 Christoph Hellwig 2007-05-08 880 COMPATIBLE_IOCTL(TIOCMBIC) 644fd4f5 Christoph Hellwig 2007-05-08 881 COMPATIBLE_IOCTL(TIOCMBIS) 644fd4f5 Christoph Hellwig 2007-05-08 882 COMPATIBLE_IOCTL(TIOCMSET) 644fd4f5 Christoph Hellwig 2007-05-08 883 COMPATIBLE_IOCTL(TIOCNOTTY) 644fd4f5 Christoph Hellwig 2007-05-08 884 COMPATIBLE_IOCTL(TIOCSTI) 644fd4f5 Christoph Hellwig 2007-05-08 885 COMPATIBLE_IOCTL(TIOCOUTQ) 644fd4f5 Christoph Hellwig 2007-05-08 886 COMPATIBLE_IOCTL(TIOCSPGRP) 644fd4f5 Christoph Hellwig 2007-05-08 887 COMPATIBLE_IOCTL(TIOCGPGRP) 644fd4f5 Christoph Hellwig 2007-05-08 888 COMPATIBLE_IOCTL(TIOCSERGETLSR) 142e5460 Jaeden Amero 2012-09-24 889 #ifdef TIOCSRS485 84c3b848 Jaeden Amero 2012-09-19 890 COMPATIBLE_IOCTL(TIOCSRS485) 142e5460 Jaeden Amero 2012-09-24 891 #endif 142e5460 Jaeden Amero 2012-09-24 892 #ifdef TIOCGRS485 84c3b848 Jaeden Amero 2012-09-19 893 COMPATIBLE_IOCTL(TIOCGRS485) 142e5460 Jaeden Amero 2012-09-24 894 #endif 81257def Heiko Carstens 2007-11-28 895 #ifdef TCGETS2 81257def Heiko Carstens 2007-11-28 896 COMPATIBLE_IOCTL(TCGETS2) 81257def Heiko Carstens 2007-11-28 897 COMPATIBLE_IOCTL(TCSETS2) 81257def Heiko Carstens 2007-11-28 898 COMPATIBLE_IOCTL(TCSETSW2) 81257def Heiko Carstens 2007-11-28 899 COMPATIBLE_IOCTL(TCSETSF2) 81257def Heiko Carstens 2007-11-28 900 #endif 644fd4f5 Christoph Hellwig 2007-05-08 901 /* Little f */ 644fd4f5 Christoph Hellwig 2007-05-08 902 COMPATIBLE_IOCTL(FIOCLEX) 644fd4f5
Re: [PATCH v2 2/2] media:imx274 V4l2 driver for Sony imx274 CMOS sensor
Hi Leon, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.13-rc7 next-20170829] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Soren-Brinkmann/media-imx274-device-tree-binding-file/20170831-144636 base: git://linuxtv.org/media_tree.git master config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): >> ERROR: "__divdi3" [drivers/media/i2c/imx274.ko] undefined! --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH v2 2/2] media:imx274 V4l2 driver for Sony imx274 CMOS sensor
Hi Leon, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.13-rc7 next-20170829] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Soren-Brinkmann/media-imx274-device-tree-binding-file/20170831-144636 base: git://linuxtv.org/media_tree.git master config: mips-allyesconfig (attached as .config) compiler: mips-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=mips All errors (new ones prefixed by >>): drivers/media/i2c/imx274.o: In function `imx274_set_exposure': >> imx274.c:(.text+0x42c): undefined reference to `__divdi3' imx274.c:(.text+0x464): undefined reference to `__divdi3' imx274.c:(.text+0x94c): undefined reference to `__divdi3' --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[linuxtv-media:master 1989/2402] drivers/media/cec/cec-adap.c:167: error: unknown field 'lost_msgs' specified in initializer
Hi Hans, FYI, the error/warning still remains. tree: git://linuxtv.org/media_tree.git master head: 0779b8855c746c90b85bfe6e16d5dfa2a6a46655 commit: 6b2bbb08747a56dcf4ee33606a06025eca571260 [1989/2402] media: cec: rework the cec event handling config: x86_64-randconfig-a0-08210006 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: git checkout 6b2bbb08747a56dcf4ee33606a06025eca571260 # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/media/cec/cec-adap.c: In function 'cec_queue_msg_fh': >> drivers/media/cec/cec-adap.c:167: error: unknown field 'lost_msgs' specified >> in initializer vim +/lost_msgs +167 drivers/media/cec/cec-adap.c 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 155 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 156 /* 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 157 * Queue a new message for this filehandle. 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 158 * 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 159 * We keep a queue of at most CEC_MAX_MSG_RX_QUEUE_SZ messages. If the 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 160 * queue becomes full, then drop the oldest message and keep track 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 161 * of how many messages we've dropped. 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 162 */ 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 163 static void cec_queue_msg_fh(struct cec_fh *fh, const struct cec_msg *msg) 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 164 { 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 165 static const struct cec_event ev_lost_msgs = { 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 166 .event = CEC_EVENT_LOST_MSGS, 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 @167 .lost_msgs.lost_msgs = 1, 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 168 }; 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 169 struct cec_msg_entry *entry; 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 170 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 171 mutex_lock(>lock); 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 172 entry = kmalloc(sizeof(*entry), GFP_KERNEL); 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 173 if (entry) { 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 174 entry->msg = *msg; 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 175 /* Add new msg at the end of the queue */ 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 176 list_add_tail(>list, >msgs); 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 177 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 178 if (fh->queued_msgs < CEC_MAX_MSG_RX_QUEUE_SZ) { 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 179 /* All is fine if there is enough room */ 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 180 fh->queued_msgs++; 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 181 mutex_unlock(>lock); 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 182 wake_up_interruptible(>wait); 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 183 return; 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 184 } 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 185 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 186 /* 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 187 * if the message queue is full, then drop the oldest one and 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 188 * send a lost message event. 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 189 */ 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 190 entry = list_first_entry(>msgs, struct cec_msg_entry, list); 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 191 list_del(>list); 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 192 kfree(entry); 6b2bbb08 drivers/media/cec/cec-adap.c Hans
[linuxtv-media:master 2274/2287] drivers/media/pci/ddbridge/ddbridge-maxs8.c:145:2-3: Unneeded semicolon
tree: git://linuxtv.org/media_tree.git master head: 4fd67c4f282d1b076a0367a15425877f33b2fc56 commit: a43dbe430fb4177ba9960dd9fe47df15c3757939 [2274/2287] media: ddbridge: support MaxLinear MXL5xx based cards (MaxS4/8) coccinelle warnings: (new ones prefixed by >>) >> drivers/media/pci/ddbridge/ddbridge-maxs8.c:145:2-3: Unneeded semicolon drivers/media/pci/ddbridge/ddbridge-maxs8.c:173:2-3: Unneeded semicolon Please review and possibly fold the followup patch. --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
[PATCH] media: ddbridge: fix semicolon.cocci warnings
drivers/media/pci/ddbridge/ddbridge-maxs8.c:145:2-3: Unneeded semicolon drivers/media/pci/ddbridge/ddbridge-maxs8.c:173:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: a43dbe430fb4 ("media: ddbridge: support MaxLinear MXL5xx based cards (MaxS4/8)") CC: Daniel SchellerSigned-off-by: Fengguang Wu --- ddbridge-maxs8.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/media/pci/ddbridge/ddbridge-maxs8.c +++ b/drivers/media/pci/ddbridge/ddbridge-maxs8.c @@ -142,7 +142,7 @@ static int lnb_set_tone(struct ddb *dev, default: s = -EINVAL; break; - }; + } if (!s) s = lnb_command(dev, link, input, LNB_CMD_NOP); return s; @@ -170,7 +170,7 @@ static int lnb_set_voltage(struct ddb *d default: s = -EINVAL; break; - }; + } dev->link[link].lnb.oldvoltage[input] = voltage; return s; }
Re: [PATCH 5/5] [media] cxusb: add analog mode support for Medion MD95700
Hi Maciej, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.13-rc4 next-20170811] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Maciej-S-Szmigiero/Add-analog-mode-support-for-Medion-MD95700/20170813-041742 base: git://linuxtv.org/media_tree.git master config: tile-allyesconfig (attached as .config) compiler: tilegx-linux-gcc (GCC) 4.6.2 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=tile All warnings (new ones prefixed by >>): drivers/media//usb/dvb-usb/cxusb-analog.c: In function 'cxusb_medion_copy_field': >> drivers/media//usb/dvb-usb/cxusb-analog.c:359:27: warning: comparison of >> distinct pointer types lacks a cast [enabled by default] >> drivers/media//usb/dvb-usb/cxusb-analog.c:359:27: warning: comparison of >> distinct pointer types lacks a cast [enabled by default] vim +359 drivers/media//usb/dvb-usb/cxusb-analog.c 198 199 static bool cxusb_medion_copy_field(struct dvb_usb_device *dvbdev, 200 struct cxusb_medion_auxbuf *auxbuf, 201 struct cxusb_bt656_params *bt656, 202 bool firstfield, 203 unsigned int maxlines, 204 unsigned int maxlinesamples) 205 { 206 while (bt656->line < maxlines && 207 !cxusb_auxbuf_isend(auxbuf, bt656->pos)) { 208 209 unsigned char val; 210 211 if (!cxusb_auxbuf_copy(auxbuf, bt656->pos, , 1)) 212 return false; 213 214 if ((char)val == CXUSB_BT656_COMMON[0]) { 215 char buf[3]; 216 217 if (!cxusb_auxbuf_copy(auxbuf, bt656->pos + 1, 218 buf, 3)) 219 return false; 220 221 if (buf[0] != (CXUSB_BT656_COMMON)[1] || 222 buf[1] != (CXUSB_BT656_COMMON)[2]) 223 goto normal_sample; 224 225 if (bt656->line != 0 && (!!firstfield != 226 ((buf[2] & CXUSB_FIELD_MASK) 227== CXUSB_FIELD_1))) { 228 if (bt656->fmode == LINE_SAMPLES) { 229 cxusb_vprintk(dvbdev, BT656, 230"field %c after line %u field change\n", 231firstfield ? '1' : '2', 232bt656->line); 233 234 if (bt656->buf != NULL && 235 maxlinesamples - 236 bt656->linesamples > 0) { 237 238 memset(bt656->buf, 0, 239 maxlinesamples - 240 bt656->linesamples); 241 242 bt656->buf += 243 maxlinesamples - 244 bt656->linesamples; 245 246 cxusb_vprintk(dvbdev, BT656, 247"field %c line %u %u samples still remaining (of %u)\n", 248 firstfield ? 249'1' : '2', 250 bt656->line, 251 maxlinesamples - 252bt656-> 253 linesamples, 254 maxlinesamples); 255 } 256 257 bt656->line++; 258 } 259 260 if (maxlines - bt656->line > 0 && 261 bt656->buf != NULL) {
[linux-next:master 1210/6359] drivers/media//cec/cec-adap.c:167: error: unknown field 'lost_msgs' specified in initializer
Hi Hans, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 91dfed74eabcdae9378131546c446442c29bf769 commit: 6b2bbb08747a56dcf4ee33606a06025eca571260 [1210/6359] media: cec: rework the cec event handling config: x86_64-randconfig-b0-08130946 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: git checkout 6b2bbb08747a56dcf4ee33606a06025eca571260 # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): In file included from include/linux/bitmap.h:8, from include/linux/cpumask.h:11, from arch/x86/include/asm/cpumask.h:4, from arch/x86/include/asm/msr.h:10, from arch/x86/include/asm/processor.h:20, from arch/x86/include/asm/cpufeature.h:4, from arch/x86/include/asm/thread_info.h:52, from include/linux/thread_info.h:37, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:80, 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 drivers/media//cec/cec-adap.c:22: include/linux/string.h: In function 'strncpy': include/linux/string.h:209: warning: '__f' is static but declared in inline function 'strncpy' which is not static include/linux/string.h:211: warning: '__f' is static but declared in inline function 'strncpy' which is not static include/linux/string.h: In function 'strcat': include/linux/string.h:219: warning: '__f' is static but declared in inline function 'strcat' which is not static include/linux/string.h:221: warning: '__f' is static but declared in inline function 'strcat' which is not static include/linux/string.h: In function 'strlen': include/linux/string.h:230: warning: '__f' is static but declared in inline function 'strlen' which is not static include/linux/string.h:233: warning: '__f' is static but declared in inline function 'strlen' which is not static include/linux/string.h: In function 'strnlen': include/linux/string.h:243: warning: '__f' is static but declared in inline function 'strnlen' which is not static include/linux/string.h: In function 'strlcpy': include/linux/string.h:255: warning: '__f' is static but declared in inline function 'strlcpy' which is not static include/linux/string.h:258: warning: '__f' is static but declared in inline function 'strlcpy' which is not static include/linux/string.h:260: warning: '__f' is static but declared in inline function 'strlcpy' which is not static include/linux/string.h:262: warning: '__f' is static but declared in inline function 'strlcpy' which is not static include/linux/string.h: In function 'strncat': include/linux/string.h:276: warning: '__f' is static but declared in inline function 'strncat' which is not static include/linux/string.h:280: warning: '__f' is static but declared in inline function 'strncat' which is not static include/linux/string.h: In function 'memset': include/linux/string.h:290: warning: '__f' is static but declared in inline function 'memset' which is not static include/linux/string.h:292: warning: '__f' is static but declared in inline function 'memset' which is not static include/linux/string.h: In function 'memcpy': include/linux/string.h:301: warning: '__f' is static but declared in inline function 'memcpy' which is not static include/linux/string.h:302: warning: '__f' is static but declared in inline function 'memcpy' which is not static include/linux/string.h:304: warning: '__f' is static but declared in inline function 'memcpy' which is not static include/linux/string.h:307: warning: '__f' is static but declared in inline function 'memcpy' which is not static include/linux/string.h: In function 'memmove': include/linux/string.h:316: warning: '__f' is static but declared in inline function 'memmove' which is not static include/linux/string.h:317: warning: '__f' is static but declared in inline function 'memmove' which is not static include/linux/string.h:319: warning: '__f' is static but declared in inline function 'memmove' which is not static include/linux/string.h:322: warning: '__f' is static but declared in inline function 'memmove' which is not static include/linux/string.h: In function 'memscan': include/linux/string.h:331: warning: '__f' is static but declared in inline function 'memscan' which is not static include/linux/string.h:333: warning: '__f' is static but declared in inline
Re: [PATCH v7] rockchip/rga: v4l2 m2m support
Hi Jacob, [auto build test ERROR on rockchip/for-next] [also build test ERROR on v4.13-rc4 next-20170811] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jacob-Chen/rockchip-rga-v4l2-m2m-support/20170803-234713 base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next config: s390-allmodconfig (attached as .config) compiler: s390x-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=s390 All errors (new ones prefixed by >>): drivers/media/platform/rockchip-rga/rga-hw.c: In function 'rga_cmd_set_trans_info': drivers/media/platform/rockchip-rga/rga-hw.c:237:17: error: 'V4L2_PORTER_DUFF_CLEAR' undeclared (first use in this function) if (ctx->op == V4L2_PORTER_DUFF_CLEAR) { ^~ drivers/media/platform/rockchip-rga/rga-hw.c:237:17: note: each undeclared identifier is reported only once for each function it appears in drivers/media/platform/rockchip-rga/rga-hw.c: In function 'rga_cmd_set_mode': drivers/media/platform/rockchip-rga/rga-hw.c:391:7: error: 'V4L2_PORTER_DUFF_CLEAR' undeclared (first use in this function) case V4L2_PORTER_DUFF_CLEAR: ^~ >> drivers/media/platform/rockchip-rga/rga-hw.c:397:7: error: >> 'V4L2_PORTER_DUFF_DST' undeclared (first use in this function) case V4L2_PORTER_DUFF_DST: ^~~~ drivers/media/platform/rockchip-rga/rga-hw.c:398:7: error: 'V4L2_PORTER_DUFF_DSTATOP' undeclared (first use in this function) case V4L2_PORTER_DUFF_DSTATOP: ^~~~ drivers/media/platform/rockchip-rga/rga-hw.c:399:7: error: 'V4L2_PORTER_DUFF_DSTIN' undeclared (first use in this function) case V4L2_PORTER_DUFF_DSTIN: ^~ drivers/media/platform/rockchip-rga/rga-hw.c:400:7: error: 'V4L2_PORTER_DUFF_DSTOUT' undeclared (first use in this function) case V4L2_PORTER_DUFF_DSTOUT: ^~~ >> drivers/media/platform/rockchip-rga/rga-hw.c:401:7: error: >> 'V4L2_PORTER_DUFF_DSTOVER' undeclared (first use in this function) case V4L2_PORTER_DUFF_DSTOVER: ^~~~ drivers/media/platform/rockchip-rga/rga-hw.c:402:7: error: 'V4L2_PORTER_DUFF_SRCATOP' undeclared (first use in this function) case V4L2_PORTER_DUFF_SRCATOP: ^~~~ drivers/media/platform/rockchip-rga/rga-hw.c:403:7: error: 'V4L2_PORTER_DUFF_SRCIN' undeclared (first use in this function) case V4L2_PORTER_DUFF_SRCIN: ^~ drivers/media/platform/rockchip-rga/rga-hw.c:404:7: error: 'V4L2_PORTER_DUFF_SRCOUT' undeclared (first use in this function) case V4L2_PORTER_DUFF_SRCOUT: ^~~ drivers/media/platform/rockchip-rga/rga-hw.c:405:7: error: 'V4L2_PORTER_DUFF_SRCOVER' undeclared (first use in this function) case V4L2_PORTER_DUFF_SRCOVER: ^~~~ drivers/media/platform/rockchip-rga/rga-hw.c: In function 'rga_cmd_set': drivers/media/platform/rockchip-rga/rga-hw.c:623:17: error: 'V4L2_PORTER_DUFF_CLEAR' undeclared (first use in this function) if (ctx->op != V4L2_PORTER_DUFF_CLEAR) { ^~ vim +/V4L2_PORTER_DUFF_DST +397 drivers/media/platform/rockchip-rga/rga-hw.c 168 169 static void rga_cmd_set_trans_info(struct rga_ctx *ctx) 170 { 171 struct rockchip_rga *rga = ctx->rga; 172 u32 *dest = rga->cmdbuf_virt; 173 unsigned int scale_dst_w, scale_dst_h; 174 unsigned int src_h, src_w, src_x, src_y, dst_h, dst_w, dst_x, dst_y; 175 union rga_src_info src_info; 176 union rga_dst_info dst_info; 177 union rga_src_x_factor x_factor; 178 union rga_src_y_factor y_factor; 179 union rga_src_vir_info src_vir_info; 180 union rga_src_act_info src_act_info; 181 union rga_dst_vir_info dst_vir_info; 182 union rga_dst_act_info dst_act_info; 183 184 struct rga_addr_offset *dst_offset; 185 struct rga_corners_addr_offset offsets; 186 struct rga_corners_addr_offset src_offsets; 187 188 src_h = ctx->in.crop.height; 189 src_w = ctx->in.crop.width; 190 src_x = ctx->in.crop.left; 191 src_y = ctx->in.crop.top; 192 dst_h = ctx->out.crop.height; 193 dst_w = ctx->out.crop.width; 194 dst_x = ctx->out.crop.left; 195 dst_y = ctx->out.crop.top; 196 197 src_info.val =
Re: [PATCH v7] rockchip/rga: v4l2 m2m support
Hi Jacob, [auto build test ERROR on rockchip/for-next] [also build test ERROR on v4.13-rc4 next-20170811] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jacob-Chen/rockchip-rga-v4l2-m2m-support/20170803-234713 base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next config: openrisc-allyesconfig (attached as .config) compiler: or1k-linux-gcc (GCC) 5.4.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=openrisc All errors (new ones prefixed by >>): drivers/media/platform/rockchip-rga/rga.c: In function 'rga_s_ctrl': >> drivers/media/platform/rockchip-rga/rga.c:159:7: error: >> 'V4L2_CID_PORTER_DUFF_MODE' undeclared (first use in this function) case V4L2_CID_PORTER_DUFF_MODE: ^ drivers/media/platform/rockchip-rga/rga.c:159:7: note: each undeclared identifier is reported only once for each function it appears in drivers/media/platform/rockchip-rga/rga.c: In function 'rga_setup_ctrls': drivers/media/platform/rockchip-rga/rga.c:190:11: error: 'V4L2_CID_PORTER_DUFF_MODE' undeclared (first use in this function) V4L2_CID_PORTER_DUFF_MODE, ^ drivers/media/platform/rockchip-rga/rga.c:191:11: error: 'V4L2_PORTER_DUFF_CLEAR' undeclared (first use in this function) V4L2_PORTER_DUFF_CLEAR, 0, ^ drivers/media/platform/rockchip-rga/rga.c:192:11: error: 'V4L2_PORTER_DUFF_SRC' undeclared (first use in this function) V4L2_PORTER_DUFF_SRC); ^ drivers/media/platform/rockchip-rga/rga.c: At top level: drivers/media/platform/rockchip-rga/rga.c:742:12: warning: 'rga_enable_clocks' defined but not used [-Wunused-function] static int rga_enable_clocks(struct rockchip_rga *rga) ^ drivers/media/platform/rockchip-rga/rga.c:774:13: warning: 'rga_disable_clocks' defined but not used [-Wunused-function] static void rga_disable_clocks(struct rockchip_rga *rga) ^ -- drivers/media/platform/rockchip-rga/rga-hw.c: In function 'rga_cmd_set_trans_info': drivers/media/platform/rockchip-rga/rga-hw.c:237:17: error: 'V4L2_PORTER_DUFF_CLEAR' undeclared (first use in this function) if (ctx->op == V4L2_PORTER_DUFF_CLEAR) { ^ drivers/media/platform/rockchip-rga/rga-hw.c:237:17: note: each undeclared identifier is reported only once for each function it appears in drivers/media/platform/rockchip-rga/rga-hw.c: In function 'rga_cmd_set_mode': drivers/media/platform/rockchip-rga/rga-hw.c:391:7: error: 'V4L2_PORTER_DUFF_CLEAR' undeclared (first use in this function) case V4L2_PORTER_DUFF_CLEAR: ^ drivers/media/platform/rockchip-rga/rga-hw.c:397:7: error: 'V4L2_PORTER_DUFF_DST' undeclared (first use in this function) case V4L2_PORTER_DUFF_DST: ^ >> drivers/media/platform/rockchip-rga/rga-hw.c:398:7: error: >> 'V4L2_PORTER_DUFF_DSTATOP' undeclared (first use in this function) case V4L2_PORTER_DUFF_DSTATOP: ^ drivers/media/platform/rockchip-rga/rga-hw.c:399:7: error: 'V4L2_PORTER_DUFF_DSTIN' undeclared (first use in this function) case V4L2_PORTER_DUFF_DSTIN: ^ drivers/media/platform/rockchip-rga/rga-hw.c:400:7: error: 'V4L2_PORTER_DUFF_DSTOUT' undeclared (first use in this function) case V4L2_PORTER_DUFF_DSTOUT: ^ drivers/media/platform/rockchip-rga/rga-hw.c:401:7: error: 'V4L2_PORTER_DUFF_DSTOVER' undeclared (first use in this function) case V4L2_PORTER_DUFF_DSTOVER: ^ >> drivers/media/platform/rockchip-rga/rga-hw.c:402:7: error: >> 'V4L2_PORTER_DUFF_SRCATOP' undeclared (first use in this function) case V4L2_PORTER_DUFF_SRCATOP: ^ drivers/media/platform/rockchip-rga/rga-hw.c:403:7: error: 'V4L2_PORTER_DUFF_SRCIN' undeclared (first use in this function) case V4L2_PORTER_DUFF_SRCIN: ^ drivers/media/platform/rockchip-rga/rga-hw.c:404:7: error: 'V4L2_PORTER_DUFF_SRCOUT' undeclared (first use in this function) case V4L2_PORTER_DUFF_SRCOUT: ^ >> drivers/media/platform/rockchip-rga/rga-hw.c:405:7: error: >> 'V4L2_PORTER_DUFF_SRCOVER' undeclared (first use in this function) case V4L2_PORTER_DUFF_SRCOVER: ^ drivers/media/platform/rockchip-rga/rga-hw.c: In function 'rga_cmd_set': drivers/media/platform/rockchip-rga/rga-hw.c:623:17: error: 'V4L2_PORTER_DUFF_CLEAR' undeclared (first use in this function) if (ctx->op != V4L2_PORTER_DUFF_CLEAR) { ^ vim +/V4L2_CID_PORTER_DUFF_MODE +159 drivers/media/platform/rockchip-rga/rga.c 150 151 static int rga_s_ctrl(struct v4l2_ctrl *ctrl) 152 { 153 struct rga_ctx *ctx
Re: [PATCH 5/5] [media] cxusb: add analog mode support for Medion MD95700
Hi Maciej, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.13-rc4 next-20170811] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Maciej-S-Szmigiero/Add-analog-mode-support-for-Medion-MD95700/20170813-041742 base: git://linuxtv.org/media_tree.git master reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) vim +359 drivers/media/usb/dvb-usb/cxusb-analog.c 198 199 static bool cxusb_medion_copy_field(struct dvb_usb_device *dvbdev, 200 struct cxusb_medion_auxbuf *auxbuf, 201 struct cxusb_bt656_params *bt656, 202 bool firstfield, 203 unsigned int maxlines, 204 unsigned int maxlinesamples) 205 { 206 while (bt656->line < maxlines && 207 !cxusb_auxbuf_isend(auxbuf, bt656->pos)) { 208 209 unsigned char val; 210 211 if (!cxusb_auxbuf_copy(auxbuf, bt656->pos, , 1)) 212 return false; 213 214 if ((char)val == CXUSB_BT656_COMMON[0]) { 215 char buf[3]; 216 217 if (!cxusb_auxbuf_copy(auxbuf, bt656->pos + 1, 218 buf, 3)) 219 return false; 220 221 if (buf[0] != (CXUSB_BT656_COMMON)[1] || 222 buf[1] != (CXUSB_BT656_COMMON)[2]) 223 goto normal_sample; 224 225 if (bt656->line != 0 && (!!firstfield != 226 ((buf[2] & CXUSB_FIELD_MASK) 227== CXUSB_FIELD_1))) { 228 if (bt656->fmode == LINE_SAMPLES) { 229 cxusb_vprintk(dvbdev, BT656, 230"field %c after line %u field change\n", 231firstfield ? '1' : '2', 232bt656->line); 233 234 if (bt656->buf != NULL && 235 maxlinesamples - 236 bt656->linesamples > 0) { 237 238 memset(bt656->buf, 0, 239 maxlinesamples - 240 bt656->linesamples); 241 242 bt656->buf += 243 maxlinesamples - 244 bt656->linesamples; 245 246 cxusb_vprintk(dvbdev, BT656, 247"field %c line %u %u samples still remaining (of %u)\n", 248 firstfield ? 249'1' : '2', 250 bt656->line, 251 maxlinesamples - 252bt656-> 253 linesamples, 254 maxlinesamples); 255 } 256 257 bt656->line++; 258 } 259 260 if (maxlines - bt656->line > 0 && 261 bt656->buf != NULL) { 262 memset(bt656->buf, 0, 263 (maxlines - bt656->line) 264 * maxlinesamples); 265 266 bt656->buf += 267 (maxlines - bt656->line) 268 * maxlinesamples; 269 270 cxusb_vprintk(dvbdev, BT656, 271
Re: [PATCH 5/5] [media] cxusb: add analog mode support for Medion MD95700
Hi Maciej, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.13-rc4 next-20170811] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Maciej-S-Szmigiero/Add-analog-mode-support-for-Medion-MD95700/20170813-041742 base: git://linuxtv.org/media_tree.git master config: ia64-allyesconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=ia64 All warnings (new ones prefixed by >>): In file included from include/linux/list.h:8:0, from include/linux/kobject.h:20, from include/linux/device.h:17, from drivers/media//usb/dvb-usb/cxusb-analog.c:19: drivers/media//usb/dvb-usb/cxusb-analog.c: In function 'cxusb_medion_copy_field': include/linux/kernel.h:772:16: warning: comparison of distinct pointer types lacks a cast (void) ( == ); \ ^ include/linux/kernel.h:761:2: note: in definition of macro '__min' t2 min2 = (y); \ ^~ >> drivers/media//usb/dvb-usb/cxusb-analog.c:359:27: note: in expansion of >> macro 'min' unsigned int tocheck = min(sizeof(buf), ^~~ include/linux/kernel.h:775:2: note: in expansion of macro '__max' __max(typeof(x), typeof(y), \ ^ >> drivers/media//usb/dvb-usb/cxusb-analog.c:360:10: note: in expansion of >> macro 'max' max(sizeof(buf), ^~~ include/linux/kernel.h:772:16: warning: comparison of distinct pointer types lacks a cast (void) ( == ); \ ^ include/linux/kernel.h:761:13: note: in definition of macro '__min' t2 min2 = (y); \ ^ >> drivers/media//usb/dvb-usb/cxusb-analog.c:359:27: note: in expansion of >> macro 'min' unsigned int tocheck = min(sizeof(buf), ^~~ include/linux/kernel.h:775:2: note: in expansion of macro '__max' __max(typeof(x), typeof(y), \ ^ >> drivers/media//usb/dvb-usb/cxusb-analog.c:360:10: note: in expansion of >> macro 'max' max(sizeof(buf), ^~~ vim +/min +359 drivers/media//usb/dvb-usb/cxusb-analog.c 198 199 static bool cxusb_medion_copy_field(struct dvb_usb_device *dvbdev, 200 struct cxusb_medion_auxbuf *auxbuf, 201 struct cxusb_bt656_params *bt656, 202 bool firstfield, 203 unsigned int maxlines, 204 unsigned int maxlinesamples) 205 { 206 while (bt656->line < maxlines && 207 !cxusb_auxbuf_isend(auxbuf, bt656->pos)) { 208 209 unsigned char val; 210 211 if (!cxusb_auxbuf_copy(auxbuf, bt656->pos, , 1)) 212 return false; 213 214 if ((char)val == CXUSB_BT656_COMMON[0]) { 215 char buf[3]; 216 217 if (!cxusb_auxbuf_copy(auxbuf, bt656->pos + 1, 218 buf, 3)) 219 return false; 220 221 if (buf[0] != (CXUSB_BT656_COMMON)[1] || 222 buf[1] != (CXUSB_BT656_COMMON)[2]) 223 goto normal_sample; 224 225 if (bt656->line != 0 && (!!firstfield != 226 ((buf[2] & CXUSB_FIELD_MASK) 227== CXUSB_FIELD_1))) { 228 if (bt656->fmode == LINE_SAMPLES) { 229 cxusb_vprintk(dvbdev, BT656, 230"field %c after line %u field change\n", 231firstfield ? '1' : '2', 232bt656->line); 233 234 if (bt656->buf != NULL && 235 maxlinesamples - 236 bt656->linesamples > 0) { 237 238 memset(bt656->buf, 0, 239 maxlinesamples - 240 bt656->linesamples); 241 242
[linux-next:master 1629/4912] drivers/media/i2c/ov5670.c:1917:5: error: implicit declaration of function 'v4l2_subdev_get_try_format'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 50107a90cb05a474eeb8f41f5cc5fa5a8644de2e commit: 5de35c9b8dcd10dcedba2917e2ab4c1f3ca28dc6 [1629/4912] media: i2c: Add Omnivision OV5670 5M sensor support config: x86_64-randconfig-ws0-08070305 (attached as .config) compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4 reproduce: git checkout 5de35c9b8dcd10dcedba2917e2ab4c1f3ca28dc6 # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/media/i2c/ov5670.c: In function 'ov5670_open': >> drivers/media/i2c/ov5670.c:1917:5: error: implicit declaration of function >> 'v4l2_subdev_get_try_format' [-Werror=implicit-function-declaration] v4l2_subdev_get_try_format(sd, fh->pad, 0); ^ >> drivers/media/i2c/ov5670.c:1917:38: error: 'struct v4l2_subdev_fh' has no >> member named 'pad' v4l2_subdev_get_try_format(sd, fh->pad, 0); ^ drivers/media/i2c/ov5670.c: In function 'ov5670_do_get_pad_format': >> drivers/media/i2c/ov5670.c:2198:17: error: invalid type argument of unary >> '*' (have 'int') fmt->format = *v4l2_subdev_get_try_format(>sd, cfg, ^ drivers/media/i2c/ov5670.c: In function 'ov5670_set_pad_format': drivers/media/i2c/ov5670.c:2236:3: error: invalid type argument of unary '*' (have 'int') *v4l2_subdev_get_try_format(sd, cfg, fmt->pad) = fmt->format; ^ drivers/media/i2c/ov5670.c: At top level: drivers/media/i2c/ov5670.c:2444:19: error: 'v4l2_subdev_link_validate' undeclared here (not in a function) .link_validate = v4l2_subdev_link_validate, ^ drivers/media/i2c/ov5670.c: In function 'ov5670_probe': drivers/media/i2c/ov5670.c:2492:12: error: 'struct v4l2_subdev' has no member named 'entity' ov5670->sd.entity.ops = _subdev_entity_ops; ^ drivers/media/i2c/ov5670.c:2493:12: error: 'struct v4l2_subdev' has no member named 'entity' ov5670->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; ^ drivers/media/i2c/ov5670.c:2497:42: error: 'struct v4l2_subdev' has no member named 'entity' ret = media_entity_pads_init(>sd.entity, 1, >pad); ^ drivers/media/i2c/ov5670.c:2524:34: error: 'struct v4l2_subdev' has no member named 'entity' media_entity_cleanup(>sd.entity); ^ drivers/media/i2c/ov5670.c: In function 'ov5670_remove': drivers/media/i2c/ov5670.c:2544:26: error: 'struct v4l2_subdev' has no member named 'entity' media_entity_cleanup(>entity); ^ cc1: some warnings being treated as errors vim +/v4l2_subdev_get_try_format +1917 drivers/media/i2c/ov5670.c 1911 1912 /* Open sub-device */ 1913 static int ov5670_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) 1914 { 1915 struct ov5670 *ov5670 = to_ov5670(sd); 1916 struct v4l2_mbus_framefmt *try_fmt = > 1917 v4l2_subdev_get_try_format(sd, fh->pad, > 0); 1918 1919 mutex_lock(>mutex); 1920 1921 /* Initialize try_fmt */ 1922 try_fmt->width = ov5670->cur_mode->width; 1923 try_fmt->height = ov5670->cur_mode->height; 1924 try_fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10; 1925 try_fmt->field = V4L2_FIELD_NONE; 1926 1927 /* No crop or compose */ 1928 mutex_unlock(>mutex); 1929 1930 return 0; 1931 } 1932 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[linux-next:master 1328/4912] drivers/media/cec/cec-adap.c:167: error: unknown field 'lost_msgs' specified in initializer
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 50107a90cb05a474eeb8f41f5cc5fa5a8644de2e commit: 6b2bbb08747a56dcf4ee33606a06025eca571260 [1328/4912] media: cec: rework the cec event handling config: x86_64-randconfig-b0-08061813 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: git checkout 6b2bbb08747a56dcf4ee33606a06025eca571260 # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/media/cec/cec-adap.c: In function 'cec_queue_msg_fh': >> drivers/media/cec/cec-adap.c:167: error: unknown field 'lost_msgs' specified >> in initializer vim +/lost_msgs +167 drivers/media/cec/cec-adap.c 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 155 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 156 /* 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 157 * Queue a new message for this filehandle. 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 158 * 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 159 * We keep a queue of at most CEC_MAX_MSG_RX_QUEUE_SZ messages. If the 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 160 * queue becomes full, then drop the oldest message and keep track 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 161 * of how many messages we've dropped. 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 162 */ 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 163 static void cec_queue_msg_fh(struct cec_fh *fh, const struct cec_msg *msg) 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 164 { 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 165 static const struct cec_event ev_lost_msgs = { 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 166 .event = CEC_EVENT_LOST_MSGS, 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 @167 .lost_msgs.lost_msgs = 1, 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 168 }; 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 169 struct cec_msg_entry *entry; 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 170 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 171 mutex_lock(>lock); 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 172 entry = kmalloc(sizeof(*entry), GFP_KERNEL); 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 173 if (entry) { 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 174 entry->msg = *msg; 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 175 /* Add new msg at the end of the queue */ 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 176 list_add_tail(>list, >msgs); 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 177 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 178 if (fh->queued_msgs < CEC_MAX_MSG_RX_QUEUE_SZ) { 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 179 /* All is fine if there is enough room */ 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 180 fh->queued_msgs++; 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 181 mutex_unlock(>lock); 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 182 wake_up_interruptible(>wait); 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 183 return; 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 184 } 9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 185 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 186 /* 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 187 * if the message queue is full, then drop the oldest one and 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 188 * send a lost message event. 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 189 */ 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 190 entry = list_first_entry(>msgs, struct cec_msg_entry, list); 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 191 list_del(>list); 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil 2017-07-11 192 kfree(entry); 6b2bbb08 drivers/media/cec/cec-adap.c Hans Verkuil
Re: [PATCH] Staging: bcm2048: fix bare use of 'unsigned' in radio-bcm2048.c
Hi Branislav, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.13-rc3 next-20170803] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Branislav-Radocaj/Staging-bcm2048-fix-bare-use-of-unsigned-in-radio-bcm2048-c/20170804-105008 base: git://linuxtv.org/media_tree.git master config: xtensa-allmodconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=xtensa All error/warnings (new ones prefixed by >>): drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_power_state_write': >> drivers/staging/media/bcm2048/radio-bcm2048.c:2030:50: error: two or more >> data types in declaration specifiers DEFINE_SYSFS_PROPERTY(power_state, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c:1950:2: note: in definition of macro 'property_write' type value; \ ^ >> drivers/staging/media/bcm2048/radio-bcm2048.c:2030:1: note: in expansion of >> macro 'DEFINE_SYSFS_PROPERTY' DEFINE_SYSFS_PROPERTY(power_state, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_mute_write': drivers/staging/media/bcm2048/radio-bcm2048.c:2031:43: error: two or more data types in declaration specifiers DEFINE_SYSFS_PROPERTY(mute, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c:1950:2: note: in definition of macro 'property_write' type value; \ ^ drivers/staging/media/bcm2048/radio-bcm2048.c:2031:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY' DEFINE_SYSFS_PROPERTY(mute, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_audio_route_write': drivers/staging/media/bcm2048/radio-bcm2048.c:2032:50: error: two or more data types in declaration specifiers DEFINE_SYSFS_PROPERTY(audio_route, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c:1950:2: note: in definition of macro 'property_write' type value; \ ^ drivers/staging/media/bcm2048/radio-bcm2048.c:2032:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY' DEFINE_SYSFS_PROPERTY(audio_route, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_dac_output_write': drivers/staging/media/bcm2048/radio-bcm2048.c:2033:49: error: two or more data types in declaration specifiers DEFINE_SYSFS_PROPERTY(dac_output, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c:1950:2: note: in definition of macro 'property_write' type value; \ ^ drivers/staging/media/bcm2048/radio-bcm2048.c:2033:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY' DEFINE_SYSFS_PROPERTY(dac_output, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_fm_hi_lo_injection_write': drivers/staging/media/bcm2048/radio-bcm2048.c:2035:57: error: two or more data types in declaration specifiers DEFINE_SYSFS_PROPERTY(fm_hi_lo_injection, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c:1950:2: note: in definition of macro 'property_write' type value; \ ^ drivers/staging/media/bcm2048/radio-bcm2048.c:2035:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY' DEFINE_SYSFS_PROPERTY(fm_hi_lo_injection, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_fm_frequency_write': drivers/staging/media/bcm2048/radio-bcm2048.c:2036:51: error: two or more data types in declaration specifiers DEFINE_SYSFS_PROPERTY(fm_frequency, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c:1950:2: note: in definition of macro 'property_write' type value; \ ^ drivers/staging/media/bcm2048/radio-bcm2048.c:2036:1: note: in expansion of macro 'DEFINE_SYSFS_PROPERTY' DEFINE_SYSFS_PROPERTY(fm_frequency, unsigned int, int, "%u", 0) ^ drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_fm_af_frequency_write': drivers/staging/media/bcm2048/radio-bcm2048.c:2037:54: error: two or more data types in declaration specifiers DEFINE_SYSFS_PROPERTY(fm_af_frequency, unsigned int, int, "%u", 0)
Re: [PATCH v6] rockchip/rga: v4l2 m2m support
Hi Jacob, [auto build test WARNING on rockchip/for-next] [also build test WARNING on v4.13-rc3 next-20170803] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jacob-Chen/rockchip-rga-v4l2-m2m-support/20170802-235943 base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) vim +/case +159 drivers/media/platform/rockchip-rga/rga.c 150 151 static int rga_s_ctrl(struct v4l2_ctrl *ctrl) 152 { 153 struct rga_ctx *ctx = container_of(ctrl->handler, struct rga_ctx, 154 ctrl_handler); 155 unsigned long flags; 156 157 spin_lock_irqsave(>rga->ctrl_lock, flags); 158 switch (ctrl->id) { > 159 case V4L2_CID_PORTER_DUFF_MODE: 160 ctx->op = ctrl->val; 161 break; 162 case V4L2_CID_HFLIP: 163 ctx->hflip = ctrl->val; 164 break; 165 case V4L2_CID_VFLIP: 166 ctx->vflip = ctrl->val; 167 break; 168 case V4L2_CID_ROTATE: 169 ctx->rotate = ctrl->val; 170 break; 171 case V4L2_CID_BG_COLOR: 172 ctx->fill_color = ctrl->val; 173 break; 174 } 175 spin_unlock_irqrestore(>rga->ctrl_lock, flags); 176 return 0; 177 } 178 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Re: [PATCH 5/6 v5] uvcvideo: send a control event when a Control Change interrupt arrives
Hi Guennadi, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.13-rc2 next-20170728] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Guennadi-Liakhovetski/UVC-fix-queue_setup-to-check-the-number-of-planes/20170730-123108 base: git://linuxtv.org/media_tree.git master coccinelle warnings: (new ones prefixed by >>) >> drivers/media/usb/uvc/uvc_ctrl.c:1327:2-7: WARNING: NULL check before >> freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or >> usb_free_urb is not needed. Maybe consider reorganizing relevant code to >> avoid passing NULL values. Please review and possibly fold the followup patch. --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
[PATCH] uvcvideo: fix ifnullfree.cocci warnings
drivers/media/usb/uvc/uvc_ctrl.c:1327:2-7: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganizing relevant code to avoid passing NULL values. NULL check before some freeing functions is not needed. Based on checkpatch warning "kfree(NULL) is safe this check is probably not required" and kfreeaddr.cocci by Julia Lawall. Generated by: scripts/coccinelle/free/ifnullfree.cocci Fixes: c698cbbd35da ("uvcvideo: send a control event when a Control Change interrupt arrives") CC: Guennadi LiakhovetskiSigned-off-by: Fengguang Wu --- uvc_ctrl.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/media/usb/uvc/uvc_ctrl.c +++ b/drivers/media/usb/uvc/uvc_ctrl.c @@ -1322,9 +1322,8 @@ void uvc_ctrl_status_event(struct uvc_de return; spin_lock(>lock); - if (w->data) /* A previous event work hasn't run yet, we lose 1 event */ - kfree(w->data); + kfree(w->data); w->data = kmalloc(len, GFP_ATOMIC); if (w->data) {
Re: [PATCH v1 5/5] [media] stm32-dcmi: g_/s_selection crop support
Hi Hugues, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.13-rc2 next-20170728] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Hugues-Fruchet/STM32-DCMI-camera-interface-crop-support/20170730-114803 base: git://linuxtv.org/media_tree.git master config: powerpc-allmodconfig (attached as .config) compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=powerpc Note: it may well be a FALSE warning. FWIW you are at least aware of it now. http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings All warnings (new ones prefixed by >>): drivers/media//platform/stm32/stm32-dcmi.c: In function 'dcmi_graph_notify_complete': >> drivers/media//platform/stm32/stm32-dcmi.c:1445:5: warning: 'ret' may be >> used uninitialized in this function [-Wmaybe-uninitialized] if (ret) { ^ vim +/ret +1445 drivers/media//platform/stm32/stm32-dcmi.c 1431 1432 static int dcmi_graph_notify_complete(struct v4l2_async_notifier *notifier) 1433 { 1434 struct stm32_dcmi *dcmi = notifier_to_dcmi(notifier); 1435 int ret; 1436 1437 dcmi->vdev->ctrl_handler = dcmi->entity.subdev->ctrl_handler; 1438 ret = dcmi_formats_init(dcmi); 1439 if (ret) { 1440 dev_err(dcmi->dev, "No supported mediabus format found\n"); 1441 return ret; 1442 } 1443 1444 ret = dcmi_framesizes_init(dcmi); > 1445 if (ret) { 1446 dev_err(dcmi->dev, "Could not initialize framesizes\n"); 1447 return ret; 1448 } 1449 1450 ret = dcmi_get_sensor_bounds(dcmi, >sd_bounds); 1451 if (ret) { 1452 dev_err(dcmi->dev, "Could not get sensor bounds\n"); 1453 return ret; 1454 } 1455 1456 ret = dcmi_set_default_fmt(dcmi); 1457 if (ret) { 1458 dev_err(dcmi->dev, "Could not set default format\n"); 1459 return ret; 1460 } 1461 1462 ret = video_register_device(dcmi->vdev, VFL_TYPE_GRABBER, -1); 1463 if (ret) { 1464 dev_err(dcmi->dev, "Failed to register video device\n"); 1465 return ret; 1466 } 1467 1468 dev_dbg(dcmi->dev, "Device registered as %s\n", 1469 video_device_node_name(dcmi->vdev)); 1470 return 0; 1471 } 1472 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH RESEND 03/14] [media] ddbridge: bump ddbridge code to version 0.9.29
Hi Daniel, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20170727] [cannot apply to v4.13-rc2] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Daniel-Scheller/ddbridge-bump-to-ddbridge-0-9-29/20170725-074332 base: git://linuxtv.org/media_tree.git master config: x86_64-randconfig-b0-07280453 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/infiniband/hw/hfi1/qsfp.o: In function `i2c_write': >> qsfp.c:(.text+0x780): multiple definition of `i2c_write' drivers/media/pci/ddbridge/ddbridge-i2c.o:ddbridge-i2c.c:(.text+0x7c0): first defined here drivers/infiniband/hw/hfi1/qsfp.o: In function `i2c_read': qsfp.c:(.text+0x1110): multiple definition of `i2c_read' drivers/media/pci/ddbridge/ddbridge-i2c.o:ddbridge-i2c.c:(.text+0x780): first defined here --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH RESEND 02/14] [media] ddbridge: split code into multiple files
Hi Daniel, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20170727] [cannot apply to v4.13-rc2] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Daniel-Scheller/ddbridge-bump-to-ddbridge-0-9-29/20170725-074332 base: git://linuxtv.org/media_tree.git master config: x86_64-randconfig-b0-07280453 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/infiniband/hw/hfi1/qsfp.o: In function `i2c_read': >> qsfp.c:(.text+0x1110): multiple definition of `i2c_read' drivers/media/pci/ddbridge/ddbridge-i2c.o:ddbridge-i2c.c:(.text+0x620): first defined here --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[ragnatech:media-tree] BUILD SUCCESS da48c948c263c9d87dfc64566b3373a858cc8aa2
git://git.ragnatech.se/linux media-tree da48c948c263c9d87dfc64566b3373a858cc8aa2 media: fix warning on v4l2_subdev_call() result interpreted as bool elapsed time: 1130m configs tested: 153 The following configs have been built successfully. More configs may be tested in the coming days. x86_64 allmodconfig sh allmodconfig shtitan_defconfig sh rsk7269_defconfig sh sh7785lcr_32bit_defconfig shallnoconfig x86_64 randconfig-a0-07271829 i386 tinyconfig cris etrax-100lx_v2_defconfig blackfin TCM-BF537_defconfig blackfinBF561-EZKIT-SMP_defconfig blackfinBF533-EZKIT_defconfig blackfinBF526-EZBRD_defconfig ia64 allnoconfig ia64defconfig ia64 alldefconfig i386 randconfig-x019-201730 i386 randconfig-x013-201730 i386 randconfig-x016-201730 i386 randconfig-x012-201730 i386 randconfig-x018-201730 i386 randconfig-x010-201730 i386 randconfig-x015-201730 i386 randconfig-x011-201730 i386 randconfig-x017-201730 i386 randconfig-x014-201730 microblaze mmu_defconfig microblazenommu_defconfig i386 randconfig-n0-07241914 x86_64 randconfig-x007-201730 x86_64 randconfig-x001-201730 x86_64 randconfig-x000-201730 x86_64 randconfig-x006-201730 x86_64 randconfig-x003-201730 x86_64 randconfig-x004-201730 x86_64 randconfig-x009-201730 x86_64 randconfig-x005-201730 x86_64 randconfig-x008-201730 x86_64 randconfig-x002-201730 x86_64 kexec x86_64 rhel x86_64 rhel-7.2 c6xevmc6678_defconfig xtensa common_defconfig m32r m32104ut_defconfig score spct6600_defconfig xtensa iss_defconfig m32r opsput_defconfig m32r usrv_defconfig m32r mappi3.smp_defconfig nios2 10m50_defconfig h8300h8300h-sim_defconfig powerpc defconfig s390default_defconfig powerpc ppc64_defconfig powerpc allnoconfig x86_64 randconfig-x016-201730 x86_64 randconfig-x011-201730 x86_64 randconfig-x019-201730 x86_64 randconfig-x014-201730 x86_64 randconfig-x012-201730 x86_64 randconfig-x013-201730 x86_64 randconfig-x018-201730 x86_64 randconfig-x015-201730 x86_64 randconfig-x010-201730 x86_64 randconfig-x017-201730 arm omap2plus_defconfig armsa1100 arm allmodconfig arm samsung armmvebu_v7_defconfig arm ixp4xx_defconfig arm imx_v6_v7_defconfig arm64allmodconfig arm tegra_defconfig arm arm5 arm64alldefconfig armsh arm arm67 i386 randconfig-a0-201730 i386 randconfig-a1-201730 i386 randconfig-s0-07240817 i386 randconfig-s1-07240817 x86_64 randconfig-i0-07231502 i386 randconfig-i0-07240017 i386 randconfig-i1-07240017 sparc defconfig sparc64 allnoconfig sparc64 defconfig armkeystone_defconfig blackfin CM-BF561_defconfig shecovec24-romimage_defconfig blackfinBF538-EZKIT_defconfig tiledefconfig x86_64lkp i386 allmodconfig m68k sun3_defconfig m68k multi_defconfig m68k m5475evb_defconfig pariscc3000_defconfig parisc b180_defconfig parisc defconfig alpha
Re: [PATCH v3] [media] v4l2: Add support for go2001 PCI codec driver
Hi Thierry, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.13-rc2 next-20170726] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Thierry-Escande/v4l2-Add-support-for-go2001-PCI-codec-driver/20170727-033126 base: git://linuxtv.org/media_tree.git master config: i386-allyesconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/media/pci/go2001/go2001_driver.c: In function 'go2001_buf_init': >> drivers/media/pci/go2001/go2001_driver.c:274:32: warning: format '%zu' >> expects argument of type 'size_t', but argument 6 has type 'long unsigned >> int' [-Wformat=] go2001_err(gdev, "Plane address/size not aligned %d/%zu\n", ^~~~ vim +274 drivers/media/pci/go2001/go2001_driver.c 240 241 static int go2001_buf_init(struct vb2_buffer *vb) 242 { 243 struct go2001_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); 244 struct go2001_dev *gdev = ctx->gdev; 245 struct device *dev = >pdev->dev; 246 struct go2001_buffer *gbuf = vb_to_go2001_buf(vb); 247 struct go2001_dma_desc *dma_desc; 248 struct go2001_mmap_list_entry *mmap_list; 249 enum dma_data_direction dir; 250 struct scatterlist *sg; 251 struct sg_table *sgt; 252 u64 dma_addr; 253 u32 dma_len; 254 int plane, sgi; 255 int ret; 256 257 go2001_trace(gdev); 258 259 if (WARN_ON(gbuf->mapped)) 260 return -EINVAL; 261 262 dir = V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type) ? 263DMA_TO_DEVICE : 264DMA_FROM_DEVICE; 265 266 for (plane = 0; plane < vb->num_planes; ++plane) { 267 dma_desc = >dma_desc[plane]; 268 WARN_ON(!IS_ALIGNED(dma_desc->map_addr, 16)); 269 270 sgt = vb2_dma_sg_plane_desc(vb, plane); 271 272 if (!IS_ALIGNED(sgt->sgl->offset, 8) || 273 !IS_ALIGNED(vb2_plane_size(vb, plane), 8)) { > 274 go2001_err(gdev, "Plane address/size not > aligned %d/%zu\n", 275 sgt->sgl->offset, vb2_plane_size(vb, plane)); 276 277 ret = -EINVAL; 278 goto err; 279 } 280 281 dma_desc->num_entries = sgt->nents; 282 dma_desc->list_size = dma_desc->num_entries * 283sizeof(struct go2001_mmap_list_entry); 284 dma_desc->mmap_list = dma_alloc_coherent(dev, 285 dma_desc->list_size, 286 _desc->dma_addr, 287 GFP_KERNEL); 288 if (!dma_desc->mmap_list) { 289 go2001_err(gdev, "Failed allocating HW memory map\n"); 290 291 ret = -ENOMEM; 292 goto err; 293 } 294 295 go2001_dbg(gdev, 3, "Plane %d: mmap list size: %zu\n", plane, 296 dma_desc->list_size); 297 298 mmap_list = dma_desc->mmap_list; 299 for_each_sg(sgt->sgl, sg, dma_desc->num_entries, sgi) { 300 dma_addr = sg_dma_address(sg); 301 dma_len = sg_dma_len(sg); 302 303 mmap_list[sgi].dma_addr = cpu_to_le64(dma_addr); 304 mmap_list[sgi].size = cpu_to_le32(dma_len); 305 306 go2001_dbg(gdev, 4, "Chunk %d: 0x%08llx, size %d\n", 307 sgi, dma_addr, dma_len); 308 } 309 } 310 311 ret = go2001_map_buffer(ctx, gbuf); 312 if (ret) { 313 go2001_err(ctx->gdev, "Failed mapping buffer in HW\n"); 314 goto err; 315 } 316 317 return 0; 318 319 err: 320 for (; plane > 0; --plane) { 321 dma_desc = >dma_desc[plane - 1]; 322 dma_free_coherent(dev, dma_desc->list_size, dma_desc->mmap_list, 323dma_desc->dma_addr); 324 memset(dma_desc, 0, sizeof(struct go2001_dma_desc)); 325 } 326 327 return ret; 328 } 329
Re: [PATCH] dvb_frontend: initialize variable s with FE_NONE instead of 0
Hi Colin, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.13-rc1 next-20170721] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Colin-King/dvb_frontend-initialize-variable-s-with-FE_NONE-instead-of-0/20170724-063439 base: git://linuxtv.org/media_tree.git master config: i386-randconfig-x019-201730 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): drivers/media/dvb-core/dvb_frontend.c: In function 'dvb_frontend_swzigzag': >> drivers/media/dvb-core/dvb_frontend.c:463:21: error: 'FE_NONE' undeclared >> (first use in this function) enum fe_status s = FE_NONE; ^~~ drivers/media/dvb-core/dvb_frontend.c:463:21: note: each undeclared identifier is reported only once for each function it appears in vim +/FE_NONE +463 drivers/media/dvb-core/dvb_frontend.c 460 461 static void dvb_frontend_swzigzag(struct dvb_frontend *fe) 462 { > 463 enum fe_status s = FE_NONE; 464 int retval = 0; 465 struct dvb_frontend_private *fepriv = fe->frontend_priv; 466 struct dtv_frontend_properties *c = >dtv_property_cache, tmp; 467 468 /* if we've got no parameters, just keep idling */ 469 if (fepriv->state & FESTATE_IDLE) { 470 fepriv->delay = 3*HZ; 471 fepriv->quality = 0; 472 return; 473 } 474 475 /* in SCAN mode, we just set the frontend when asked and leave it alone */ 476 if (fepriv->tune_mode_flags & FE_TUNE_MODE_ONESHOT) { 477 if (fepriv->state & FESTATE_RETUNE) { 478 tmp = *c; 479 if (fe->ops.set_frontend) 480 retval = fe->ops.set_frontend(fe); 481 *c = tmp; 482 if (retval < 0) 483 fepriv->state = FESTATE_ERROR; 484 else 485 fepriv->state = FESTATE_TUNED; 486 } 487 fepriv->delay = 3*HZ; 488 fepriv->quality = 0; 489 return; 490 } 491 492 /* get the frontend status */ 493 if (fepriv->state & FESTATE_RETUNE) { 494 s = 0; 495 } else { 496 if (fe->ops.read_status) 497 fe->ops.read_status(fe, ); 498 if (s != fepriv->status) { 499 dvb_frontend_add_event(fe, s); 500 fepriv->status = s; 501 } 502 } 503 504 /* if we're not tuned, and we have a lock, move to the TUNED state */ 505 if ((fepriv->state & FESTATE_WAITFORLOCK) && (s & FE_HAS_LOCK)) { 506 dvb_frontend_swzigzag_update_delay(fepriv, s & FE_HAS_LOCK); 507 fepriv->state = FESTATE_TUNED; 508 509 /* if we're tuned, then we have determined the correct inversion */ 510 if ((!(fe->ops.info.caps & FE_CAN_INVERSION_AUTO)) && 511 (c->inversion == INVERSION_AUTO)) { 512 c->inversion = fepriv->inversion; 513 } 514 return; 515 } 516 517 /* if we are tuned already, check we're still locked */ 518 if (fepriv->state & FESTATE_TUNED) { 519 dvb_frontend_swzigzag_update_delay(fepriv, s & FE_HAS_LOCK); 520 521 /* we're tuned, and the lock is still good... */ 522 if (s & FE_HAS_LOCK) { 523 return; 524 } else { /* if we _WERE_ tuned, but now don't have a lock */ 525 fepriv->state = FESTATE_ZIGZAG_FAST; 526 fepriv->started_auto_step = fepriv->auto_step; 527 fepriv->check_wrapped = 0; 528 } 529 } 530 531 /* don't actually do anything if we're in the LOSTLOCK state, 532 * the frontend is set to FE_CAN_RECOVER, and the max_drift is 0 */ 533 if ((fepriv->state & FESTATE_LOSTLOCK) && 534 (fe->ops.info.caps & FE_CAN_RECOVER) && (fepriv->max_drift == 0)) { 535 dvb_frontend_swzigzag_update_delay(fepriv, s & FE_HAS_LOCK); 536 return; 537 } 538 539 /* don't do anything if we're in the DISEQC state, since this 540 * might be
Re: [PATCH v2 2/2] v4l: cadence: Add Cadence MIPI-CSI2 RX driver
Hi Maxime, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.13-rc1 next-20170721] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Maxime-Ripard/media-v4l-Add-support-for-the-Cadence-MIPI-CSI2-RX/20170723-083419 base: git://linuxtv.org/media_tree.git master config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=ia64 All error/warnings (new ones prefixed by >>): drivers/media/platform/cadence/cdns-csi2rx.c: In function 'csi2rx_async_bound': >> drivers/media/platform/cadence/cdns-csi2rx.c:169:31: error: implicit >> declaration of function 'subnotifier_to_v4l2_subdev' >> [-Werror=implicit-function-declaration] struct v4l2_subdev *subdev = subnotifier_to_v4l2_subdev(notifier); ^~ >> drivers/media/platform/cadence/cdns-csi2rx.c:169:31: warning: initialization >> makes pointer from integer without a cast [-Wint-conversion] drivers/media/platform/cadence/cdns-csi2rx.c: In function 'csi2rx_async_complete': drivers/media/platform/cadence/cdns-csi2rx.c:191:31: warning: initialization makes pointer from integer without a cast [-Wint-conversion] struct v4l2_subdev *subdev = subnotifier_to_v4l2_subdev(notifier); ^~ drivers/media/platform/cadence/cdns-csi2rx.c: In function 'csi2rx_async_unbind': drivers/media/platform/cadence/cdns-csi2rx.c:205:31: warning: initialization makes pointer from integer without a cast [-Wint-conversion] struct v4l2_subdev *subdev = subnotifier_to_v4l2_subdev(notifier); ^~ drivers/media/platform/cadence/cdns-csi2rx.c: In function 'csi2rx_parse_dt': >> drivers/media/platform/cadence/cdns-csi2rx.c:324:8: error: implicit >> declaration of function 'v4l2_async_subdev_notifier_register' >> [-Werror=implicit-function-declaration] ret = v4l2_async_subdev_notifier_register(>subdev, 1, subdevs, ^~~ cc1: some warnings being treated as errors vim +/subnotifier_to_v4l2_subdev +169 drivers/media/platform/cadence/cdns-csi2rx.c 164 165 static int csi2rx_async_bound(struct v4l2_async_notifier *notifier, 166struct v4l2_subdev *s_subdev, 167struct v4l2_async_subdev *asd) 168 { > 169 struct v4l2_subdev *subdev = > subnotifier_to_v4l2_subdev(notifier); 170 struct csi2rx_priv *csi2rx = v4l2_subdev_to_csi2rx(subdev); 171 172 csi2rx->sensor_pad = media_entity_get_fwnode_pad(_subdev->entity, 173 >sensor_node->fwnode, 174 MEDIA_PAD_FL_SOURCE); 175 if (csi2rx->sensor_pad < 0) { 176 dev_err(csi2rx->dev, "Couldn't find output pad for subdev %s\n", 177 s_subdev->name); 178 return csi2rx->sensor_pad; 179 } 180 181 csi2rx->sensor_subdev = s_subdev; 182 183 dev_dbg(csi2rx->dev, "Bound %s pad: %d\n", s_subdev->name, 184 csi2rx->sensor_pad); 185 186 return 0; 187 } 188 189 static int csi2rx_async_complete(struct v4l2_async_notifier *notifier) 190 { > 191 struct v4l2_subdev *subdev = > subnotifier_to_v4l2_subdev(notifier); 192 struct csi2rx_priv *csi2rx = v4l2_subdev_to_csi2rx(subdev); 193 194 return media_create_pad_link(>sensor_subdev->entity, 195 csi2rx->sensor_pad, 196 >subdev.entity, 0, 197 MEDIA_LNK_FL_ENABLED | 198 MEDIA_LNK_FL_IMMUTABLE); 199 } 200 201 static void csi2rx_async_unbind(struct v4l2_async_notifier *notifier, 202 struct v4l2_subdev *s_subdev, 203 struct v4l2_async_subdev *asd) 204 { 205 struct v4l2_subdev *subdev = subnotifier_to_v4l2_subdev(notifier); 206 struct csi2rx_priv *csi2rx = v4l2_subdev_to_csi2rx(subdev); 207 208 dev_dbg(csi2rx->dev, "Unbound %s pad: %d\n", s_subdev->name, 209 csi2rx->sensor_pad); 210 211 csi2rx->sensor_subdev = NULL; 212 csi2rx->sensor_pad = -EINVAL; 213 } 214 215 static int csi2rx_get_resources(struct
[ragnatech:media-tree] BUILD INCOMPLETE 8d935787d38f1c2bf689f64ecfe4581e05e5fe55
git://git.ragnatech.se/linux media-tree 8d935787d38f1c2bf689f64ecfe4581e05e5fe55 media: MAINTAINERS: Add ADV748x driver TIMEOUT after 1125m Sorry we cannot finish the testset for your branch within a reasonable time. It's our fault -- either some build server is down or some build worker is busy doing bisects for _other_ trees. The branch will get more complete coverage and possible error reports when our build infrastructure is restored or catches up. There will be no more build success notification for this branch head, but you can expect reasonably good test coverage after waiting for 1 day. configs tested: 154 pariscc3000_defconfig parisc b180_defconfig parisc defconfig alpha defconfig pariscallnoconfig arm64 defconfig powerpc makalu_defconfig sh ap325rxa_defconfig x86_64 randconfig-a0-07201854 blackfindefconfig ia64defconfig mipsdefconfig i386 randconfig-c0-07201940 i386 randconfig-x010-07201658 i386 randconfig-x011-07201658 i386 randconfig-x012-07201658 i386 randconfig-x013-07201658 i386 randconfig-x014-07201658 i386 randconfig-x015-07201658 i386 randconfig-x016-07201658 i386 randconfig-x017-07201658 i386 randconfig-x018-07201658 i386 randconfig-x019-07201658 x86_64lkp microblaze mmu_defconfig microblazenommu_defconfig x86_64 randconfig-x005-07201609 x86_64 randconfig-x000-07201609 x86_64 randconfig-x004-07201609 x86_64 randconfig-x003-07201609 x86_64 randconfig-x002-07201609 x86_64 randconfig-x008-07201609 x86_64 randconfig-x006-07201609 x86_64 randconfig-x009-07201609 x86_64 randconfig-x007-07201609 x86_64 randconfig-x001-07201609 ia64 allnoconfig ia64 alldefconfig x86_64 kexec x86_64 rhel x86_64 rhel-7.2 powerpc allnoconfig powerpc defconfig powerpc ppc64_defconfig s390default_defconfig i386 allyesconfig arm allmodconfig arm arm5 arm arm67 arm imx_v6_v7_defconfig arm ixp4xx_defconfig armmvebu_v7_defconfig arm omap2plus_defconfig armsa1100 arm samsung armsh arm tegra_defconfig arm64alldefconfig arm64allmodconfig i386 randconfig-a0-07201704 i386 randconfig-a1-07201704 x86_64 randconfig-s0-07201906 x86_64 randconfig-s1-07201906 x86_64 randconfig-s2-07201906 x86_64 acpi-redef x86_64 allyesdebian x86_64nfsroot blackfinBF526-EZBRD_defconfig blackfinBF533-EZKIT_defconfig blackfinBF561-EZKIT-SMP_defconfig blackfin TCM-BF537_defconfig cris etrax-100lx_v2_defconfig sh defconfig x86_64 randconfig-x010-07201610 x86_64 randconfig-x011-07201610 x86_64 randconfig-x012-07201610 x86_64 randconfig-x013-07201610 x86_64 randconfig-x014-07201610 x86_64 randconfig-x015-07201610 x86_64 randconfig-x016-07201610 x86_64 randconfig-x017-07201610 x86_64 randconfig-x018-07201610 x86_64 randconfig-x019-07201610 i386 alldefconfig i386 allnoconfig i386defconfig m68k m5475evb_defconfig m68k multi_defconfig m68k sun3_defconfig i386 randconfig-s0-07201610 i386 randconfig-s1-07201610 x86_64 allmodconfig x86_64 randconfig-s3-07201913 x86_64 randconfig-s4-07201913 x86_64 randconfig-s5-07201913
Re: [PATCH v3 22/23] camss: Use optimal clock frequency rates
Hi Todor, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.13-rc1] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Todor-Tomov/Qualcomm-8x16-Camera-Subsystem-driver/20170718-055348 base: git://linuxtv.org/media_tree.git master config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): ERROR: "__udivdi3" [fs/ufs/ufs.ko] undefined! >> ERROR: "__udivdi3" [drivers/media/platform/qcom/camss-8x16/qcom-camss.ko] >> undefined! ERROR: "__divdi3" [drivers/media/platform/qcom/camss-8x16/qcom-camss.ko] undefined! --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[ragnatech:media-tree] BUILD INCOMPLETE 0e6fd95802e25b2428749703f76ea9d54ea743a3
git://git.ragnatech.se/linux media-tree 0e6fd95802e25b2428749703f76ea9d54ea743a3 media: pulse8-cec/rainshadow-cec: make adapter name unique TIMEOUT after 1429m Sorry we cannot finish the testset for your branch within a reasonable time. It's our fault -- either some build server is down or some build worker is busy doing bisects for _other_ trees. The branch will get more complete coverage and possible error reports when our build infrastructure is restored or catches up. There will be no more build success notification for this branch head, but you can expect reasonably good test coverage after waiting for 1 day. configs timed out: 136 alphaallmodconfig alphaallyesconfig alpha defconfig arm64 allnoconfig arm64 customconfig-0 arm64 customconfig-1 arm64 customconfig-2 arm64 defconfig arm allnoconfig arm at91_dt_defconfig armcustomconfig-0 armcustomconfig-1 armcustomconfig-2 arm efm32_defconfig arm exynos_defconfig armmulti_v5_defconfig armmulti_v7_defconfig armshmobile_defconfig arm sunxi_defconfig blackfin allmodconfig blackfin allyesconfig blackfinBF526-EZBRD_defconfig blackfinBF533-EZKIT_defconfig blackfinBF561-EZKIT-SMP_defconfig blackfin TCM-BF537_defconfig cris allmodconfig cris allyesconfig cris etrax-100lx_v2_defconfig i386 alldefconfig i386 allmodconfig i386 allnoconfig i386 customconfig-0 i386 customconfig-1 i386 customconfig-2 i386defconfig i386randconfig-a0 i386randconfig-a1 i386randconfig-i0 i386randconfig-i1 i386randconfig-n0 i386randconfig-s0 i386randconfig-s1 i386 randconfig-x000 i386 randconfig-x001 i386 randconfig-x002 i386 randconfig-x003 i386 randconfig-x004 i386 randconfig-x005 i386 randconfig-x006 i386 randconfig-x007 i386 randconfig-x008 i386 randconfig-x009 i386 randconfig-x010 i386 randconfig-x011 i386 randconfig-x012 i386 randconfig-x013 i386 randconfig-x014 i386 randconfig-x015 i386 randconfig-x016 i386 randconfig-x017 i386 randconfig-x018 i386 randconfig-x019 ia64 allmodconfig ia64 allyesconfig m68k allmodconfig m68k allyesconfig m68k m5475evb_defconfig m68k multi_defconfig m68k sun3_defconfig mips 32r2_defconfig mips 64r6el_defconfig mips allmodconfig mips allnoconfig mips allyesconfig mips fuloong2e_defconfig mips jz4740 mips malta_kvm_defconfig mips txx9 parisc allmodconfig pariscallnoconfig parisc allyesconfig parisc b180_defconfig pariscc3000_defconfig parisc defconfig powerpc allmodconfig powerpc allnoconfig powerpc allyesconfig powerpc defconfig powerpc ppc64_defconfig s390 allmodconfig s390 allyesconfig s390default_defconfig sh allmodconfig shallnoconfig sh
[ragnatech:media-next] BUILD INCOMPLETE 474dfccf36850818214ce23a77fc2c7cdf8a57cb
git://git.ragnatech.se/linux media-next 474dfccf36850818214ce23a77fc2c7cdf8a57cb media: svg: avoid too long lines TIMEOUT after 1459m Sorry we cannot finish the testset for your branch within a reasonable time. It's our fault -- either some build server is down or some build worker is busy doing bisects for _other_ trees. The branch will get more complete coverage and possible error reports when our build infrastructure is restored or catches up. There will be no more build success notification for this branch head, but you can expect reasonably good test coverage after waiting for 1 day. configs timed out: 131 alphaallmodconfig alphaallyesconfig arm64 allnoconfig arm64 customconfig-0 arm64 customconfig-1 arm64 customconfig-2 arm64 defconfig arm allnoconfig arm at91_dt_defconfig armcustomconfig-0 armcustomconfig-1 armcustomconfig-2 arm efm32_defconfig arm exynos_defconfig armmulti_v5_defconfig armmulti_v7_defconfig arm sunxi_defconfig blackfin allmodconfig blackfin allyesconfig blackfinBF526-EZBRD_defconfig blackfinBF533-EZKIT_defconfig blackfinBF561-EZKIT-SMP_defconfig blackfin TCM-BF537_defconfig cris allmodconfig cris allyesconfig cris etrax-100lx_v2_defconfig i386 alldefconfig i386 allmodconfig i386 allnoconfig i386 customconfig-0 i386 customconfig-1 i386 customconfig-2 i386defconfig i386randconfig-a0 i386randconfig-a1 i386randconfig-i0 i386randconfig-i1 i386randconfig-n0 i386randconfig-s0 i386randconfig-s1 i386 randconfig-x000 i386 randconfig-x001 i386 randconfig-x002 i386 randconfig-x003 i386 randconfig-x004 i386 randconfig-x005 i386 randconfig-x006 i386 randconfig-x007 i386 randconfig-x008 i386 randconfig-x009 i386 randconfig-x010 i386 randconfig-x011 i386 randconfig-x012 i386 randconfig-x013 i386 randconfig-x014 i386 randconfig-x015 i386 randconfig-x016 i386 randconfig-x017 i386 randconfig-x018 i386 randconfig-x019 i386 tinyconfig ia64 allmodconfig ia64 allyesconfig m68k allmodconfig m68k allyesconfig m68k m5475evb_defconfig m68k multi_defconfig m68k sun3_defconfig mips 32r2_defconfig mips 64r6el_defconfig mips allmodconfig mips allnoconfig mips allyesconfig mips fuloong2e_defconfig mips jz4740 mips malta_kvm_defconfig mips txx9 parisc allmodconfig parisc allyesconfig powerpc allmodconfig powerpc allnoconfig powerpc allyesconfig powerpc defconfig powerpc ppc64_defconfig s390 allmodconfig s390 allyesconfig s390default_defconfig sh allmodconfig shallnoconfig sh allyesconfig sh rsk7269_defconfig sh sh7785lcr_32bit_defconfig shtitan_defconfig sparc64 allmodconfig sparc64 allnoconfig
Re: [PATCH v3 13/23] media: camss: Enable building
Hi Todor, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.13-rc1] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Todor-Tomov/Qualcomm-8x16-Camera-Subsystem-driver/20170718-055348 base: git://linuxtv.org/media_tree.git master config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): ERROR: "__udivdi3" [fs/ufs/ufs.ko] undefined! >> ERROR: "__divdi3" [drivers/media/platform/qcom/camss-8x16/qcom-camss.ko] >> undefined! --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[ragnatech:media-tree] BUILD INCOMPLETE a3db9d60a118571e696b684a6e8c692a2b064941
git://git.ragnatech.se/linux media-tree a3db9d60a118571e696b684a6e8c692a2b064941 Merge tag 'v4.13-rc1' into patchwork TIMEOUT after 1349m Sorry we cannot finish the testset for your branch within a reasonable time. It's our fault -- either some build server is down or some build worker is busy doing bisects for _other_ trees. The branch will get more complete coverage and possible error reports when our build infrastructure is restored or catches up. There will be no more build success notification for this branch head, but you can expect reasonably good test coverage after waiting for 1 day. configs timed out: 135 alphaallmodconfig alphaallyesconfig alpha defconfig arm64 allnoconfig arm64 customconfig-0 arm64 customconfig-1 arm64 customconfig-2 arm64 defconfig arm allnoconfig arm at91_dt_defconfig armcustomconfig-0 armcustomconfig-1 armcustomconfig-2 arm efm32_defconfig arm exynos_defconfig armmulti_v5_defconfig armmulti_v7_defconfig armshmobile_defconfig arm sunxi_defconfig blackfin allmodconfig blackfin allyesconfig blackfinBF526-EZBRD_defconfig blackfinBF533-EZKIT_defconfig blackfinBF561-EZKIT-SMP_defconfig blackfin TCM-BF537_defconfig cris allmodconfig cris allyesconfig cris etrax-100lx_v2_defconfig frv defconfig i386 alldefconfig i386 allmodconfig i386 allnoconfig i386 customconfig-0 i386 customconfig-1 i386 customconfig-2 i386defconfig i386randconfig-a0 i386randconfig-a1 i386randconfig-i0 i386randconfig-i1 i386randconfig-n0 i386randconfig-s0 i386randconfig-s1 i386 randconfig-x000 i386 randconfig-x001 i386 randconfig-x002 i386 randconfig-x003 i386 randconfig-x004 i386 randconfig-x005 i386 randconfig-x006 i386 randconfig-x007 i386 randconfig-x008 i386 randconfig-x009 i386 randconfig-x070 i386 randconfig-x071 i386 randconfig-x072 i386 randconfig-x073 i386 randconfig-x074 i386 randconfig-x075 i386 randconfig-x076 i386 randconfig-x077 i386 randconfig-x078 i386 randconfig-x079 ia64 alldefconfig ia64 allmodconfig ia64 allnoconfig ia64 allyesconfig ia64defconfig m68k allmodconfig m68k allyesconfig m68k m5475evb_defconfig m68k multi_defconfig m68k sun3_defconfig mips 32r2_defconfig mips 64r6el_defconfig mips allmodconfig mips allnoconfig mips allyesconfig mips fuloong2e_defconfig mips jz4740 mips malta_kvm_defconfig mips txx9 mn10300 asb2364_defconfig openriscor1ksim_defconfig parisc allmodconfig pariscallnoconfig parisc allyesconfig parisc b180_defconfig pariscc3000_defconfig parisc defconfig powerpc allmodconfig powerpc allnoconfig powerpc allyesconfig powerpc defconfig powerpc
Re: [PATCH v8 5/5] [media] platform: Add Synopsys Designware HDMI RX Controller Driver
Hi Jose, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.13-rc1 next-20170714] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jose-Abreu/Synopsys-Designware-HDMI-Video-Capture-Controller-PHY/20170711-092521 base: git://linuxtv.org/media_tree.git master config: i386-allyesconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): drivers/media/platform/dwc/dw-hdmi-rx.c: In function 'dw_hdmi_registered': >> drivers/media/platform/dwc/dw-hdmi-rx.c:1452:9: error: implicit declaration >> of function 'v4l2_async_subnotifier_register' >> [-Werror=implicit-function-declaration] return v4l2_async_subnotifier_register(_dev->sd, ^~~ drivers/media/platform/dwc/dw-hdmi-rx.c: In function 'dw_hdmi_unregistered': >> drivers/media/platform/dwc/dw-hdmi-rx.c:1462:2: error: implicit declaration >> of function 'v4l2_async_subnotifier_unregister' >> [-Werror=implicit-function-declaration] v4l2_async_subnotifier_unregister(_dev->v4l2_notifier); ^ cc1: some warnings being treated as errors vim +/v4l2_async_subnotifier_register +1452 drivers/media/platform/dwc/dw-hdmi-rx.c 1436 1437 static int dw_hdmi_registered(struct v4l2_subdev *sd) 1438 { 1439 struct dw_hdmi_dev *dw_dev = to_dw_dev(sd); 1440 int ret; 1441 1442 ret = cec_register_adapter(dw_dev->cec_adap, dw_dev->dev); 1443 if (ret) { 1444 dev_err(dw_dev->dev, "failed to register CEC adapter\n"); 1445 cec_delete_adapter(dw_dev->cec_adap); 1446 return ret; 1447 } 1448 1449 cec_register_cec_notifier(dw_dev->cec_adap, dw_dev->cec_notifier); 1450 dw_dev->registered = true; 1451 > 1452 return v4l2_async_subnotifier_register(_dev->sd, 1453 _dev->v4l2_notifier); 1454 } 1455 1456 static void dw_hdmi_unregistered(struct v4l2_subdev *sd) 1457 { 1458 struct dw_hdmi_dev *dw_dev = to_dw_dev(sd); 1459 1460 cec_unregister_adapter(dw_dev->cec_adap); 1461 cec_notifier_put(dw_dev->cec_notifier); > 1462 v4l2_async_subnotifier_unregister(_dev->v4l2_notifier); 1463 } 1464 --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH v2 2/6] [media] rockchip/rga: v4l2 m2m support
Hi Jacob, [auto build test WARNING on rockchip/for-next] [also build test WARNING on v4.12 next-20170714] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jacob-Chen/v4l-add-blend-modes-controls/20170715-214326 base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next coccinelle warnings: (new ones prefixed by >>) >> drivers/media/platform/rockchip-rga/rga-hw.c:124:2-3: Unneeded semicolon Please review and possibly fold the followup patch. --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
[PATCH] rockchip/rga: fix semicolon.cocci warnings
drivers/media/platform/rockchip-rga/rga-hw.c:124:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 6f3d6aeab3cb ("rockchip/rga: v4l2 m2m support") CC: Jacob ChenSigned-off-by: Fengguang Wu --- rga-hw.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/platform/rockchip-rga/rga-hw.c +++ b/drivers/media/platform/rockchip-rga/rga-hw.c @@ -121,7 +121,7 @@ static struct rga_addr_offset *rga_looku return >right_top; case RB: return >right_bottom; - }; + } return NULL; }
Re: [PATCH v6 2/4] [media] platform: Add Synopsys Designware HDMI RX Controller Driver
Hi Jose, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20170706] [cannot apply to v4.12] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jose-Abreu/Synopsys-Designware-HDMI-Video-Capture-Controller-PHY/20170707-041312 base: git://linuxtv.org/media_tree.git master config: blackfin-allyesconfig (attached as .config) compiler: bfin-uclinux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=blackfin All errors (new ones prefixed by >>): drivers/media//platform/dwc/dw-hdmi-rx.c: In function 'dw_hdmi_registered': >> drivers/media//platform/dwc/dw-hdmi-rx.c:1452:9: error: implicit declaration >> of function 'v4l2_async_subnotifier_register' >> [-Werror=implicit-function-declaration] return v4l2_async_subnotifier_register(_dev->sd, ^~~ drivers/media//platform/dwc/dw-hdmi-rx.c: In function 'dw_hdmi_unregistered': >> drivers/media//platform/dwc/dw-hdmi-rx.c:1462:2: error: implicit declaration >> of function 'v4l2_async_subnotifier_unregister' >> [-Werror=implicit-function-declaration] v4l2_async_subnotifier_unregister(_dev->v4l2_notifier); ^ drivers/media//platform/dwc/dw-hdmi-rx.c: In function 'dw_hdmi_parse_dt': drivers/media//platform/dwc/dw-hdmi-rx.c:1555:22: warning: unused variable 'notifier' [-Wunused-variable] struct device_node *notifier, *phy_node, *np = dw_dev->of_node; ^~~~ drivers/media//platform/dwc/dw-hdmi-rx.c: In function 'dw_hdmi_rx_probe': drivers/media//platform/dwc/dw-hdmi-rx.c:1765:1: warning: label 'err_phy' defined but not used [-Wunused-label] err_phy: ^~~ cc1: some warnings being treated as errors vim +/v4l2_async_subnotifier_register +1452 drivers/media//platform/dwc/dw-hdmi-rx.c 1446 return ret; 1447 } 1448 1449 cec_register_cec_notifier(dw_dev->cec_adap, dw_dev->cec_notifier); 1450 dw_dev->registered = true; 1451 > 1452 return v4l2_async_subnotifier_register(_dev->sd, 1453 _dev->v4l2_notifier); 1454 } 1455 1456 static void dw_hdmi_unregistered(struct v4l2_subdev *sd) 1457 { 1458 struct dw_hdmi_dev *dw_dev = to_dw_dev(sd); 1459 1460 cec_unregister_adapter(dw_dev->cec_adap); 1461 cec_notifier_put(dw_dev->cec_notifier); > 1462 v4l2_async_subnotifier_unregister(_dev->v4l2_notifier); 1463 } 1464 1465 static const struct v4l2_subdev_core_ops dw_hdmi_sd_core_ops = { --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH v2 01/10] [media] dvb-frontends: add ST STV0910 DVB-S/S2 demodulator frontend driver
Hi Daniel, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.12 next-20170703] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Daniel-Scheller/dvb-frontends-add-ST-STV0910-DVB-S-S2-demodulator-frontend-driver/20170703-211611 base: git://linuxtv.org/media_tree.git master config: x86_64-randconfig-v0-07040424 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 Note: the linux-review/Daniel-Scheller/dvb-frontends-add-ST-STV0910-DVB-S-S2-demodulator-frontend-driver/20170703-211611 HEAD dafb8a36ff9cb533c394de71f2282325ad4a460d builds fine. It only hurts bisectibility. All errors (new ones prefixed by >>): drivers/media/dvb-frontends/stv0910.c: In function 'read_signal_strength': >> drivers/media/dvb-frontends/stv0910.c:1284: error: 'p' undeclared (first use >> in this function) drivers/media/dvb-frontends/stv0910.c:1284: error: (Each undeclared identifier is reported only once drivers/media/dvb-frontends/stv0910.c:1284: error: for each function it appears in.) vim +/p +1284 drivers/media/dvb-frontends/stv0910.c 1278 } 1279 1280 static void read_signal_strength(struct dvb_frontend *fe) 1281 { 1282 /* FIXME: add signal strength algo */ 1283 > 1284 p->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 1285 } 1286 1287 static int read_status(struct dvb_frontend *fe, enum fe_status *status) --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH] [media] staging/imx: remove confusing IS_ERR_OR_NULL usage
Hi Arnd, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20170630] [cannot apply to v4.12-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arnd-Bergmann/staging-imx-remove-confusing-IS_ERR_OR_NULL-usage/20170701-095942 base: git://linuxtv.org/media_tree.git master config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): drivers/staging/media/imx/imx-media-csi.c: In function 'csi_idmac_get_ipu_resources': >> drivers/staging/media/imx/imx-media-csi.c:149:11: error: assignment from >> incompatible pointer type [-Werror=incompatible-pointer-types] idmac_ch = ipu_idmac_get(priv->ipu, ch_num); ^ drivers/staging/media/imx/imx-media-csi.c:156:17: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types] priv->idmac_ch = idmac_ch; ^ cc1: some warnings being treated as errors vim +149 drivers/staging/media/imx/imx-media-csi.c 143 v4l2_err(>sd, "failed to get SMFC\n"); 144 ret = PTR_ERR(smfc); 145 goto out; 146 } 147 priv->smfc = smfc; 148 > 149 idmac_ch = ipu_idmac_get(priv->ipu, ch_num); 150 if (IS_ERR(idmac_ch)) { 151 v4l2_err(>sd, "could not get IDMAC channel %u\n", 152 ch_num); --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
Re: [PATCH v1 4/5] ARM: dts: stm32: Enable DCMI support on STM32F746 MCU
Hi Hugues, [auto build test ERROR on linuxtv-media/master] [cannot apply to v4.12-rc7 next-20170630] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Hugues-Fruchet/Camera-support-on-STM32F746G-DISCO-board/20170625-204425 base: git://linuxtv.org/media_tree.git master config: arm-spear6xx_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): >> ERROR: Input tree has errors, aborting (use -f to force output) --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation .config.gz Description: application/gzip
[ragnatech:media-tree] BUILD INCOMPLETE 2748e76ddb2967c4030171342ebdd3faa6a5e8e8
git://git.ragnatech.se/linux media-tree 2748e76ddb2967c4030171342ebdd3faa6a5e8e8 media: staging: cxd2099: Activate cxd2099 buffer mode TIMEOUT after 1687m Sorry we cannot finish the testset for your branch within a reasonable time. It's our fault -- either some build server is down or some build worker is busy doing bisects for _other_ trees. The branch will get more complete coverage and possible error reports when our build infrastructure is restored or catches up. There will be no more build success notification for this branch head, but you can expect reasonably good test coverage after waiting for 1 day. configs tested: 286 x86_64 allmodconfig sh allmodconfig shtitan_defconfig sh rsk7269_defconfig sh sh7785lcr_32bit_defconfig shallnoconfig pariscc3000_defconfig parisc b180_defconfig parisc defconfig alpha defconfig pariscallnoconfig x86_64 acpi-redef x86_64 allyesdebian x86_64nfsroot m68k sun3_defconfig m68k multi_defconfig m68k m5475evb_defconfig cris etrax-100lx_v2_defconfig blackfin TCM-BF537_defconfig blackfinBF561-EZKIT-SMP_defconfig blackfinBF533-EZKIT_defconfig blackfinBF526-EZBRD_defconfig cris dev88_defconfig parisc default_defconfig sh urquell_defconfig arm pxa_defconfig ia64 alldefconfig sh se7343_defconfig i386 randconfig-c0-06271421 i386 randconfig-c0-06271823 i386 randconfig-c0-06272017 powerpc defconfig powerpc ppc64_defconfig powerpc allnoconfig tile allnoconfig um allyesconfig x86_64randconfig-in0-06271113 mips bigsur_defconfig mips xway_defconfig powerpc tqm8541_defconfig arm iop13xx_defconfig mipsbcm63xx_defconfig xtensasmp_lx200_defconfig powerpc mpc8313_rdb_defconfig powerpc pseries_defconfig sh sh2007_defconfig x86_64randconfig-it0-06271030 x86_64randconfig-it0-06271753 microblaze allyesconfig sh r7785rp_defconfig blackfin BF518F-EZBRD_defconfig blackfin CM-BF537E_defconfig um alldefconfig s390default_defconfig x86_64 randconfig-v0-06271504 x86_64 randconfig-v0-06271832 x86_64 randconfig-v0-06272127 arm at91_dt_defconfig arm allnoconfig arm efm32_defconfig arm64 defconfig armmulti_v5_defconfig arm sunxi_defconfig arm64 allnoconfig arm exynos_defconfig armshmobile_defconfig armmulti_v7_defconfig crisetrax-100lx_defconfig mipsgpr_defconfig mips markeins_defconfig blackfinBF609-EZKIT_defconfig powerpc tqm8560_defconfig sparcalldefconfig arm corgi_defconfig armraumfeld_defconfig mips rt305x_defconfig x86_64 randconfig-g0-06271423 x86_64 randconfig-g0-06271649 x86_64 randconfig-g0-06272052 i386 allmodconfig x86_64 randconfig-x010-201726 x86_64 randconfig-x019-201726 x86_64 randconfig-x015-201726 x86_64 randconfig-x012-201726 x86_64 randconfig-x014-201726 x86_64 randconfig-x016-201726 x86_64 randconfig-x018-201726 x86_64 randconfig-x017-201726 x86_64 randconfig-x013-201726 x86_64 randconfig-x011-201726 ia64 allnoconfig ia64defconfig arm allmodconfig arm arm5 arm
[PATCH] ov9650: fix semicolon.cocci warnings
drivers/media/i2c/ov9650.c:2034:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 5ffa34fa8f2e ("ov9650: add support of OV9655 variant") CC: Hugues FruchetSigned-off-by: Fengguang Wu --- ov9650.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/i2c/ov9650.c +++ b/drivers/media/i2c/ov9650.c @@ -2031,7 +2031,7 @@ static int ov965x_probe(struct i2c_clien ov965x->formats = ov9655_formats; ov965x->nb_of_formats = ARRAY_SIZE(ov9655_formats); ov965x->set_params = ov965x_set_frame_size; - }; + } ov965x->frame_size = >framesizes[0]; ov965x_get_default_format(ov965x, >format);
Re: [PATCH v1 6/6] [media] ov9650: add support of OV9655 variant
Hi Hugues, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.12-rc6 next-20170623] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Hugues-Fruchet/Add-support-of-OV9655-camera/20170625-201153 base: git://linuxtv.org/media_tree.git master coccinelle warnings: (new ones prefixed by >>) >> drivers/media/i2c/ov9650.c:2034:2-3: Unneeded semicolon Please review and possibly fold the followup patch. --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Re: [PATCH v1 3/5] [media] stm32-dcmi: crop sensor image to match user resolution
Hi Hugues, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on next-20170623] [cannot apply to v4.12-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Hugues-Fruchet/Camera-support-on-STM32F746G-DISCO-board/20170625-204425 base: git://linuxtv.org/media_tree.git master coccinelle warnings: (new ones prefixed by >>) >> drivers/media/platform/stm32/stm32-dcmi.c:808:2-3: Unneeded semicolon drivers/media/platform/stm32/stm32-dcmi.c:562:2-3: Unneeded semicolon drivers/media/platform/stm32/stm32-dcmi.c:762:2-3: Unneeded semicolon Please review and possibly fold the followup patch. --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation