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

From: Rong Chen
Date: Thu Sep 17 2020 - 22:41:21 EST




On 9/15/20 9:20 PM, Paul Cercueil wrote:
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


Hi Paul,

Sorry for the inconvenience, the bot can't distinguish the errors yet if only file name changed.
we'll continue to improve it.

Best Regards,
Rong Chen