drivers/gpu/drm/msm/hdmi/hdmi_phy_8998.c:156:19: error: unused function 'pll_cmp_to_fdata'

From: kernel test robot
Date: Fri Sep 27 2024 - 14:53:17 EST


Hi Arnaud,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: eee280841e1c8188fe9af5536c193d07d184e874
commit: caedbf17c48dcd9f076aa7157c1bb8ab8082c418 drm/msm: add msm8998 hdmi phy/pll support
date: 4 weeks ago
config: i386-buildonly-randconfig-003-20240928 (https://download.01.org/0day-ci/archive/20240928/202409280227.wxyNR8Ju-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240928/202409280227.wxyNR8Ju-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409280227.wxyNR8Ju-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/msm/hdmi/hdmi_phy_8998.c:156:19: error: unused function 'pll_cmp_to_fdata' [-Werror,-Wunused-function]
156 | static inline u64 pll_cmp_to_fdata(u32 pll_cmp, unsigned long ref_clk)
| ^~~~~~~~~~~~~~~~
1 error generated.


vim +/pll_cmp_to_fdata +156 drivers/gpu/drm/msm/hdmi/hdmi_phy_8998.c

155
> 156 static inline u64 pll_cmp_to_fdata(u32 pll_cmp, unsigned long ref_clk)
157 {
158 u64 fdata = ((u64)pll_cmp) * ref_clk * 10;
159
160 do_div(fdata, HDMI_PLL_CMP_CNT);
161
162 return fdata;
163 }
164

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