[linux-next:master 5509/5515] kernel/time/clocksource.c:220:7: error: implicit declaration of function 'abs64'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]