[xilinx-xlnx:xlnx_rebase_v5.15 622/1049] drivers/media/i2c/adv7511-v4l2.c:2245:21: warning: no previous prototype for 'adv7511_subdev'

kernel test robot lkp at intel.com
Mon Apr 4 05:43:56 PDT 2022


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head:   4cf4408c2dbe725bb8530f851fbf277b9343f602
commit: 59e26517c7b77c4c82aad32cfac74ae39c32b76b [622/1049] drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated)
config: m68k-randconfig-r033-20220404 (https://download.01.org/0day-ci/archive/20220404/202204042044.Qm8gWyr4-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/Xilinx/linux-xlnx/commit/59e26517c7b77c4c82aad32cfac74ae39c32b76b
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15
        git checkout 59e26517c7b77c4c82aad32cfac74ae39c32b76b
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

>> drivers/media/i2c/adv7511-v4l2.c:2245:21: warning: no previous prototype for 'adv7511_subdev' [-Wmissing-prototypes]
    2245 | struct v4l2_subdev *adv7511_subdev(struct v4l2_subdev *sd)
         |                     ^~~~~~~~~~~~~~


vim +/adv7511_subdev +2245 drivers/media/i2c/adv7511-v4l2.c

  2244	
> 2245	struct v4l2_subdev *adv7511_subdev(struct v4l2_subdev *sd)
  2246	{
  2247		static struct v4l2_subdev *subdev;
  2248	
  2249		if (sd)
  2250			subdev = sd;
  2251	
  2252		return subdev;
  2253	}
  2254	EXPORT_SYMBOL(adv7511_subdev);
  2255	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



More information about the linux-arm-kernel mailing list