From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796369188; b=l3zYSPMrQsswNi8SqNLRHGJLp4SeZSQ8e1WQiKVJmwrre53kpefPxuwHF1/1QCdpzHUW CHaoaO/T35JXmTpg4jPgABWBlCHVe4bnWi+6U664IoL8t4huLzhuPpW6Nfq0fZGcNjtR3 I7M4oaMFqF2ryXnXiQsGRHSTXNOvHLB5RgF9A3aOJBug53Cp9NJa1hN096UW0cxGkyGCY rW7CDfj3FAqj6sLCEksno/XbaXz3FKjdmiOOQkLB1bCk5eEVLvQ1t/xpT8FDreOpHPgdr SbYPenFIpnrYM6Wcf4wMpV4lGP1Qkw+MNDO7NCbWLf7Okx7DccHqu2XpP1TQ+hXjD5g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796369188; h=DMARC-Filter:From:DKIM-Signature:DKIM-Signature:Date:Subject: MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id: References:In-Reply-To:To:Cc:X-Developer-Signature:X-Developer-Key; bh=zg61dJI/9NLP00XQgDbfmZf4Sarvf0DeCwznJnxfxKg=; b=M9YyuqaqBzsfWxm5Af9HNC4Pv4ZM8ak5jjkMcQcoCNkVw9uQBMSAp2Q1DN9RWr4QQeaF GN9fqOuj8PQogIcRtMjShzI0vDcIILJxkTRlsHYkbo17RzObKmBgXrE+a+1dIJ/2/Yzxz fqWnCGplIxk/7FLeULcZb4PUWOneqM4L6C+u7uedc6X/BFQP5jMqn37o6S++eG0nIG3ki 66oJpwmt8zhnv5aN0mwRU3oveJpzhXvpudjtM+LzZcATm9MdoxlElxACONnSV/z5BSzza I21yt5dc9P0Tljl3M48DbD8YcC+2imY1wINzO8oPaPNBZty+HpB7lWLI1wTzKr2F2Uw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=QoSJeivI; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=vjsuZY0r; arc=none smtp.remote-ip=193.142.43.55 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B818606A33A; Fri, 4 Dec 2026 07:26:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9B818606A33A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=QoSJeivI; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=vjsuZY0r From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1796369186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zg61dJI/9NLP00XQgDbfmZf4Sarvf0DeCwznJnxfxKg=; b=QoSJeivI06aDQFFyEES/TgrLfvTmQuuauepsMqsRjgEMdTvKDUs3i5eHGgQVZB7dVpvFY/ nLvbC7tOscVIagR19WEywHN6jZi7Tc4HX1jGZylfZTSZslDSKmFbtYg8AfjShruBJfnBFB flqr9sbIFIDMcmEyVo/jjCP4iN9CuCseFsk4DCAp74AQ1ejhhRsejmeJ67HHjGtjB0+6Vp YnYpCE4biAOa/3rNTaC2glnrjIegWX0xkyxlahPf8N9cB8b8JjoC9IkIDvtI2zcies4sCr NevTMUgt5MuuBrqeBehLg3T79Qoa8wnpUpYakW3LSORgIQLy2eiLgqLM6sov1Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1796369186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zg61dJI/9NLP00XQgDbfmZf4Sarvf0DeCwznJnxfxKg=; b=vjsuZY0rfrFVPnvCt1ipFh/wFKeJg92H16owHvHt9CiIGDMfQ3rhxYc+fopDJphNRvNb/j ktnlrfZtc4SkI5AQ== Date: Fri, 04 Dec 2026 08:26:09 +0100 Subject: [PATCH 3/3] clocksource: Drop the inclusion of asm/clocksource.h X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20261204-vdso-asm-clocksource-v1-3-6fae836f286b@linutronix.de> References: <20261204-vdso-asm-clocksource-v1-0-6fae836f286b@linutronix.de> In-Reply-To: <20261204-vdso-asm-clocksource-v1-0-6fae836f286b@linutronix.de> To: Thomas Gleixner , John Stultz , Stephen Boyd , Miroslav Lichvar Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, loongarch@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1796369181; l=5390; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=nvhyinRqqGNV77bwPrvZ65o6S9N7lg0KIZ/pCejeLZA=; b=joPvNA1FhKjlSdzOap/s/8B50htxFlFpQ1wm/ERvUvPe1IhOGuVYGtg35cnPlHpatNuIqElwW RXdxMe9DQ+RD+8kH6OLkSHBukSHo7hKkVEORsHo3rGu0f7Hl+POkU7Y X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Only x86 requires asm/clocksource.h. As the generic vDSO infrastructure includes this header all other architectures are force to provide it. But on x86 all users of the header already include it explicitly, making the inclusion from linux/clocksource.h unnecessary. Drop the inclusion of asm/clocksource.h from linux/clocksource.h. Also remove all the now unused architecture-specific files. Signed-off-by: Thomas Weißschuh --- arch/arm/include/asm/clocksource.h | 7 ------- arch/arm64/include/asm/clocksource.h | 7 ------- arch/csky/include/asm/clocksource.h | 8 -------- arch/loongarch/include/asm/clocksource.h | 12 ------------ arch/mips/include/asm/clocksource.h | 11 ----------- arch/powerpc/include/asm/clocksource.h | 7 ------- arch/riscv/include/asm/clocksource.h | 7 ------- arch/s390/include/asm/clocksource.h | 7 ------- arch/sparc/include/asm/clocksource.h | 8 -------- include/linux/clocksource.h | 4 ---- 10 files changed, 78 deletions(-) diff --git a/arch/arm/include/asm/clocksource.h b/arch/arm/include/asm/clocksource.h deleted file mode 100644 index 13651c731a81..000000000000 --- a/arch/arm/include/asm/clocksource.h +++ /dev/null @@ -1,7 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_CLOCKSOURCE_H -#define _ASM_CLOCKSOURCE_H - -#include - -#endif /* _ASM_CLOCKSOURCE_H */ diff --git a/arch/arm64/include/asm/clocksource.h b/arch/arm64/include/asm/clocksource.h deleted file mode 100644 index 482185566b0c..000000000000 --- a/arch/arm64/include/asm/clocksource.h +++ /dev/null @@ -1,7 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_CLOCKSOURCE_H -#define _ASM_CLOCKSOURCE_H - -#include - -#endif diff --git a/arch/csky/include/asm/clocksource.h b/arch/csky/include/asm/clocksource.h deleted file mode 100644 index 54da0e49efa1..000000000000 --- a/arch/csky/include/asm/clocksource.h +++ /dev/null @@ -1,8 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ - -#ifndef __ASM_VDSO_CSKY_CLOCKSOURCE_H -#define __ASM_VDSO_CSKY_CLOCKSOURCE_H - -#include - -#endif diff --git a/arch/loongarch/include/asm/clocksource.h b/arch/loongarch/include/asm/clocksource.h deleted file mode 100644 index 58e64aa05d26..000000000000 --- a/arch/loongarch/include/asm/clocksource.h +++ /dev/null @@ -1,12 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * Author: Huacai Chen - * Copyright (C) 2020-2022 Loongson Technology Corporation Limited - */ - -#ifndef __ASM_CLOCKSOURCE_H -#define __ASM_CLOCKSOURCE_H - -#include - -#endif /* __ASM_CLOCKSOURCE_H */ diff --git a/arch/mips/include/asm/clocksource.h b/arch/mips/include/asm/clocksource.h deleted file mode 100644 index 2f1ebbea3d72..000000000000 --- a/arch/mips/include/asm/clocksource.h +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* - * Copyright (C) 2015 Imagination Technologies - * Author: Alex Smith - */ -#ifndef __ASM_CLOCKSOURCE_H -#define __ASM_CLOCKSOURCE_H - -#include - -#endif /* __ASM_CLOCKSOURCE_H */ diff --git a/arch/powerpc/include/asm/clocksource.h b/arch/powerpc/include/asm/clocksource.h deleted file mode 100644 index 0a26ef13a34a..000000000000 --- a/arch/powerpc/include/asm/clocksource.h +++ /dev/null @@ -1,7 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_POWERPC_CLOCKSOURCE_H -#define _ASM_POWERPC_CLOCKSOURCE_H - -#include - -#endif /* _ASM_POWERPC_CLOCKSOURCE_H */ diff --git a/arch/riscv/include/asm/clocksource.h b/arch/riscv/include/asm/clocksource.h deleted file mode 100644 index 482185566b0c..000000000000 --- a/arch/riscv/include/asm/clocksource.h +++ /dev/null @@ -1,7 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_CLOCKSOURCE_H -#define _ASM_CLOCKSOURCE_H - -#include - -#endif diff --git a/arch/s390/include/asm/clocksource.h b/arch/s390/include/asm/clocksource.h deleted file mode 100644 index 03434369fce4..000000000000 --- a/arch/s390/include/asm/clocksource.h +++ /dev/null @@ -1,7 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* s390-specific clocksource additions */ - -#ifndef _ASM_S390_CLOCKSOURCE_H -#define _ASM_S390_CLOCKSOURCE_H - -#endif /* _ASM_S390_CLOCKSOURCE_H */ diff --git a/arch/sparc/include/asm/clocksource.h b/arch/sparc/include/asm/clocksource.h deleted file mode 100644 index 68303ad26eb2..000000000000 --- a/arch/sparc/include/asm/clocksource.h +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. - */ - -#ifndef _ASM_SPARC_CLOCKSOURCE_H -#define _ASM_SPARC_CLOCKSOURCE_H - -#endif /* _ASM_SPARC_CLOCKSOURCE_H */ diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 283d7297aa79..f5939229697c 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h @@ -25,10 +25,6 @@ struct clocksource_base; struct clocksource; struct module; -#if defined(CONFIG_GENERIC_GETTIMEOFDAY) -#include -#endif - #include /** -- 2.56.1