[xilinx-xlnx:xlnx_rebase_v6.1_LTS 334/1065] drivers/media/i2c/adv7511-v4l2.c:2222:21: warning: no previous prototype for 'adv7511_subdev'

kernel test robot lkp at intel.com
Wed Apr 12 19:01:06 PDT 2023


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v6.1_LTS
head:   e5753363b5e03fc0a3055d5476c6cca93e9ea28b
commit: 735b2b500b004b16981ba99aed31749db2e7104a [334/1065] drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated)
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230413/202304130956.qxUACXxh-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 12.1.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/735b2b500b004b16981ba99aed31749db2e7104a
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v6.1_LTS
        git checkout 735b2b500b004b16981ba99aed31749db2e7104a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/irqchip/ drivers/media/i2c/ drivers/net/ethernet/xilinx/ drivers/spi/ drivers/staging/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp at intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304130956.qxUACXxh-lkp@intel.com/

All warnings (new ones prefixed by >>):

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


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

  2221	
> 2222	struct v4l2_subdev *adv7511_subdev(struct v4l2_subdev *sd)
  2223	{
  2224		static struct v4l2_subdev *subdev;
  2225	
  2226		if (sd)
  2227			subdev = sd;
  2228	
  2229		return subdev;
  2230	}
  2231	EXPORT_SYMBOL(adv7511_subdev);
  2232	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests



More information about the linux-arm-kernel mailing list