From: kernel test robot <lkp@intel.com>
To: Lukas Wunner <lukas@wunner.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Mon, 27 Feb 2023 20:51:51 +0800 [thread overview]
Message-ID: <202302272008.BAIidERQ-lkp@intel.com> (raw)
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
reply other threads:[~2023-02-27 12:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202302272008.BAIidERQ-lkp@intel.com \
--to=lkp@intel.com \
--cc=lukas@wunner.de \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.