From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [chrome-os:chromeos-6.6 133/133] drivers/gpu/drm/mediatek/mtk_dvo.c:623:6: warning: no previous prototype for function 'mtk_dvo_get_hrt_bw_by_datarate'
Date: Tue, 27 May 2025 10:34:57 +0800 [thread overview]
Message-ID: <202505271046.mStEBqKv-lkp@intel.com> (raw)
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.6
head: 00e2b7e08c550ff321daba7b9956795d281bdd98
commit: 073720863458cfc81c898a81e68932cd296b3e37 [133/133] CHROMIUM: drm/mediatek: add display MMDVFS and MMQoS Support
config: arm-randconfig-001-20250527 (https://download.01.org/0day-ci/archive/20250527/202505271046.mStEBqKv-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250527/202505271046.mStEBqKv-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505271046.mStEBqKv-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/gpu/drm/mediatek/mtk_dvo.c:609:6: warning: no previous prototype for function 'mtk_dvo_start' [-Wmissing-prototypes]
609 | void mtk_dvo_start(struct device *dev)
| ^
drivers/gpu/drm/mediatek/mtk_dvo.c:609:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
609 | void mtk_dvo_start(struct device *dev)
| ^
| static
drivers/gpu/drm/mediatek/mtk_dvo.c:616:6: warning: no previous prototype for function 'mtk_dvo_stop' [-Wmissing-prototypes]
616 | void mtk_dvo_stop(struct device *dev)
| ^
drivers/gpu/drm/mediatek/mtk_dvo.c:616:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
616 | void mtk_dvo_stop(struct device *dev)
| ^
| static
>> drivers/gpu/drm/mediatek/mtk_dvo.c:623:6: warning: no previous prototype for function 'mtk_dvo_get_hrt_bw_by_datarate' [-Wmissing-prototypes]
623 | void mtk_dvo_get_hrt_bw_by_datarate(struct device *dev, unsigned int *bw_base)
| ^
drivers/gpu/drm/mediatek/mtk_dvo.c:623:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
623 | void mtk_dvo_get_hrt_bw_by_datarate(struct device *dev, unsigned int *bw_base)
| ^
| static
3 warnings generated.
--
>> drivers/gpu/drm/mediatek/mtk_crtc.c:661:25: warning: variable 'state' set but not used [-Wunused-but-set-variable]
661 | struct mtk_crtc_state *state;
| ^
drivers/gpu/drm/mediatek/mtk_crtc.c:621:13: warning: unused function 'mtk_crtc_post_update_hrt_state' [-Wunused-function]
621 | static void mtk_crtc_post_update_hrt_state(struct mtk_crtc *mtk_crtc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
vim +/mtk_dvo_get_hrt_bw_by_datarate +623 drivers/gpu/drm/mediatek/mtk_dvo.c
622
> 623 void mtk_dvo_get_hrt_bw_by_datarate(struct device *dev, unsigned int *bw_base)
624 {
625 struct mtk_dvo *dvo = dev_get_drvdata(dev);
626 int htotal, vtotal, vrefresh;
627
628 htotal = dvo->mode.htotal;
629 vtotal = dvo->mode.vtotal;
630 vrefresh = drm_mode_vrefresh(&dvo->mode);
631
632 *bw_base = (unsigned int)div_u64((unsigned long long)vtotal * htotal * vrefresh * 4,
633 1000000);
634 }
635
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-05-27 2:35 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=202505271046.mStEBqKv-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--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.