All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandru Ardelean <ardeleanalex@gmail.com>
To: Jonathan Cameron <jonathan.cameron@huawei.com>
Cc: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: FW: ingenic-adc.c:undefined reference to `clk_get_parent'
Date: Tue, 27 Apr 2021 11:34:09 +0300	[thread overview]
Message-ID: <CA+U=DsppGq0CyWY+Y0ob-j+FuyPqd9hpb46wmYy9u9CJ6X4gKA@mail.gmail.com> (raw)
In-Reply-To: <8d72be21988d46c2ac8ad0de15689452@huawei.com>

On Mon, Apr 26, 2021 at 11:43 AM Jonathan Cameron
<jonathan.cameron@huawei.com> wrote:
>
>

The .config would help to reproduce this.
I don't see it attached.

>
> -----Original Message-----
> From: Randy Dunlap [mailto:rdunlap@infradead.org]
> Sent: 26 April 2021 06:44
> To: kernel test robot <lkp@intel.com>; Jonathan Cameron <jonathan.cameron@huawei.com>; linux-clk@vger.kernel.org
> Cc: kbuild-all@lists.01.org; linux-kernel@vger.kernel.org; Andy Shevchenko <andy.shevchenko@gmail.com>; Stephen Boyd <sboyd@kernel.org>; Michael Turquette <mturquette@baylibre.com>
> Subject: Re: ingenic-adc.c:undefined reference to `clk_get_parent'
>
> [add linux-clk + maintainers]
>
> On 3/16/21 8:54 AM, kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head:   1a4431a5db2bf800c647ee0ed87f2727b8d6c29c
> > commit: a07a4fe5ff460e99293c0d682421920d54e31d7f iio:adc:ingenic: drop of_match_ptr protection and include mod_devicetable.h
> > date:   8 months ago
> > config: mips-randconfig-p001-20210316 (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
> >         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a07a4fe5ff460e99293c0d682421920d54e31d7f
> >         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> >         git fetch --no-tags linus master
> >         git checkout a07a4fe5ff460e99293c0d682421920d54e31d7f
> >         # 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@intel.com>
> >
> > All errors (new ones prefixed by >>):
> >
> >    mips-linux-ld: drivers/iio/adc/ingenic-adc.o: in function `jz4770_adc_init_clk_div':
> >>> ingenic-adc.c:(.text+0x8c): undefined reference to `clk_get_parent'
> >    mips-linux-ld: drivers/iio/adc/ingenic-adc.o: in function `jz4725b_adc_init_clk_div':
> >    ingenic-adc.c:(.text+0x164): undefined reference to `clk_get_parent'
>
> Hi,
>
> My guess (analysis) suggests that this problem is due to a difference in when clk_get_parent() is available between <linux/clk.h> where it depends on CONFIG_HAVE_CLK and drivers/clk/clk.c, which is built iff CONFIG_COMMON_CLK.
>
> Any comments/suggestions?
>
> thanks.
> --
> ~Randy
>

      reply	other threads:[~2021-04-27  8:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-16 15:54 ingenic-adc.c:undefined reference to `clk_get_parent' kernel test robot
2021-03-16 15:54 ` kernel test robot
2021-04-26  5:43 ` Randy Dunlap
2021-04-26  5:43   ` Randy Dunlap
2021-04-26  8:22   ` Andy Shevchenko
2021-04-26  8:22     ` Andy Shevchenko
2021-04-26 21:05     ` Randy Dunlap
2021-04-26 21:05       ` Randy Dunlap
2021-04-26  8:42   ` FW: " Jonathan Cameron
2021-04-27  8:34     ` Alexandru Ardelean [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+U=DsppGq0CyWY+Y0ob-j+FuyPqd9hpb46wmYy9u9CJ6X4gKA@mail.gmail.com' \
    --to=ardeleanalex@gmail.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=linux-iio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.