linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rockchip_i2s_tdm.c:undefined reference to `clk_set_parent'
@ 2021-12-06 22:46 kernel test robot
  2021-12-07 11:32 ` Nicolas Frattaroli
  0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2021-12-06 22:46 UTC (permalink / raw)
  To: Nicolas Frattaroli; +Cc: kbuild-all, linux-kernel, Mark Brown

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f80ef9e49fdfbfbc4197711230098b90e6b05a7e
commit: 081068fd641403994f0505e6b91e021d3925f348 ASoC: rockchip: add support for i2s-tdm controller
date:   9 weeks ago
config: mips-randconfig-r031-20211206 (https://download.01.org/0day-ci/archive/20211207/202112070621.TnLPiADU-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 11.2.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
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=081068fd641403994f0505e6b91e021d3925f348
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 081068fd641403994f0505e6b91e021d3925f348
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   mips-linux-ld: sound/soc/jz4740/jz4740-i2s.o: in function `jz4740_i2s_set_sysclk':
   jz4740-i2s.c:(.text+0x3ec): undefined reference to `clk_set_parent'
   mips-linux-ld: jz4740-i2s.c:(.text+0x44c): undefined reference to `clk_set_parent'
   mips-linux-ld: sound/soc/rockchip/rockchip_i2s_tdm.o: in function `rockchip_i2s_tdm_calibrate_mclk.isra.0':
>> rockchip_i2s_tdm.c:(.text+0x10d4): undefined reference to `clk_set_parent'
>> mips-linux-ld: rockchip_i2s_tdm.c:(.text+0x1180): undefined reference to `clk_set_parent'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rockchip_i2s_tdm.c:undefined reference to `clk_set_parent'
  2021-12-06 22:46 rockchip_i2s_tdm.c:undefined reference to `clk_set_parent' kernel test robot
@ 2021-12-07 11:32 ` Nicolas Frattaroli
  2021-12-07 13:11   ` Mark Brown
  2021-12-11 19:47   ` Randy Dunlap
  0 siblings, 2 replies; 4+ messages in thread
From: Nicolas Frattaroli @ 2021-12-07 11:32 UTC (permalink / raw)
  To: kernel test robot; +Cc: kbuild-all, linux-kernel, Mark Brown

On Montag, 6. Dezember 2021 23:46:38 CET kernel test robot wrote:
> [...]
> 
> All errors (new ones prefixed by >>):
> 
>    mips-linux-ld: sound/soc/jz4740/jz4740-i2s.o: in function `jz4740_i2s_set_sysclk':
>    jz4740-i2s.c:(.text+0x3ec): undefined reference to `clk_set_parent'
>    mips-linux-ld: jz4740-i2s.c:(.text+0x44c): undefined reference to `clk_set_parent'
>    mips-linux-ld: sound/soc/rockchip/rockchip_i2s_tdm.o: in function `rockchip_i2s_tdm_calibrate_mclk.isra.0':
> >> rockchip_i2s_tdm.c:(.text+0x10d4): undefined reference to `clk_set_parent'
> >> mips-linux-ld: rockchip_i2s_tdm.c:(.text+0x1180): undefined reference to `clk_set_parent'
> 

According to some previous conversations I've stumbled upon[1],
this appears to be due to certain MIPS configurations not
implementing the clock API properly, so they don't provide a
clk_set_parent despite advertising that they have support for
clocks.

So my question is: do I need to care about this? This hardware
will never be used on MIPS, and a lot of other drivers (as seen in
the errors snippet from the test robot) have the same issue, and
the problem is most likely not in my driver but in that specific
configuration's clock API implementation.


[1]: https://lore.kernel.org/lkml/8a41b718-a6f6-6b7f-1699-18ab619884c3@infradead.org/



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rockchip_i2s_tdm.c:undefined reference to `clk_set_parent'
  2021-12-07 11:32 ` Nicolas Frattaroli
@ 2021-12-07 13:11   ` Mark Brown
  2021-12-11 19:47   ` Randy Dunlap
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2021-12-07 13:11 UTC (permalink / raw)
  To: Nicolas Frattaroli; +Cc: kernel test robot, kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 606 bytes --]

On Tue, Dec 07, 2021 at 12:32:52PM +0100, Nicolas Frattaroli wrote:

> So my question is: do I need to care about this? This hardware
> will never be used on MIPS, and a lot of other drivers (as seen in
> the errors snippet from the test robot) have the same issue, and
> the problem is most likely not in my driver but in that specific
> configuration's clock API implementation.

It's fine, in theory you should care and add suitable dependencies but
in practice it's not bothering anyone and at this point I'd rather see
this sorted on the MIPS side, supporting things like this is just
ongoing hassle.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rockchip_i2s_tdm.c:undefined reference to `clk_set_parent'
  2021-12-07 11:32 ` Nicolas Frattaroli
  2021-12-07 13:11   ` Mark Brown
@ 2021-12-11 19:47   ` Randy Dunlap
  1 sibling, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2021-12-11 19:47 UTC (permalink / raw)
  To: Nicolas Frattaroli, kernel test robot
  Cc: kbuild-all, linux-kernel, Mark Brown

Hi--

On 12/7/21 03:32, Nicolas Frattaroli wrote:
> On Montag, 6. Dezember 2021 23:46:38 CET kernel test robot wrote:
>> [...]
>>
>> All errors (new ones prefixed by >>):
>>
>>    mips-linux-ld: sound/soc/jz4740/jz4740-i2s.o: in function `jz4740_i2s_set_sysclk':
>>    jz4740-i2s.c:(.text+0x3ec): undefined reference to `clk_set_parent'
>>    mips-linux-ld: jz4740-i2s.c:(.text+0x44c): undefined reference to `clk_set_parent'
>>    mips-linux-ld: sound/soc/rockchip/rockchip_i2s_tdm.o: in function `rockchip_i2s_tdm_calibrate_mclk.isra.0':
>>>> rockchip_i2s_tdm.c:(.text+0x10d4): undefined reference to `clk_set_parent'
>>>> mips-linux-ld: rockchip_i2s_tdm.c:(.text+0x1180): undefined reference to `clk_set_parent'
>>
> 
> According to some previous conversations I've stumbled upon[1],
> this appears to be due to certain MIPS configurations not
> implementing the clock API properly, so they don't provide a
> clk_set_parent despite advertising that they have support for
> clocks.
> 
> So my question is: do I need to care about this? This hardware
> will never be used on MIPS, and a lot of other drivers (as seen in
> the errors snippet from the test robot) have the same issue, and
> the problem is most likely not in my driver but in that specific
> configuration's clock API implementation.
> 
> 
> [1]: https://lore.kernel.org/lkml/8a41b718-a6f6-6b7f-1699-18ab619884c3@infradead.org/

Yes, AFAIK this is fixed by:

commit fc1aabb08886
Author: Randy Dunlap <rdunlap@infradead.org>
Date:   Sun Nov 14 17:20:51 2021 -0800

    mips: lantiq: add support for clk_get_parent()


I can't reproduce this build error with the provided config file
in a current kernel tree.

-- 
~Randy

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-11 19:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06 22:46 rockchip_i2s_tdm.c:undefined reference to `clk_set_parent' kernel test robot
2021-12-07 11:32 ` Nicolas Frattaroli
2021-12-07 13:11   ` Mark Brown
2021-12-11 19:47   ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).