This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit e6d074437339da0b16e6696d4de641df8749d58e Author: hujun5 <[email protected]> AuthorDate: Thu Nov 26 14:27:16 2026 +0800 sched/clock: fix duplicate perf_gettime definition Use CONFIG_ARCH_HAVE_PERF_EVENTS_USER_ACCESS, which is the configuration symbol defined by arch/Kconfig. The previous CONFIG_ARCH_PERF_EVENTS_USER_ACCESS spelling does not exist and allowed both sched/clock/clock_perf.c and libs/libc/sched/clock_perf.c to define perf_gettime(). Signed-off-by: hujun5 <[email protected]> --- sched/clock/clock_perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sched/clock/clock_perf.c b/sched/clock/clock_perf.c index 447645d2629..03d3e789e3b 100644 --- a/sched/clock/clock_perf.c +++ b/sched/clock/clock_perf.c @@ -47,7 +47,7 @@ # define USE_UP_PERF #endif -#ifndef CONFIG_ARCH_PERF_EVENTS_USER_ACCESS +#ifndef CONFIG_ARCH_HAVE_PERF_EVENTS_USER_ACCESS # if defined(USE_UP_PERF) && defined(CONFIG_PERF_OVERFLOW_CORRECTION) && \ ULONG_MAX != UINT64_MAX @@ -172,7 +172,7 @@ clock_t perf_gettime(void) } # endif -#endif /* !CONFIG_ARCH_PERF_EVENTS_USER_ACCESS */ +#endif /* !CONFIG_ARCH_HAVE_PERF_EVENTS_USER_ACCESS */ #ifdef USE_UP_PERF
