mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Jia-Ju Bai <baijiaju1990@gmail.com>
Cc: kbuild-all@01.org, davem@davemloft.net, frankt@promise.com,
	andre@linux-ide.org, linux-ide@vger.kernel.org,
	linux-kernel@vger.kernel.org, Jia-Ju Bai <baijiaju1990@gmail.com>
Subject: Re: [PATCH 1/2] ide: pdc202xx_new: Replace mdelay with usleep_range in detect_pll_input_clock
Date: Thu, 12 Apr 2018 12:05:13 +0800	[thread overview]
Message-ID: <201804121132.0WwrE7BV%fengguang.wu@intel.com> (raw)
In-Reply-To: <1523433162-3910-1-git-send-email-baijiaju1990@gmail.com>

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

Hi Jia-Ju,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on ide/master]
[also build test ERROR on v4.16 next-20180411]
[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/Jia-Ju-Bai/ide-pdc202xx_new-Replace-mdelay-with-usleep_range-in-detect_pll_input_clock/20180412-105416
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/ide.git master
config: i386-randconfig-x015-201814 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers//ide/pdc202xx_new.c: In function 'detect_pll_input_clock':
>> drivers//ide/pdc202xx_new.c:261:2: error: too few arguments to function 'usleep_range'
     usleep_range(10);
     ^~~~~~~~~~~~
   In file included from drivers//ide/pdc202xx_new.c:21:0:
   include/linux/delay.h:60:6: note: declared here
    void usleep_range(unsigned long min, unsigned long max);
         ^~~~~~~~~~~~

vim +/usleep_range +261 drivers//ide/pdc202xx_new.c

   238	
   239	/**
   240	 * detect_pll_input_clock - Detect the PLL input clock in Hz.
   241	 * @dma_base: for the port address
   242	 * E.g. 16949000 on 33 MHz PCI bus, i.e. half of the PCI clock.
   243	 */
   244	static long detect_pll_input_clock(unsigned long dma_base)
   245	{
   246		ktime_t start_time, end_time;
   247		long start_count, end_count;
   248		long pll_input, usec_elapsed;
   249		u8 scr1;
   250	
   251		start_count = read_counter(dma_base);
   252		start_time = ktime_get();
   253	
   254		/* Start the test mode */
   255		outb(0x01, dma_base + 0x01);
   256		scr1 = inb(dma_base + 0x03);
   257		DBG("scr1[%02X]\n", scr1);
   258		outb(scr1 | 0x40, dma_base + 0x03);
   259	
   260		/* Let the counter run for 10 ms. */
 > 261		usleep_range(10);
   262	
   263		end_count = read_counter(dma_base);
   264		end_time = ktime_get();
   265	
   266		/* Stop the test mode */
   267		outb(0x01, dma_base + 0x01);
   268		scr1 = inb(dma_base + 0x03);
   269		DBG("scr1[%02X]\n", scr1);
   270		outb(scr1 & ~0x40, dma_base + 0x03);
   271	
   272		/*
   273		 * Calculate the input clock in Hz
   274		 * (the clock counter is 30 bit wide and counts down)
   275		 */
   276		usec_elapsed = ktime_us_delta(end_time, start_time);
   277		pll_input = ((start_count - end_count) & 0x3fffffff) / 10 *
   278			(10000000 / usec_elapsed);
   279	
   280		DBG("start[%ld] end[%ld]\n", start_count, end_count);
   281	
   282		return pll_input;
   283	}
   284	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31786 bytes --]

      parent reply	other threads:[~2018-04-12  4:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-11  7:52 Jia-Ju Bai
2018-04-11  8:33 ` Sergei Shtylyov
2018-04-11  8:35   ` Jia-Ju Bai
2018-04-12  4:05 ` kbuild test robot [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=201804121132.0WwrE7BV%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=andre@linux-ide.org \
    --cc=baijiaju1990@gmail.com \
    --cc=davem@davemloft.net \
    --cc=frankt@promise.com \
    --cc=kbuild-all@01.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@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 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®