mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Drew Fustini <dfustini@tenstorrent.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Stephen Boyd <sboyd@kernel.org>, Yangtao Li <frank.li@vivo.com>,
	Jisheng Zhang <jszhang@kernel.org>
Subject: drivers/clk/thead/clk-th1520-ap.c:260:undefined reference to `__udivdi3'
Date: Wed, 24 Jul 2024 10:06:51 +0800	[thread overview]
Message-ID: <202407241009.IjYZN3cz-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5ad7ff8738b8bd238ca899df08badb1f61bcc39e
commit: ae81b69fd2b1eb4885b352749b1fd1172e2f0f18 clk: thead: Add support for T-Head TH1520 AP_SUBSYS clocks
date:   8 days ago
config: riscv-randconfig-r005-20230829 (https://download.01.org/0day-ci/archive/20240724/202407241009.IjYZN3cz-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240724/202407241009.IjYZN3cz-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407241009.IjYZN3cz-lkp@intel.com/

All errors (new ones prefixed by >>):

   riscv32-linux-ld: drivers/clk/thead/clk-th1520-ap.o: in function `th1520_pll_vco_recalc_rate':
>> drivers/clk/thead/clk-th1520-ap.c:260:(.text+0x78): undefined reference to `__udivdi3'


vim +260 drivers/clk/thead/clk-th1520-ap.c

   239	
   240	static unsigned long th1520_pll_vco_recalc_rate(struct clk_hw *hw,
   241							unsigned long parent_rate)
   242	{
   243		struct ccu_pll *pll = hw_to_ccu_pll(hw);
   244		unsigned long div, mul, frac;
   245		unsigned int cfg0, cfg1;
   246		u64 rate = parent_rate;
   247	
   248		regmap_read(pll->common.map, pll->common.cfg0, &cfg0);
   249		regmap_read(pll->common.map, pll->common.cfg1, &cfg1);
   250	
   251		mul = FIELD_GET(TH1520_PLL_FBDIV, cfg0);
   252		div = FIELD_GET(TH1520_PLL_REFDIV, cfg0);
   253		if (!(cfg1 & TH1520_PLL_DSMPD)) {
   254			mul <<= TH1520_PLL_FRAC_BITS;
   255			frac = FIELD_GET(TH1520_PLL_FRAC, cfg1);
   256			mul += frac;
   257			div <<= TH1520_PLL_FRAC_BITS;
   258		}
   259		rate = parent_rate * mul;
 > 260		rate = rate / div;
   261		return rate;
   262	}
   263	

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

                 reply	other threads:[~2024-07-24  2:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202407241009.IjYZN3cz-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dfustini@tenstorrent.com \
    --cc=frank.li@vivo.com \
    --cc=jszhang@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sboyd@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®