Re: drivers/gpu/drm/ingenic/ingenic-drm-drv.c:undefined reference to `clk_get_parent'

From: Paul Cercueil
Date: Tue Sep 15 2020 - 20:36:45 EST


Hi,

Le mer. 9 sept. 2020 à 10:28, kernel test robot <lkp@xxxxxxxxx> a écrit :
Hi Paul,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 34d4ddd359dbcdf6c5fb3f85a179243d7a1cb7f8
commit: 54fe894219903e32f5154265f46ed1eb5cdc2f5f drm/ingenic: Rename ingenic-drm.c to ingenic-drm-drv.c
date: 8 weeks ago
config: mips-randconfig-r022-20200909 (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.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
git checkout 54fe894219903e32f5154265f46ed1eb5cdc2f5f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

mips-linux-ld: drivers/gpu/drm/ingenic/ingenic-drm-drv.o: in function `ingenic_drm_probe':
drivers/gpu/drm/ingenic/ingenic-drm-drv.c:(.text+0xc90): undefined reference to `clk_get_parent'
mips-linux-ld: drivers/mmc/host/mtk-sd.o: in function `msdc_set_mclk':
drivers/mmc/host/mtk-sd.c:(.text+0x26fc): undefined reference to `clk_get_parent'
mips-linux-ld: drivers/mmc/host/mtk-sd.c:(.text+0x27c0): undefined reference to `clk_get_parent'


clk_get_parent() is either provided if CONFIG_HAVE_CLK, or it's a inline dummy in clk.h otherwise. Given it chokes on other drivers too, I would say this is a false positive.

-Paul