From: Thomas Weißschuh <hidden> Date: 2024-10-10 15:44:54
The timekeper argument __arm64_update_vsyscall() is never used and
for historical reasons many VDSO headers and implementations include
timekeeper headers.
With the move to the generic VDSO clock storage mode these are unused.
Including arbitrary headers from VDSO code can lead to build problems.
Remove all of them.
These patches are intended to be merged via the tip tree,
so following patches can be based on a unified base.
Signed-off-by: Thomas Weißschuh <redacted>
---
Thomas Weißschuh (9):
vdso: Remove timekeeper argument of __arch_update_vsyscall()
arm: vdso: Remove timekeeper includes
arm64: vdso: Remove timekeeper include
powerpc/vdso: Remove timekeeper includes
riscv: vdso: Remove timekeeper include
s390/vdso: Remove timekeeper includes
x86/vdso: Remove timekeeper include
LoongArch: vdso: Remove timekeeper includes
MIPS: vdso: Remove timekeeper includes
arch/arm/include/asm/vdso/vsyscall.h | 4 ----
arch/arm/kernel/vdso.c | 1 -
arch/arm64/include/asm/vdso/vsyscall.h | 3 +--
arch/arm64/kernel/vdso.c | 1 -
arch/loongarch/include/asm/vdso/vsyscall.h | 4 ----
arch/loongarch/kernel/vdso.c | 1 -
arch/mips/include/asm/vdso/vsyscall.h | 1 -
arch/mips/kernel/vdso.c | 1 -
arch/powerpc/include/asm/vdso/vsyscall.h | 4 ----
arch/powerpc/kernel/time.c | 1 -
arch/riscv/include/asm/vdso/vsyscall.h | 4 ----
arch/s390/include/asm/vdso/vsyscall.h | 5 -----
arch/s390/kernel/time.c | 1 -
arch/x86/include/asm/vdso/vsyscall.h | 1 -
include/asm-generic/vdso/vsyscall.h | 3 +--
kernel/time/vsyscall.c | 2 +-
16 files changed, 3 insertions(+), 34 deletions(-)
---
base-commit: 8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b
change-id: 20241010-vdso-generic-arch_update_vsyscall-0618e98e2e97
Best regards,
--
Thomas Weißschuh [off-list ref]
From: Thomas Weißschuh <hidden> Date: 2024-10-10 15:44:54
No implementation of this hook uses the passed in timekeeper anymore.
This avoids including a non-VDSO header while building the VDSO,
which can lead to compilation errors.
Signed-off-by: Thomas Weißschuh <redacted>
---
arch/arm64/include/asm/vdso/vsyscall.h | 3 +--
include/asm-generic/vdso/vsyscall.h | 3 +--
kernel/time/vsyscall.c | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
From: Thomas Weißschuh <hidden> Date: 2024-10-10 15:44:55
Since the generic VDSO clock mode storage is used, this header file is
unused and can be removed.
This avoids including a non-VDSO header while building the VDSO,
which can lead to compilation errors.
Also drop the comment which is out of date and in the wrong place.
Signed-off-by: Thomas Weißschuh <redacted>
---
arch/arm/include/asm/vdso/vsyscall.h | 4 ----
arch/arm/kernel/vdso.c | 1 -
2 files changed, 5 deletions(-)
From: Thomas Weißschuh <hidden> Date: 2024-10-10 15:44:55
Since the generic VDSO clock mode storage is used, this header file is
unused and can be removed.
Signed-off-by: Thomas Weißschuh <redacted>
---
arch/arm64/kernel/vdso.c | 1 -
1 file changed, 1 deletion(-)
From: Thomas Weißschuh <hidden> Date: 2024-10-10 15:44:56
Since the generic VDSO clock mode storage is used, this header file is
unused and can be removed.
This avoids including a non-VDSO header while building the VDSO,
which can lead to compilation errors.
Also drop the comment which is out of date and in the wrong place.
Signed-off-by: Thomas Weißschuh <redacted>
---
arch/powerpc/include/asm/vdso/vsyscall.h | 4 ----
arch/powerpc/kernel/time.c | 1 -
2 files changed, 5 deletions(-)
From: Thomas Weißschuh <hidden> Date: 2024-10-10 15:44:57
Since the generic VDSO clock mode storage is used, this header file is
unused and can be removed.
This avoids including a non-VDSO header while building the VDSO,
which can lead to compilation errors.
Also drop the comment which is out of date and in the wrong place.
Signed-off-by: Thomas Weißschuh <redacted>
---
arch/riscv/include/asm/vdso/vsyscall.h | 4 ----
1 file changed, 4 deletions(-)
From: Thomas Weißschuh <hidden> Date: 2024-10-10 15:44:57
Since the generic VDSO clock mode storage is used, this header file is
unused and can be removed.
This avoids including a non-VDSO header while building the VDSO,
which can lead to compilation errors.
Also drop the comment which is out of date and in the wrong place.
Signed-off-by: Thomas Weißschuh <redacted>
---
arch/s390/include/asm/vdso/vsyscall.h | 5 -----
arch/s390/kernel/time.c | 1 -
2 files changed, 6 deletions(-)
From: Thomas Weißschuh <hidden> Date: 2024-10-10 15:44:58
Since the generic VDSO clock mode storage is used, this header file is
unused and can be removed.
This avoids including a non-VDSO header while building the VDSO,
which can lead to compilation errors.
Signed-off-by: Thomas Weißschuh <redacted>
---
arch/x86/include/asm/vdso/vsyscall.h | 1 -
1 file changed, 1 deletion(-)
From: Thomas Weißschuh <hidden> Date: 2024-10-10 15:44:59
Since the generic VDSO clock mode storage is used, this header file is
unused and can be removed.
This avoids including a non-VDSO header while building the VDSO,
which can lead to compilation errors.
Also drop the comment which is out of date and in the wrong place.
Signed-off-by: Thomas Weißschuh <redacted>
---
arch/loongarch/include/asm/vdso/vsyscall.h | 4 ----
arch/loongarch/kernel/vdso.c | 1 -
2 files changed, 5 deletions(-)
From: Thomas Weißschuh <hidden> Date: 2024-10-10 15:44:59
Since the generic VDSO clock mode storage is used, this header file is
unused and can be removed.
This avoids including a non-VDSO header while building the VDSO,
which can lead to compilation errors.
Signed-off-by: Thomas Weißschuh <redacted>
---
arch/mips/include/asm/vdso/vsyscall.h | 1 -
arch/mips/kernel/vdso.c | 1 -
2 files changed, 2 deletions(-)
On Thu, Oct 10, 2024 at 05:44:49PM +0200, Thomas Weißschuh wrote:
Since the generic VDSO clock mode storage is used, this header file is
unused and can be removed.
This avoids including a non-VDSO header while building the VDSO,
which can lead to compilation errors.
Also drop the comment which is out of date and in the wrong place.
Signed-off-by: Thomas Weißschuh <redacted>
---
arch/s390/include/asm/vdso/vsyscall.h | 5 -----
arch/s390/kernel/time.c | 1 -
2 files changed, 6 deletions(-)
From: Will Deacon <will@kernel.org> Date: 2024-10-14 13:59:21
On Thu, Oct 10, 2024 at 05:44:44PM +0200, Thomas Weißschuh wrote:
No implementation of this hook uses the passed in timekeeper anymore.
This avoids including a non-VDSO header while building the VDSO,
which can lead to compilation errors.
Signed-off-by: Thomas Weißschuh <redacted>
---
arch/arm64/include/asm/vdso/vsyscall.h | 3 +--
include/asm-generic/vdso/vsyscall.h | 3 +--
kernel/time/vsyscall.c | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
From: Will Deacon <will@kernel.org> Date: 2024-10-14 13:59:48
On Thu, Oct 10, 2024 at 05:44:46PM +0200, Thomas Weißschuh wrote:
quoted hunk
Since the generic VDSO clock mode storage is used, this header file is
unused and can be removed.
Signed-off-by: Thomas Weißschuh <redacted>
---
arch/arm64/kernel/vdso.c | 1 -
1 file changed, 1 deletion(-)