rv: Support systems with time64-only syscalls
authorPalmer Dabbelt <palmer@dabbelt.com>
Mon, 4 Aug 2025 19:45:19 +0000 (12:45 -0700)
committerGabriele Monaco <gmonaco@redhat.com>
Mon, 15 Sep 2025 06:36:27 +0000 (08:36 +0200)
commit03ee64b5e525c40e9bc723885c6b0b9c6188b55b
tree8dd11d7749b60ad93fe4a11d6d1ef71e82293614
parent76eeb9b8de9880ca38696b2fb56ac45ac0a25c6c
rv: Support systems with time64-only syscalls

Some systems (like 32-bit RISC-V) only have the 64-bit time_t versions
of syscalls.  So handle the 32-bit time_t version of those being
undefined.

Fixes: f74f8bb246cf ("rv: Add rtapp_sleep monitor")
Closes: https://lore.kernel.org/oe-kbuild-all/202508160204.SsFyNfo6-lkp@intel.com
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
Acked-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/20250804194518.97620-2-palmer@dabbelt.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
kernel/trace/rv/monitors/sleep/sleep.c