From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Vincenzo Frascino <vincenzo.frascino@arm.com>
Subject: [linux-next:master 2562/2998] arch/arm64/kernel/vdso32/vgettimeofday.c:10:5: error: conflicting types for '__vdso_clock_gettime'
Date: Fri, 24 Nov 2023 22:39:36 +0800 [thread overview]
Message-ID: <202311241540.XRrLFEKc-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 8c9660f6515396aba78d1168d2e17951d653ebf2
commit: 42874e4eb35bdfc54f8514685e50434098ba4f6c [2562/2998] arch: vdso: consolidate gettime prototypes
config: arm64-randconfig-003-20231124 (https://download.01.org/0day-ci/archive/20231124/202311241540.XRrLFEKc-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231124/202311241540.XRrLFEKc-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/202311241540.XRrLFEKc-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/arm64/kernel/vdso32/vgettimeofday.c:10:5: error: conflicting types for '__vdso_clock_gettime'
10 | int __vdso_clock_gettime(clockid_t clock,
| ^
include/vdso/gettime.h:16:5: note: previous declaration is here
16 | int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
| ^
>> arch/arm64/kernel/vdso32/vgettimeofday.c:28:5: error: conflicting types for '__vdso_clock_getres'
28 | int __vdso_clock_getres(clockid_t clock_id,
| ^
include/vdso/gettime.h:15:5: note: previous declaration is here
15 | int __vdso_clock_getres(clockid_t clock, struct __kernel_timespec *res);
| ^
2 errors generated.
make[3]: *** [arch/arm64/kernel/vdso32/Makefile:149: arch/arm64/kernel/vdso32/vgettimeofday.o] Error 1 shuffle=1846655798
make[3]: Target 'arch/arm64/kernel/vdso32/vdso.so' not remade because of errors.
make[3]: Target 'include/generated/vdso32-offsets.h' not remade because of errors.
make[2]: *** [arch/arm64/Makefile:195: vdso_prepare] Error 2 shuffle=1846655798
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:234: __sub-make] Error 2 shuffle=1846655798
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:234: __sub-make] Error 2 shuffle=1846655798
make: Target 'prepare' not remade because of errors.
vim +/__vdso_clock_gettime +10 arch/arm64/kernel/vdso32/vgettimeofday.c
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 9
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 @10 int __vdso_clock_gettime(clockid_t clock,
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 11 struct old_timespec32 *ts)
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 12 {
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 13 return __cvdso_clock_gettime32(clock, ts);
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 14 }
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 15
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 16 int __vdso_clock_gettime64(clockid_t clock,
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 17 struct __kernel_timespec *ts)
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 18 {
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 19 return __cvdso_clock_gettime(clock, ts);
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 20 }
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 21
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 22 int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 23 struct timezone *tz)
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 24 {
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 25 return __cvdso_gettimeofday(tv, tz);
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 26 }
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 27
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 @28 int __vdso_clock_getres(clockid_t clock_id,
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 29 struct old_timespec32 *res)
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 30 {
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 31 return __cvdso_clock_getres_time32(clock_id, res);
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 32 }
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 33
:::::: The code at line 10 was first introduced by commit
:::::: a7f71a2c8903f8599312f75233946287c558d9f6 arm64: compat: Add vDSO
:::::: 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:[~2023-11-24 14:40 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=202311241540.XRrLFEKc-lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=vincenzo.frascino@arm.com \
/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).