Skip to content

Commit 5340e87

Browse files
fvincenzoKAGA-KOKO
authored andcommitted
arm64: vdso32: Include common headers in the vdso library
The vDSO library should only include the necessary headers required for a userspace library (UAPI and a minimal set of kernel headers). To make this possible it is necessary to isolate from the kernel headers the common parts that are strictly necessary to build the library. Refactor the vdso32 implementation to include common headers. Signed-off-by: Vincenzo Frascino <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 60ad903 commit 5340e87

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

arch/arm64/include/asm/vdso/compat_gettimeofday.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef __ASSEMBLY__
99

1010
#include <asm/unistd.h>
11-
#include <uapi/linux/time.h>
11+
#include <asm/errno.h>
1212

1313
#include <asm/vdso/compat_barrier.h>
1414

arch/arm64/kernel/vdso32/vgettimeofday.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* Copyright (C) 2018 ARM Limited
66
*
77
*/
8-
#include <linux/time.h>
9-
#include <linux/types.h>
108

119
int __vdso_clock_gettime(clockid_t clock,
1210
struct old_timespec32 *ts)

0 commit comments

Comments
 (0)