linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Carlos Bilbao <bilbao@vt.edu>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	0day robot <lkp@intel.com>
Subject: arch/powerpc/kernel/time.c:801:5: error: no previous prototype for 'update_persistent_clock64'
Date: Sun, 1 Aug 2021 03:30:29 +0800	[thread overview]
Message-ID: <202108010312.8uIaWK0u-lkp@intel.com> (raw)

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

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@intel.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

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

             reply	other threads:[~2021-07-31 19:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-31 19:30 kernel test robot [this message]
2021-08-01 20:12 ` [PATCH v4.1] include: linux: Reorganize timekeeping and ktime headers Carlos Bilbao
2021-08-09 15:07   ` Geert Uytterhoeven
2021-08-09 16:39     ` Carlos Bilbao
2021-08-22 13:15       ` Carlos Bilbao
2021-08-22 13:23         ` Greg KH
2021-08-22 13:27           ` [PATCH v5] " Carlos Bilbao
2021-09-12 15:33             ` Carlos Bilbao
2021-11-03 19:33               ` Carlos Bilbao
2021-11-04  6:21                 ` Greg KH
2021-11-16 22:11                   ` Carlos Bilbao
2021-11-16 22:11                     ` Carlos Bilbao
2021-12-01 15:22                       ` Carlos Bilbao
2021-12-03 13:28                         ` Greg KH

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=202108010312.8uIaWK0u-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bilbao@vt.edu \
    --cc=kbuild-all@lists.01.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;
as well as URLs for NNTP newsgroup(s).