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

Configure Feed

Select the types of activity you want to include in your feed.

x86/um/vdso: Use prototypes from generic vDSO headers

The generic vDSO library provides a convenient header for the vDSO
function prototypes, use it.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20251013-uml-vdso-cleanup-v1-2-a079c7adcc69@weissschuh.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Thomas Weißschuh and committed by
Johannes Berg
8c0fbd6a 019cde8f

+1 -3
+1 -3
arch/x86/um/vdso/um_vdso.c
··· 9 9 /* Disable profiling for userspace code */ 10 10 #define DISABLE_BRANCH_PROFILING 11 11 12 + #include <vdso/gettime.h> 12 13 #include <linux/time.h> 13 14 #include <linux/getcpu.h> 14 15 #include <asm/unistd.h> 15 16 16 17 /* workaround for -Wmissing-prototypes warnings */ 17 - int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts); 18 - int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); 19 - __kernel_old_time_t __vdso_time(__kernel_old_time_t *t); 20 18 long __vdso_getcpu(unsigned int *cpu, unsigned int *node, struct getcpu_cache *unused); 21 19 22 20 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)