All of lore.kernel.org
 help / color / mirror / Atom feed
* [l1k:rpi-6.2.y-await-linktraining 11/583] drivers/gpu/drm/vc4/vc4_vec.c:338:1: warning: no previous prototype for 'vc4_vec_get_default_mode'
@ 2023-02-27 12:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-27 12:51 UTC (permalink / raw)
  To: Lukas Wunner; +Cc: oe-kbuild-all

tree:   https://github.com/l1k/linux rpi-6.2.y-await-linktraining
head:   f3a9201f7f484c1295cdec53c1b9bd2a19ffb231
commit: d68502e631cb6c914d5620c55c5621f1b54dbe92 [11/583] drm/vc4: Allow setting the TV norm via module parameter
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230227/202302272008.BAIidERQ-lkp@intel.com/config)
compiler: sparc64-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/l1k/linux/commit/d68502e631cb6c914d5620c55c5621f1b54dbe92
        git remote add l1k https://github.com/l1k/linux
        git fetch --no-tags l1k rpi-6.2.y-await-linktraining
        git checkout d68502e631cb6c914d5620c55c5621f1b54dbe92
        # 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=sparc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash drivers/char/ drivers/gpu/drm/vc4/ drivers/staging/vc04_services/

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/vc4/vc4_vec.c:338:1: warning: no previous prototype for 'vc4_vec_get_default_mode' [-Wmissing-prototypes]
     338 | vc4_vec_get_default_mode(struct drm_connector *connector)
         | ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/vc4_vec_get_default_mode +338 drivers/gpu/drm/vc4/vc4_vec.c

   336	
   337	enum vc4_vec_tv_mode_id
 > 338	vc4_vec_get_default_mode(struct drm_connector *connector)
   339	{
   340		int i;
   341	
   342		if (vc4_vec_tv_norm) {
   343			for (i = 0; i < ARRAY_SIZE(tv_mode_names); i++)
   344				if (strcmp(vc4_vec_tv_norm, tv_mode_names[i]) == 0)
   345					return (enum vc4_vec_tv_mode_id) i;
   346		} else if (connector->cmdline_mode.specified &&
   347			   ((connector->cmdline_mode.refresh_specified &&
   348			     (connector->cmdline_mode.refresh == 25 ||
   349			      connector->cmdline_mode.refresh == 50)) ||
   350			    (!connector->cmdline_mode.refresh_specified &&
   351			     (connector->cmdline_mode.yres == 288 ||
   352			      connector->cmdline_mode.yres == 576)))) {
   353			/*
   354			 * no explicitly specified TV norm; use PAL if a mode that
   355			 * looks like PAL has been specified on the command line
   356			 */
   357			return VC4_VEC_TV_MODE_PAL;
   358		}
   359	
   360		/* in all other cases, default to NTSC */
   361		return VC4_VEC_TV_MODE_NTSC;
   362	}
   363	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-27 12:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-27 12:51 [l1k:rpi-6.2.y-await-linktraining 11/583] drivers/gpu/drm/vc4/vc4_vec.c:338:1: warning: no previous prototype for 'vc4_vec_get_default_mode' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.