All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'
@ 2025-05-27  2:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-27  2:34 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

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

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

only message in thread, other threads:[~2025-05-27  2:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-27  2:34 [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' 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.