lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202108010312.8uIaWK0u-lkp@intel.com>
Date:   Sun, 1 Aug 2021 03:30:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     Carlos Bilbao <bilbao@...edu>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        0day robot <lkp@...el.com>
Subject: arch/powerpc/kernel/time.c:801:5: error: no previous prototype for
 'update_persistent_clock64'

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210801-003033/Carlos-Bilbao/include-linux-Reorganize-timekeeping-and-ktime-headers/20210722-233301
head:   fb6876d6185db9db41efb455500de67da0937a36
commit: fb6876d6185db9db41efb455500de67da0937a36 include: linux: Reorganize timekeeping and ktime headers
date:   3 hours ago
config: powerpc-bluestone_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/fb6876d6185db9db41efb455500de67da0937a36
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20210801-003033/Carlos-Bilbao/include-linux-Reorganize-timekeeping-and-ktime-headers/20210722-233301
        git checkout fb6876d6185db9db41efb455500de67da0937a36
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> arch/powerpc/kernel/time.c:801:5: error: no previous prototype for 'update_persistent_clock64' [-Werror=missing-prototypes]
     801 | int update_persistent_clock64(struct timespec64 now)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/kernel/time.c:840:6: error: no previous prototype for 'read_persistent_clock64' [-Werror=missing-prototypes]
     840 | void read_persistent_clock64(struct timespec64 *ts)
         |      ^~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/update_persistent_clock64 +801 arch/powerpc/kernel/time.c

10f7e7c15e6ce4 arch/ppc64/kernel/time.c   Arnd Bergmann          2005-06-23  800  
5235afa89a246c arch/powerpc/kernel/time.c Arnd Bergmann          2018-04-23 @801  int update_persistent_clock64(struct timespec64 now)
^1da177e4c3f41 arch/ppc64/kernel/time.c   Linus Torvalds         2005-04-16  802  {
f2783c15007468 arch/powerpc/kernel/time.c Paul Mackerras         2005-10-20  803  	struct rtc_time tm;
f2783c15007468 arch/powerpc/kernel/time.c Paul Mackerras         2005-10-20  804  
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  805  	if (!ppc_md.set_rtc_time)
023f333a99cee9 arch/powerpc/kernel/time.c Jason Gunthorpe        2012-12-17  806  		return -ENODEV;
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  807  
5235afa89a246c arch/powerpc/kernel/time.c Arnd Bergmann          2018-04-23  808  	rtc_time64_to_tm(now.tv_sec + 1 + timezone_offset, &tm);
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  809  
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  810  	return ppc_md.set_rtc_time(&tm);
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  811  }
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  812  
5bfd643583b2e2 arch/powerpc/kernel/time.c Arnd Bergmann          2018-04-23  813  static void __read_persistent_clock(struct timespec64 *ts)
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  814  {
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  815  	struct rtc_time tm;
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  816  	static int first = 1;
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  817  
d90246cd8e0141 arch/powerpc/kernel/time.c Martin Schwidefsky     2009-08-22  818  	ts->tv_nsec = 0;
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  819  	/* XXX this is a litle fragile but will work okay in the short term */
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  820  	if (first) {
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  821  		first = 0;
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  822  		if (ppc_md.time_init)
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  823  			timezone_offset = ppc_md.time_init();
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  824  
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  825  		/* get_boot_time() isn't guaranteed to be safe to call late */
d90246cd8e0141 arch/powerpc/kernel/time.c Martin Schwidefsky     2009-08-22  826  		if (ppc_md.get_boot_time) {
d90246cd8e0141 arch/powerpc/kernel/time.c Martin Schwidefsky     2009-08-22  827  			ts->tv_sec = ppc_md.get_boot_time() - timezone_offset;
d90246cd8e0141 arch/powerpc/kernel/time.c Martin Schwidefsky     2009-08-22  828  			return;
d90246cd8e0141 arch/powerpc/kernel/time.c Martin Schwidefsky     2009-08-22  829  		}
d90246cd8e0141 arch/powerpc/kernel/time.c Martin Schwidefsky     2009-08-22  830  	}
d90246cd8e0141 arch/powerpc/kernel/time.c Martin Schwidefsky     2009-08-22  831  	if (!ppc_md.get_rtc_time) {
d90246cd8e0141 arch/powerpc/kernel/time.c Martin Schwidefsky     2009-08-22  832  		ts->tv_sec = 0;
d90246cd8e0141 arch/powerpc/kernel/time.c Martin Schwidefsky     2009-08-22  833  		return;
aa3be5f32db137 arch/powerpc/kernel/time.c Tony Breeds            2007-09-21  834  	}
f2783c15007468 arch/powerpc/kernel/time.c Paul Mackerras         2005-10-20  835  	ppc_md.get_rtc_time(&tm);
978d7eb31d44de arch/powerpc/kernel/time.c Benjamin Herrenschmidt 2009-11-01  836  
5bfd643583b2e2 arch/powerpc/kernel/time.c Arnd Bergmann          2018-04-23  837  	ts->tv_sec = rtc_tm_to_time64(&tm);
f2783c15007468 arch/powerpc/kernel/time.c Paul Mackerras         2005-10-20  838  }
f2783c15007468 arch/powerpc/kernel/time.c Paul Mackerras         2005-10-20  839  
5bfd643583b2e2 arch/powerpc/kernel/time.c Arnd Bergmann          2018-04-23 @840  void read_persistent_clock64(struct timespec64 *ts)
978d7eb31d44de arch/powerpc/kernel/time.c Benjamin Herrenschmidt 2009-11-01  841  {
978d7eb31d44de arch/powerpc/kernel/time.c Benjamin Herrenschmidt 2009-11-01  842  	__read_persistent_clock(ts);
978d7eb31d44de arch/powerpc/kernel/time.c Benjamin Herrenschmidt 2009-11-01  843  
978d7eb31d44de arch/powerpc/kernel/time.c Benjamin Herrenschmidt 2009-11-01  844  	/* Sanitize it in case real time clock is set below EPOCH */
978d7eb31d44de arch/powerpc/kernel/time.c Benjamin Herrenschmidt 2009-11-01  845  	if (ts->tv_sec < 0) {
978d7eb31d44de arch/powerpc/kernel/time.c Benjamin Herrenschmidt 2009-11-01  846  		ts->tv_sec = 0;
978d7eb31d44de arch/powerpc/kernel/time.c Benjamin Herrenschmidt 2009-11-01  847  		ts->tv_nsec = 0;
978d7eb31d44de arch/powerpc/kernel/time.c Benjamin Herrenschmidt 2009-11-01  848  	}
978d7eb31d44de arch/powerpc/kernel/time.c Benjamin Herrenschmidt 2009-11-01  849  		
978d7eb31d44de arch/powerpc/kernel/time.c Benjamin Herrenschmidt 2009-11-01  850  }
978d7eb31d44de arch/powerpc/kernel/time.c Benjamin Herrenschmidt 2009-11-01  851  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (16848 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ