tree:
https://git.pengutronix.de/git/pza/linux v5.6/topic/pcie-fpga-link-wip
head: 020dd50455b9d67bca68173966ce176e0c6fe87e
commit: 96f8ccc96212e0da4a3a307c489baf31f077df1e [8/12] fixup! media: fpl: added pcie-fpga
link skeleton driver
config: arm64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
5227fa0c72ce55927cf4849160acb00442489937)
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 96f8ccc96212e0da4a3a307c489baf31f077df1e
# save the attached .config to linux build tree
COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/media/pci/pcie-fpga-link/pcie-fpga-link.c:602:21: warning: unused variable
'fpl_dev' [-Wunused-variable]
struct fpl_device *fpl_dev = video_drvdata(file);
^
> drivers/media/pci/pcie-fpga-link/pcie-fpga-link.c:667:7: warning:
variable 'ret' is used uninitialized whenever switch case is taken
[-Wsometimes-uninitialized]
case V4L2_CID_DV_RX_POWER_PRESENT:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/uapi/linux/v4l2-controls.h:1079:39: note: expanded from macro
'V4L2_CID_DV_RX_POWER_PRESENT'
#define V4L2_CID_DV_RX_POWER_PRESENT (V4L2_CID_DV_CLASS_BASE + 100)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/pci/pcie-fpga-link/pcie-fpga-link.c:672:9: note: uninitialized use occurs
here
return ret;
^~~
drivers/media/pci/pcie-fpga-link/pcie-fpga-link.c:658:9: note: initialize the variable
'ret' to silence this warning
int ret;
^
= 0
drivers/media/pci/pcie-fpga-link/pcie-fpga-link.c:714:1: warning: non-void function
does not return a value [-Wreturn-type]
}
^
drivers/media/pci/pcie-fpga-link/pcie-fpga-link.c:724:28: warning: ISO C90 forbids
mixing declarations and code [-Wdeclaration-after-statement]
struct v4l2_captureparm *cp = &parm->parm.capture;
^
drivers/media/pci/pcie-fpga-link/pcie-fpga-link.c:719:22: warning: unused variable
'fpl' [-Wunused-variable]
struct fpl_device *fpl = video_drvdata(file);
^
drivers/media/pci/pcie-fpga-link/pcie-fpga-link.c:844:20: error: assigning to
'struct fpl_metadata *' from 'const struct fpl_metadata *' discards
qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
fpl_dev->metadata = &metadata_set[fpl_dev->metadata_no];
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 warnings and 1 error generated.
vim +/ret +667 drivers/media/pci/pcie-fpga-link/pcie-fpga-link.c
655
656 static int fpl_device_s_ctrl_handler(struct v4l2_ctrl *ctrl)
657 {
658 int ret;
659 struct fpl_device *fpl_dev =
660 container_of(ctrl->handler, struct fpl_device, ctrl_handler);
661 printk("CTRL: %d\n", ctrl->id);
662 switch (ctrl->id) {
663 case CUSTOM_CID_CHANGE_FORMAT:
664 fpl_dev->metadata_no ^= 1;
665 ret = 0;
666 break;
667 case V4L2_CID_DV_RX_POWER_PRESENT:
668 break;
669 default:
670 return -EINVAL;
671 }
672 return ret;
673 }
674
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org