DMA Engine development
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Seraj Alijan <seraj.alijan@sondrel.com>
Cc: kbuild-all@01.org, vkoul@kernel.org, dmaengine@vger.kernel.org,
	dan.j.williams@intel.com, james.hartley@sondrel.com,
	sifan.naeem@sondrel.com, ed.blake@sondrel.com
Subject: [2/5] dmaengine: dmatest: Use fixed point div to calculate iops
Date: Sat, 25 Aug 2018 13:21:26 +0800	[thread overview]
Message-ID: <201808251259.Hlk3kTEa%fengguang.wu@intel.com> (raw)

Hi Seraj,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.18 next-20180824]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Seraj-Alijan/dmaengine-dmatest-Add-multi-chan-and-new-params/20180824-231828
config: i386-randconfig-n0-201833 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/dma/dmatest.o: In function `dmatest_persec':
>> drivers/dma/dmatest.c:457: undefined reference to `__udivdi3'
>> drivers/dma/dmatest.c:457: undefined reference to `__udivdi3'
>> drivers/dma/dmatest.c:457: undefined reference to `__udivdi3'

vim +457 drivers/dma/dmatest.c

   442	
   443	static unsigned long long dmatest_persec(s64 runtime, unsigned int val)
   444	{
   445		unsigned long long per_sec = 1000000;
   446	
   447		if (runtime <= 0)
   448			return 0;
   449	
   450		/* drop precision until runtime is 32-bits */
   451		while (runtime > UINT_MAX) {
   452			runtime >>= 1;
   453			per_sec <<= 1;
   454		}
   455	
   456		per_sec *= val;
 > 457		per_sec = FIXPT_DIV(per_sec, runtime);
   458	
   459		return per_sec;
   460	}
   461
---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

             reply	other threads:[~2018-08-25  5:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-25  5:21 kbuild test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-08-24 12:15 [2/5] dmaengine: dmatest: Use fixed point div to calculate iops Seraj Alijan

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=201808251259.Hlk3kTEa%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=ed.blake@sondrel.com \
    --cc=james.hartley@sondrel.com \
    --cc=kbuild-all@01.org \
    --cc=seraj.alijan@sondrel.com \
    --cc=sifan.naeem@sondrel.com \
    --cc=vkoul@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