tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 15f2f20ccbf2d04cb14e3e7635aa0447208c71e7 commit: 51e8415e39a962db2a753940fca18e9710c24902 [10732/11667] media: platform: Add Renesas RZ/G2L MIPI CSI-2 receiver driver config: hexagon-allmodconfig compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 6e4cea55f0d1104408b26ac574566a0e4de48036) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=51e8415e39a962db2a753940fca18e9710c24902 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 51e8415e39a962db2a753940fca18e9710c24902 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/media/platform/renesas/rzg2l-cru/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c:10: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c:10: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c:10: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ >> drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c:445:7: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (ret) ^~~ drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c:475:9: note: uninitialized use occurs here return ret; ^~~ drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c:445:3: note: remove the 'if' if its condition is always false if (ret) ^~~~~~~~ drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c:441:7: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (ret) ^~~ drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c:475:9: note: uninitialized use occurs here return ret; ^~~ drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c:441:3: note: remove the 'if' if its condition is always false if (ret) ^~~~~~~~ drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c:431:9: note: initialize the variable 'ret' to silence this warning int ret; ^ = 0 8 warnings generated. vim +445 drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c 426 427 static int rzg2l_csi2_s_stream(struct v4l2_subdev *sd, int enable) 428 { 429 struct rzg2l_csi2 *csi2 = sd_to_csi2(sd); 430 int s_stream_ret = 0; 431 int ret; 432 433 if (enable) { 434 int ret; 435 436 ret = pm_runtime_resume_and_get(csi2->dev); 437 if (ret) 438 return ret; 439 440 ret = rzg2l_csi2_mipi_link_setting(sd, 1); 441 if (ret) 442 goto err_pm_put; 443 444 ret = reset_control_deassert(csi2->cmn_rstb); > 445 if (ret) 446 goto err_mipi_link_disable; 447 } 448 449 ret = v4l2_subdev_call(csi2->remote_source, video, s_stream, enable); 450 if (ret) 451 s_stream_ret = ret; 452 453 if (enable && ret) 454 goto err_assert_rstb; 455 456 if (!enable) { 457 ret = rzg2l_csi2_dphy_setting(sd, 0); 458 if (ret && !s_stream_ret) 459 s_stream_ret = ret; 460 ret = rzg2l_csi2_mipi_link_setting(sd, 0); 461 if (ret && !s_stream_ret) 462 s_stream_ret = ret; 463 464 pm_runtime_put_sync(csi2->dev); 465 } 466 467 return s_stream_ret; 468 469 err_assert_rstb: 470 reset_control_assert(csi2->cmn_rstb); 471 err_mipi_link_disable: 472 rzg2l_csi2_mipi_link_setting(sd, 0); 473 err_pm_put: 474 pm_runtime_put_sync(csi2->dev); 475 return ret; 476 } 477 -- 0-DAY CI Kernel Test Service https://01.org/lkp