linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kbuild-all@01.org, Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 5509/5515] kernel/time/clocksource.c:220:7: error: implicit declaration of function 'abs64'
Date: Tue, 6 Oct 2015 20:48:41 +0800	[thread overview]
Message-ID: <201510062038.9laeRF3o%fengguang.wu@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   53e06f2de559bde769638c9608dcb8654a535654
commit: e75a4c08437638a8e81dec82074225e3c9551735 [5509/5515] Remove abs64()
config: x86_64-allnoconfig (attached as .config)
reproduce:
        git checkout e75a4c08437638a8e81dec82074225e3c9551735
        # save the attached .config to linux build tree
        make ARCH=x86_64 

Note: the linux-next/master HEAD 53e06f2de559bde769638c9608dcb8654a535654 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   kernel/time/clocksource.c: In function 'clocksource_watchdog':
>> kernel/time/clocksource.c:220:7: error: implicit declaration of function 'abs64' [-Werror=implicit-function-declaration]
      if (abs64(cs_nsec - wd_nsec) > WATCHDOG_THRESHOLD) {
          ^
   cc1: some warnings being treated as errors

vim +/abs64 +220 kernel/time/clocksource.c

b52f52a0 Thomas Gleixner    2007-05-09  204  
3a978377 Thomas Gleixner    2014-07-16  205  		delta = clocksource_delta(wdnow, cs->wd_last, watchdog->mask);
3a978377 Thomas Gleixner    2014-07-16  206  		wd_nsec = clocksource_cyc2ns(delta, watchdog->mult,
3a978377 Thomas Gleixner    2014-07-16  207  					     watchdog->shift);
b5199515 Thomas Gleixner    2011-06-16  208  
3a978377 Thomas Gleixner    2014-07-16  209  		delta = clocksource_delta(csnow, cs->cs_last, cs->mask);
3a978377 Thomas Gleixner    2014-07-16  210  		cs_nsec = clocksource_cyc2ns(delta, cs->mult, cs->shift);
0b046b21 John Stultz        2015-03-11  211  		wdlast = cs->wd_last; /* save these in case we print them */
0b046b21 John Stultz        2015-03-11  212  		cslast = cs->cs_last;
b5199515 Thomas Gleixner    2011-06-16  213  		cs->cs_last = csnow;
b5199515 Thomas Gleixner    2011-06-16  214  		cs->wd_last = wdnow;
b5199515 Thomas Gleixner    2011-06-16  215  
9fb60336 Thomas Gleixner    2011-09-12  216  		if (atomic_read(&watchdog_reset_pending))
9fb60336 Thomas Gleixner    2011-09-12  217  			continue;
9fb60336 Thomas Gleixner    2011-09-12  218  
b5199515 Thomas Gleixner    2011-06-16  219  		/* Check the deviation from the watchdog clocksource. */
67dfae0c John Stultz        2015-09-14 @220  		if (abs64(cs_nsec - wd_nsec) > WATCHDOG_THRESHOLD) {
45bbfe64 Joe Perches        2015-05-25  221  			pr_warn("timekeeping watchdog: Marking clocksource '%s' as unstable because the skew is too large:\n",
45bbfe64 Joe Perches        2015-05-25  222  				cs->name);
0b046b21 John Stultz        2015-03-11  223  			pr_warn("                      '%s' wd_now: %llx wd_last: %llx mask: %llx\n",
0b046b21 John Stultz        2015-03-11  224  				watchdog->name, wdnow, wdlast, watchdog->mask);
0b046b21 John Stultz        2015-03-11  225  			pr_warn("                      '%s' cs_now: %llx cs_last: %llx mask: %llx\n",
0b046b21 John Stultz        2015-03-11  226  				cs->name, csnow, cslast, cs->mask);
0b046b21 John Stultz        2015-03-11  227  			__clocksource_unstable(cs);
8cf4e750 Martin Schwidefsky 2009-08-14  228  			continue;

:::::: The code at line 220 was first introduced by commit
:::::: 67dfae0cd72fec5cd158b6e5fb1647b7dbe0834c clocksource: Fix abs() usage w/ 64bit values

:::::: TO: John Stultz <john.stultz@linaro.org>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 6076 bytes --]

                 reply	other threads:[~2015-10-06 12:49 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=201510062038.9laeRF3o%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.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