Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Thomas Weißschuh " <linux@weissschuh.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [thomas-weissschuh:b4/vdso-timens-conditional 12/12] arch/sparc/include/uapi/../../../../lib/vdso/gettimeofday.c:483:10: error: call to undeclared function 'clock_getres_fallback'; ISO C99 and later do not support implicit function declarations
Date: Mon, 28 Sep 2026 05:28:22 +0800	[thread overview]
Message-ID: <202609280758.uT2tKvOE-lkp@intel.com> (raw)

Hi Thomas,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/vdso-timens-conditional
head:   dbe6d2a5ee3233a9e819a0663236161d27841d5a
commit: dbe6d2a5ee3233a9e819a0663236161d27841d5a [12/12] VDSO_HAS_CLOCK_GETRES
config: sparc64-defconfig (https://download.01.org/0day-ci/archive/20260928/202609280758.uT2tKvOE-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 5f609f950d2e80addf5566623013db68394334db)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260928/202609280758.uT2tKvOE-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609280758.uT2tKvOE-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/sparc/vdso/vclock_gettime.c:22:
>> arch/sparc/include/uapi/../../../../lib/vdso/gettimeofday.c:483:10: error: call to undeclared function 'clock_getres_fallback'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     483 |                 return clock_getres_fallback(clock, res);
         |                        ^
   arch/sparc/include/uapi/../../../../lib/vdso/gettimeofday.c:483:10: note: did you mean 'clock_getres32_fallback'?
   arch/sparc/include/uapi/../../../../lib/vdso/gettimeofday.c:97:28: note: 'clock_getres32_fallback' declared here
      97 | static __always_inline int clock_getres32_fallback(clockid_t clkid, struct old_timespec32 *ts)
         |                            ^
   1 error generated.


vim +/clock_getres_fallback +483 arch/sparc/include/uapi/../../../../lib/vdso/gettimeofday.c

502a590a170b3b3 Thomas Gleixner   2019-07-28  473  
08cd5e1de815842 Thomas Weißschuh  2026-02-27  474  static
ac1a42f4e4e296b Thomas Weißschuh  2025-02-04  475  int __cvdso_clock_getres_data(const struct vdso_time_data *vd, clockid_t clock,
e876f0b69dc993e Christophe Leroy  2020-02-07  476  			      struct __kernel_timespec *res)
502a590a170b3b3 Thomas Gleixner   2019-07-28  477  {
34f888e3405acef Thomas Weißschuh  2025-07-01  478  	bool ok;
00b26474c2f1613 Vincenzo Frascino 2019-06-21  479  
34f888e3405acef Thomas Weißschuh  2025-07-01  480  	ok =  __cvdso_clock_getres_common(vd, clock, res);
34f888e3405acef Thomas Weißschuh  2025-07-01  481  
34f888e3405acef Thomas Weißschuh  2025-07-01  482  	if (unlikely(!ok))
00b26474c2f1613 Vincenzo Frascino 2019-06-21 @483  		return clock_getres_fallback(clock, res);
502a590a170b3b3 Thomas Gleixner   2019-07-28  484  	return 0;
00b26474c2f1613 Vincenzo Frascino 2019-06-21  485  }
00b26474c2f1613 Vincenzo Frascino 2019-06-21  486  

:::::: The code at line 483 was first introduced by commit
:::::: 00b26474c2f1613d7ab894c525f775c67c8a9e8f lib/vdso: Provide generic VDSO implementation

:::::: TO: Vincenzo Frascino <vincenzo.frascino@arm.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2026-09-27 21:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-27 21:28 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-09-27 20:28 [thomas-weissschuh:b4/vdso-timens-conditional 12/12] arch/sparc/include/uapi/../../../../lib/vdso/gettimeofday.c:483:10: error: call to undeclared function 'clock_getres_fallback'; ISO C99 and later do not support implicit function declarations kernel test robot

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=202609280758.uT2tKvOE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux@weissschuh.net \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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