Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vdso: Add struct __kernel_old_timeval forward declaration to gettime.h

The prototype of __vdso_gettimeofday() uses this struct. However
gettime.h's own includes do not provide a definition for it.

Add a forward declaration, similar to other used structs.

Fixes: 42874e4eb35b ("arch: vdso: consolidate gettime prototypes")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250815-vdso-sparc64-generic-2-v2-1-b5ff80672347@linutronix.de

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
437054b1 258b37c6

+1
+1
include/vdso/gettime.h
··· 5 5 #include <linux/types.h> 6 6 7 7 struct __kernel_timespec; 8 + struct __kernel_old_timeval; 8 9 struct timezone; 9 10 10 11 #if !defined(CONFIG_64BIT) || defined(BUILD_VDSO32_64)