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 function 'vc4_vec_get_default_mode'
@ 2023-02-27 13:33 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-27 13:33 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: arm-randconfig-r046-20230227 (https://download.01.org/0day-ci/archive/20230227/202302272126.95TrpwQA-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project db89896bbbd2251fff457699635acbbedeead27f)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # 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=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/vc4/ drivers/media/i2c/

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/202302272126.95TrpwQA-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/vc4/vc4_vec.c:338:1: warning: no previous prototype for function 'vc4_vec_get_default_mode' [-Wmissing-prototypes]
   vc4_vec_get_default_mode(struct drm_connector *connector)
   ^
   drivers/gpu/drm/vc4/vc4_vec.c:337:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   enum vc4_vec_tv_mode_id
   ^
   static 
   1 warning generated.


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 13:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-27 13:33 [l1k:rpi-6.2.y-await-linktraining 11/583] drivers/gpu/drm/vc4/vc4_vec.c:338:1: warning: no previous prototype for function '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.