From nobody Sat Jul 25 06:09:49 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED3D83AB27B; Fri, 17 Jul 2026 06:15:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268904; cv=none; b=fDIJtuW35zfxoG0SVxbug+JFf4TWIaL9iyne4gZcEPCIp0jUJbpCcxB1ocShhAT95OAaKXBS0vaU1H+qDFgn7hddDL8iDsncVACs8/B3RDWtiGnL9Rl/8x2TbCVGaIlaee2h3gN1HYle0eXXT5hFZwIwBWPEEclfi4S8vJ3rJ7I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268904; c=relaxed/simple; bh=KQ1WIDNBrUDk8ykSofgmkt90oehDLy0q9zMVnaVz/hY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GPtzQR0JQmBpCV0uYaInYsLwD180grThnjc0Y0NRgigGordL+UQ8vy1jEPZDj7cWMa0TJQf7hceln/fjJlasFP+KCrQeCADleX70U45ttNCtSifu5gvxoUPoim4Kg7Y/Dv8fubcHM5f81Bp3Ki3zsG42R9BWK51DC22hOSYM5pw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=KoPu31+M; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=wa74C2r4; arc=none smtp.client-ip=193.142.43.55 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.b="KoPu31+M"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="wa74C2r4" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784268900; 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=mzzp3V1NULRIcEaysPzAb8Zz8VZI2+Qui09INH6ftAA=; b=KoPu31+M7DEJiGuxQyx87dja2+v/0wKUI3+h9/FKeCZtg7vu6/6k3IHnT/lggBxuTpdntR qTpibhqKNZZw4BM7V52gSHPIGAqwL01HRWaLAY/CyVENRBuihCsSSoLSONe4mcshGUSF0q x1egn4G9nU4Hq1ziCP8cszabnt8j66MU9765uVx4IdSoMa22sfMqIA+1+kBJv7pHbty77r 8JL852FBeOqGeuCgQlR+rI6tA5JxuVRA5fMCYTeBp3VVSIgQW6lvCbl4Ge+/vvfZwApTkL SXuRIo71QG8c+aOrHL1qvrYYeRQ3v/5VKqsuZ7FB3n2oZ8FEeiaD0wUiCV5mHg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784268900; 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=mzzp3V1NULRIcEaysPzAb8Zz8VZI2+Qui09INH6ftAA=; b=wa74C2r4MpFvkqyig9S12yVatlxVHvwGiDm9hCwn4Aa/EXwi5mYVrVLxO3FkXBDRxqcDTt gqEJT59qxV7O5zCg== Date: Fri, 17 Jul 2026 08:14:45 +0200 Subject: [PATCH v2 1/7] kbuild: support generated asm-headers in subdirectories Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260717-vdso-arch-clockmodes-v2-1-756f5a5d1467@linutronix.de> References: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> In-Reply-To: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> To: Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Nathan Chancellor , Nicolas Schier , Thomas Bogendoerfer , Daniel Lezcano , Mark Rutland , Marc Zyngier , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Huacai Chen , WANG Xuerui Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1784268894; l=1604; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=KQ1WIDNBrUDk8ykSofgmkt90oehDLy0q9zMVnaVz/hY=; b=FAa52uWU8Xpsj6/KnjDGFaQteDoJ46kN18BOC30sIzWBVPkX7m8aVVcepzXZCGIf/pCAK73n6 Px23A0W+U/IDAGHdf9QdjcpyUWd3nX+GH5AVWxgvfVFA8ghJZ3TLpQJ X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Extend the asm-header stub generation to also handle subdirectories. An upcoming vdso/ header refactoring requires this. Signed-off-by: Thomas Wei=C3=9Fschuh --- scripts/Makefile.asm-headers | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/Makefile.asm-headers b/scripts/Makefile.asm-headers index 8a4856e74180..772b53ffdeb4 100644 --- a/scripts/Makefile.asm-headers +++ b/scripts/Makefile.asm-headers @@ -48,14 +48,13 @@ syscall-y :=3D $(addprefix $(obj)/, $(syscall-y)) generated-y :=3D $(addprefix $(obj)/, $(generated-y)) =20 # Remove stale wrappers when the corresponding files are removed from gene= ric-y -old-headers :=3D $(wildcard $(obj)/*.h) +old-headers :=3D $(shell test -d $(obj) && find $(obj) -name *.h) unwanted :=3D $(filter-out $(generic-y) $(generated-y) $(syscall-y),$(o= ld-headers)) =20 -quiet_cmd_wrap =3D WRAP $@ - cmd_wrap =3D echo "\#include " > $@ +filechk_wrap =3D echo "\#include " =20 quiet_cmd_remove =3D REMOVE $(unwanted) - cmd_remove =3D rm -f $(unwanted) + cmd_remove =3D rm -f $(unwanted); find $(obj) -type -d -empty -delete =20 quiet_cmd_syshdr =3D SYSHDR $@ cmd_syshdr =3D $(CONFIG_SHELL) $(syshdr) \ @@ -74,8 +73,8 @@ all: $(generic-y) $(syscall-y) $(if $(unwanted),$(call cmd,remove)) @: =20 -$(obj)/%.h: $(srctree)/$(generic)/%.h - $(call cmd,wrap) +$(obj)/%.h: $(srctree)/$(generic)/%.h FORCE + $(call filechk,wrap) =20 $(obj)/unistd_%.h: $(syscalltbl) $(syshdr) FORCE $(call if_changed,syshdr) --=20 2.55.0 From nobody Sat Jul 25 06:09:49 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F19236E48D; Fri, 17 Jul 2026 06:15:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268903; cv=none; b=ajc2kPAlR/QMQiuWf+pRQThk0fXBjPWl1gImNkv1snw3w0tt+KlnkYJb4dEmzR0UReC690IU+L0rKFtR6Jt1Ttqu0FroMR7/Nwyltj45FErnmKDTEoPrEipG5zgyWLI5/WF1IzZu5U2NUSC4XQ21kGHbBBm8dbO9vqCJBLL44ls= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268903; c=relaxed/simple; bh=p9rZWKtD6/YfP8onrdLafhoNLyPoeTcrsrG5G4dPJoE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Eiq1thNzg40QVeqb3SkIua9DyDqFsjdsQrXI5HQLfk/F650VTZ7Z9qvJHf4pPq02UYdMigGdlJRpN7iif3pW+P8rjtmPy8Y9yFpVQzkzM1KH5eFbx/LtwCSvc4mqIMwhn/Fb8zAN1H5OxmW2b+I8iTH/Evt5S1+sIs9Pg8eZ3Kg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=17HRzV4Z; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=3yRzgF+E; arc=none smtp.client-ip=193.142.43.55 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.b="17HRzV4Z"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="3yRzgF+E" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784268900; 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=itu6k/7LjVC4xl50fE8uK9psTIOXzEDbu436igm+MQo=; b=17HRzV4Z0zlFiD4PG/2rWK1+7U7sk2iNELCWctH6MBXHjK2ETGdyaAoYCDTGJ3LrDrFvro wV16qiQ5nojRN3PcU8BRBo/4Br54fUZ+uvByQqQAJ3ATnWj3jVFIJ9r4Z9Cd2K9jROAzwx 3TTkDkfSXLIEH6BVBrclGo4ilXSE4QvO+qxZN+v3HIvPor3fkAOn3a+rkl+hmOpBbWYwYh p+kUVZGCOmDqaWfGERQjDQtWA3sxAGzIt1+9W+K2/dFTvoYpJmLOst3y/V2JqvsbKqDyr+ 3sqSY3sRea6JwKgYKvyAtqIccNkdKLHRN2TlVLioucRWRYCNPGOLvpeYIVpMzA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784268900; 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=itu6k/7LjVC4xl50fE8uK9psTIOXzEDbu436igm+MQo=; b=3yRzgF+EmD5sj4Dx06hxldC/keHbN8d+rP0Sdm3QquL3zoaK85M7hsoDRJT/bWsR6NOyHZ 5RmG/Bme8ZCvrUDw== Date: Fri, 17 Jul 2026 08:14:46 +0200 Subject: [PATCH v2 2/7] vDSO: Make clockmode constants available without CONFIG_GENERIC_GETTIMEOFDAY Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260717-vdso-arch-clockmodes-v2-2-756f5a5d1467@linutronix.de> References: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> In-Reply-To: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> To: Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Nathan Chancellor , Nicolas Schier , Thomas Bogendoerfer , Daniel Lezcano , Mark Rutland , Marc Zyngier , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Huacai Chen , WANG Xuerui Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1784268894; l=1814; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=p9rZWKtD6/YfP8onrdLafhoNLyPoeTcrsrG5G4dPJoE=; b=udpLwy9jwLglOQZMDRkLQ+0ay9CxwhEU9AUOW0opBLf8VjiBjnYIcthAPCsMXPCGNmjqmBrF1 Wc3RBEpM/TLAmmUd4/wBA4QiNO/5mDrOoBQ10HU1Y7P+0ELeuNkD+6b X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Some code, for example clocksource drivers, may want to use the vDSO clockmode constants even when CONFIG_GENERIC_GETTIMEOFDAY=3Dn. But the symbols are completely hidden in that case, making ugly ifdeffery necessary. Provide unlinkable dummy definitions. These can be used with IS_ENABLED(CONFIG_GENERIC_GETTIMEOFDAY). As not all architectures provide asm/vdso/clocksource.h, provide an empty stub in asm-generic for it. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/asm-generic/Kbuild | 1 + include/asm-generic/vdso/clocksource.h | 0 include/vdso/clocksource.h | 4 +--- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/asm-generic/Kbuild b/include/asm-generic/Kbuild index 15df9dcb42a5..2bc00c67dc54 100644 --- a/include/asm-generic/Kbuild +++ b/include/asm-generic/Kbuild @@ -62,6 +62,7 @@ mandatory-y +=3D topology.h mandatory-y +=3D trace_clock.h mandatory-y +=3D uaccess.h mandatory-y +=3D unwind_user.h +mandatory-y +=3D vdso/clocksource.h mandatory-y +=3D vermagic.h mandatory-y +=3D vga.h mandatory-y +=3D video.h diff --git a/include/asm-generic/vdso/clocksource.h b/include/asm-generic/v= dso/clocksource.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/include/vdso/clocksource.h b/include/vdso/clocksource.h index c682e7c60273..bce81c02a7c6 100644 --- a/include/vdso/clocksource.h +++ b/include/vdso/clocksource.h @@ -4,13 +4,11 @@ =20 #include =20 -#ifdef CONFIG_GENERIC_GETTIMEOFDAY #include -#endif /* CONFIG_GENERIC_GETTIMEOFDAY */ =20 enum vdso_clock_mode { VDSO_CLOCKMODE_NONE, -#ifdef CONFIG_GENERIC_GETTIMEOFDAY +#ifdef VDSO_ARCH_CLOCKMODES VDSO_ARCH_CLOCKMODES, #endif VDSO_CLOCKMODE_MAX, --=20 2.55.0 From nobody Sat Jul 25 06:09:49 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D794331EA0; Fri, 17 Jul 2026 06:15:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268905; cv=none; b=HjM6kgLjOxzg99FAX1QlPaXbQta6zsY6avB2OE3tFyb25yqFOcwXGV4r1E77MlGigugCgHkRTSsmsPUCyWQRof5xdPXBV/c4Dox/8zQbQHIZJpKZzE5Kvl60GWMj/GyKhAnSWJqBVkXcrdDTZ6lGC3BIbgk+V9MZc6Qi0d95m4U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268905; c=relaxed/simple; bh=t3APLy9t2SZVxR8iClS2KaGCf82ju0LDxr/0aH1HIvc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rapH6nEYTF4yUIOspLcPnTfEJiMei4axl94JiejPxUX9ShS4R/b/yArg41rDQqwD2ATnPCT+VdVA3q/ek6nA3EQ78ZVaZhjmiCBwg+jpe6qvuEXoYpwM6K0EO7ACCzEJWVSKlLD9duCEPGx5P1GRH2Gk93jSSBp/VBbpOFUNkiE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ovjYqPfP; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=r4tWelha; arc=none smtp.client-ip=193.142.43.55 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.b="ovjYqPfP"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="r4tWelha" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784268901; 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=vQbno2WvTFVUJzsRinFLe6H6OiW8r6h0VjyMcplhKIo=; b=ovjYqPfP49nfKV50tUridaUCmN2wEut8eA8C8vu1HpUDDDG4MKVHrU+TXQvRmHTHW/SZG9 eBN4eN4cj8OOVwsHfa7RzuAN+xk7krnjKS5R+GB1U3UxER99/Eqb1/ZtQgpHkjTVKVWXUx 6hNRIh6jvfY2o+Tys7CVxCKW9AjEmKTLZMeK7CIPuXd3YnXe12XnfHniJ6ECaxNzycCOsb NVYeZ3UvZzPN8GQ73OQ/rjH0KM3zUS0Xr5Mb1wLpmkM5S5XGbOO9e2Co0c+UZR21PGGTH0 qM5qhKiWB6+VgQ1nxscWhy9jyFC5VfsKAWTvv53Q+rGOpW9cpcD9ssalzRtHIQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784268901; 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=vQbno2WvTFVUJzsRinFLe6H6OiW8r6h0VjyMcplhKIo=; b=r4tWelhaNShXcQKY3JDouYaui2eyhEbnWAbHyyJe+5Jr4uhktzkJdfKjWxywa+MG1Bb1hX dMs3a1rcRJ+vIyBA== Date: Fri, 17 Jul 2026 08:14:47 +0200 Subject: [PATCH v2 3/7] MIPS: csrc-r4k: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260717-vdso-arch-clockmodes-v2-3-756f5a5d1467@linutronix.de> References: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> In-Reply-To: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> To: Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Nathan Chancellor , Nicolas Schier , Thomas Bogendoerfer , Daniel Lezcano , Mark Rutland , Marc Zyngier , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Huacai Chen , WANG Xuerui Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1784268894; l=1015; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=t3APLy9t2SZVxR8iClS2KaGCf82ju0LDxr/0aH1HIvc=; b=xI8NbmAXSs8ogUaOoFJQHyozFpyiKZY+gTXc6elvzxJ/8aAMz++2OBYOxxmDzQezptzAU4LCo C3mfof7qJeGDv8TsxQP4KGhrtSCFjQ1QLt4BHVyXQNIUkV1JNwmDam6 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Now that there is a definition of VDSO_CLOCKMODE_R4K even if no vDSO is built, the ugly ifdeffery can be removed. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/mips/kernel/csrc-r4k.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/mips/kernel/csrc-r4k.c b/arch/mips/kernel/csrc-r4k.c index 241a934543a8..59eca397f297 100644 --- a/arch/mips/kernel/csrc-r4k.c +++ b/arch/mips/kernel/csrc-r4k.c @@ -126,14 +126,12 @@ int __init init_r4k_clocksource(void) clocksource_mips.rating =3D 200; clocksource_mips.rating +=3D clamp(mips_hpt_frequency / 10000000, 0, 99); =20 -#ifdef CONFIG_GENERIC_GETTIMEOFDAY /* * R2 onwards makes the count accessible to user mode so it can be used * by the VDSO (HWREna is configured by configure_hwrena()). */ if (cpu_has_mips_r2_r6 && rdhwr_count_usable()) clocksource_mips.vdso_clock_mode =3D VDSO_CLOCKMODE_R4K; -#endif =20 clocksource_register_hz(&clocksource_mips, mips_hpt_frequency); =20 --=20 2.55.0 From nobody Sat Jul 25 06:09:49 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65C983AB29A; Fri, 17 Jul 2026 06:15:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268904; cv=none; b=UhRDteQM1DbRrGjXTiFybhf125y0PHGiXM4u/Z7xTETYKc2+O12upPMr1YzvlHkhqwV5AerBefKhVdJ391cPbG4/bpw1UzY9WotyvIhm/eUtt5SytVqOlc8FHfPIEEm1EHX/i5OBrwWzeuRHuXlh/LbH0gV8Yot8I2SKxxsO3W4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268904; c=relaxed/simple; bh=iYdmmwYnitqCJzJDOgChDbBElLI/0ThiAUZVrCungs4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ObJOwcpvqfjnALsaAlkKjFlrxA9p1QOZyGinEUkLaJ684jETXXEyOHAiw/ga93ZEQxgx16E2ovJiJd1olpb4eTWwmrSpeZKNkxYZ43eKlUHFxG5ZvenGqlkWVLQxN530zeIQYiA2oa8twiDpASzb3X085C9mwTxYrqzUj61BKW0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=P3SX6syH; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jSwIUk6v; arc=none smtp.client-ip=193.142.43.55 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.b="P3SX6syH"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jSwIUk6v" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784268901; 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=Wy4A5Bpkj2zzKdn6eNsWOzDqtG3uGM/7aAgamplxzrs=; b=P3SX6syH0JPq+BSR8L/gxIQXPwFFAE1o3/ph72Jp32jnjpxe38j3E7hjV4F1gTP2WgTwoX ddZ91PW3NOhqQNsORIGBeh00/kVAuX9mpGes7V7A7uV5apMInBM/3qvHupwtjYo2FIHoEv 6X2nBf6kkBntHAsfm8NY14cfoErnb9FkM94LqODtMEcPSPDp3E6hqxVhGc8Phzd8gOsVyH J9D4IP8GbsIa/Ofz1ykBl/1AQPH57q14h/1Sl8dfWELEfww7E0l02mrj/KowFPbcrDqf00 sekRqUJjtROJBEhIuQWnarqJK0yNhKAoUw2IeErUi/17vT3L2dIDVgHmhO3CAg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784268901; 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=Wy4A5Bpkj2zzKdn6eNsWOzDqtG3uGM/7aAgamplxzrs=; b=jSwIUk6v3+SYazZJ8ekQtG0on+6D+EFv408GtpL3sHwiYVbYBQ+5W/q83dsQg/4vpWev3r 904VBVIAQUebi+Ag== Date: Fri, 17 Jul 2026 08:14:48 +0200 Subject: [PATCH v2 4/7] clocksource/drivers/mips-gic-timer: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260717-vdso-arch-clockmodes-v2-4-756f5a5d1467@linutronix.de> References: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> In-Reply-To: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> To: Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Nathan Chancellor , Nicolas Schier , Thomas Bogendoerfer , Daniel Lezcano , Mark Rutland , Marc Zyngier , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Huacai Chen , WANG Xuerui Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1784268894; l=811; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=iYdmmwYnitqCJzJDOgChDbBElLI/0ThiAUZVrCungs4=; b=BFHrzLnVuye2tr+e2SIbjrPgLrJp7uaBwOS9ADqw3d0W/ptiTxietvQ/GYUtcy6TC11wLvy6x s4V0okkKzhyBxX091qQRCW+pdzTXMAeayl0oyQpbQAksL41O4o1wJc0 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Now that there is a definition of VDSO_CLOCKMODE_GIC even if no vDSO is built, the ugly ifdeffery can be removed. Signed-off-by: Thomas Wei=C3=9Fschuh --- drivers/clocksource/mips-gic-timer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mip= s-gic-timer.c index a1669266c94d..1501c7db9a8e 100644 --- a/drivers/clocksource/mips-gic-timer.c +++ b/drivers/clocksource/mips-gic-timer.c @@ -198,9 +198,7 @@ static struct clocksource gic_clocksource =3D { .name =3D "GIC", .read =3D gic_hpt_read, .flags =3D CLOCK_SOURCE_IS_CONTINUOUS, -#ifdef CONFIG_GENERIC_GETTIMEOFDAY .vdso_clock_mode =3D VDSO_CLOCKMODE_GIC, -#endif }; =20 static void gic_clocksource_unstable(char *reason) --=20 2.55.0 From nobody Sat Jul 25 06:09:49 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5E793ACA6F; Fri, 17 Jul 2026 06:15:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268907; cv=none; b=DZyW7ovjzKJbZf4POF8umwvd8turWCUx+6PMGWuGlw7h5E0HQNQ47hKb6jsYkVsbZ10sIylpuRt8HNB20bWAn5dEfiujUAj1pIRNfzmz2mB0IayiP6lp1eCi33wCgT+1PswSH3sru0y3ADCR9M+cb4jvj0DuYK2ZN6jpgtdVIZ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268907; c=relaxed/simple; bh=lW6xuPaawuRjNMiAq3NjJ0vYClBA5grQp8KXYE1QcYY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WxuMCBW8JSnK/F+DNdIZX503S3ojGdlslTBxZ6kgv8f3VBIKNrLlZn3V8MwG1ZjvrrRNUfR7Ad1Vc6youq5aTxQ67ABZYvgGnYN0Lc8hxWRr0EQ9FyvXCF2dgpcnmSNnrVKu1ZGt64xUWNhmiU3h6bTwF2qFQxVTzHFBc/v27sE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=kwP+ZcbE; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=zjvF0lrK; arc=none smtp.client-ip=193.142.43.55 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.b="kwP+ZcbE"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zjvF0lrK" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784268902; 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=HNMoDfSuSxJw6SemBX4XpeIAZF6FAMIZenhTrRJVbbc=; b=kwP+ZcbEqDHqXFtctAmbUthHdgfiiuFcN2xHVOYaUW7PDhIR6C289v7UXiK1eBtTmNxrMm rz8dTIO+98UVlTaDRsll2yY0JCSK1xmhZ8fcr/LSwUsPRvFjXdZx3BSQdpZcczfEDs59du ljx+O0aVL+oPKU/5/haP59Ds0Zhelsb8dYL8uQOqCPVlt2kjUEifhVhKVZqgti+d1LDZjW Yni/3nNOvYDSiJc3WCS8I1bvDfZqJxeK/QjSlWPkZVGeRqJ39ZRrVnnHjcYYtmTBNj8Q8y 9kDdXJ8R+z70lvDEPB2ZcU5dZsoZyS9m7S80ob9ywiDoH2FPQ00pcdQOjYr6OA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784268902; 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=HNMoDfSuSxJw6SemBX4XpeIAZF6FAMIZenhTrRJVbbc=; b=zjvF0lrKY5L8Q5gp78MHGd7S8u1KObPwa73KgVbSZReQycUp5yzr9zhhZcUqRJcMuSV3XD +41pq1V3hc4uGiDw== Date: Fri, 17 Jul 2026 08:14:49 +0200 Subject: [PATCH v2 5/7] clocksource/drivers/arm_arch_timer: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260717-vdso-arch-clockmodes-v2-5-756f5a5d1467@linutronix.de> References: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> In-Reply-To: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> To: Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Nathan Chancellor , Nicolas Schier , Thomas Bogendoerfer , Daniel Lezcano , Mark Rutland , Marc Zyngier , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Huacai Chen , WANG Xuerui Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1784268894; l=1164; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=lW6xuPaawuRjNMiAq3NjJ0vYClBA5grQp8KXYE1QcYY=; b=eXGwaK8fUQKZ2qgKSwMeVNdT1BL4zzlDIrGbovIZgFnCvBWvLcRXwdi1C341Kpq1ckzLl7AP7 MaEHx4ncMWxAJmsA/+HulnDegxAfFq0oPXuQT/WwGPJdnlJvdSM7+yr X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Now that there is a definition of VDSO_CLOCKMODE_ARCHTIMER even if no vDSO is built, the ugly ifdeffery can be removed. Signed-off-by: Thomas Wei=C3=9Fschuh --- drivers/clocksource/arm_arch_timer.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm= _arch_timer.c index 4adf756423de..a5157d8a8a13 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -56,11 +56,7 @@ static struct clock_event_device __percpu *arch_timer_ev= t; static enum arch_timer_ppi_nr arch_timer_uses_ppi __ro_after_init =3D ARCH= _TIMER_VIRT_PPI; static bool arch_timer_c3stop __ro_after_init; static bool arch_counter_suspend_stop __ro_after_init; -#ifdef CONFIG_GENERIC_GETTIMEOFDAY static enum vdso_clock_mode vdso_default =3D VDSO_CLOCKMODE_ARCHTIMER; -#else -static enum vdso_clock_mode vdso_default =3D VDSO_CLOCKMODE_NONE; -#endif /* CONFIG_GENERIC_GETTIMEOFDAY */ =20 static cpumask_t evtstrm_available =3D CPU_MASK_NONE; static bool evtstrm_enable __ro_after_init =3D IS_ENABLED(CONFIG_ARM_ARCH_= TIMER_EVTSTREAM); --=20 2.55.0 From nobody Sat Jul 25 06:09:49 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E27F63ACF16; Fri, 17 Jul 2026 06:15:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268907; cv=none; b=sTWDgJ/rNhSUtJc+TLoj03pweoHIRdGOUf/sQhk53W/hCSQRSdufQhT/erseRPb3lmeL93d+WZqRZ9he+o0lKmMukZeYcwS0mLIPopJDBXXnWostwa6Iqzr9OvLrVfd0FoXJNvJ5Pofje9HNyYagFuijkkvQyj6ReCfHjI/vWJI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268907; c=relaxed/simple; bh=6yZi1E2ORWX3erxZ2iLgMw+pOXO/qHsB3RdbekGUNbY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u8teN2fV0XN2wMu/uswTG4Rk5Q1+CvpRgAdk3N3wcnrgJ8Ak600YII0C4BgJVL42JRQJRTntOJB/itUMeYgITogLb8R4rzJHYPfFZVnciAVz2dTS3svRFuz3fhkkVT43+DAO48Lm7r5pRixe/Duqtgwtg3cF8C79RKcEnr0Uh60= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=u4eNl9UU; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rGP6vb6J; arc=none smtp.client-ip=193.142.43.55 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.b="u4eNl9UU"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rGP6vb6J" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784268902; 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=wb2SX77zyxaYXrQzUmclJ/k81+yHIaZBLWgIqd5QYek=; b=u4eNl9UUcvupBQzTRkd62Gu0i5e4taE85FUWmk/2jcLm9rp2S5n/GfHRkmR+4f8ngi5KAJ MtraBnPkgvXVZxTIMrynXKcN17bVph83CXMLuyexF//+Uqvlil1Taya0TAZI7Z5QHUaG26 5F9I4Keypt2pkMjC6Gr/2eYpOVz5mAMsNEXFTYn68ZeVNTQp9Rf8eDGwcx1lvI+aWwzgkR vm5g+VcPXgE7npGpF5ONYgK8WmLrE1ImuT8cX+jDBN2T1DXUjB2iizF/l3ob03D+vq1bY0 uKf9eKwKUO/IzEO0/Yj+Xyg5ZBTC5lELET7QPGdAZNR0TyUxza0fwfuUr/FMFw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784268902; 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=wb2SX77zyxaYXrQzUmclJ/k81+yHIaZBLWgIqd5QYek=; b=rGP6vb6JJmsFltlNED4hUaJ8a+h2yiSVYkGq/zIdu5++Fs8noFiqCMpoTCpb3SPHjdr84A L4PBLwGCTsOiDKCg== Date: Fri, 17 Jul 2026 08:14:50 +0200 Subject: [PATCH v2 6/7] clocksource/drivers/timer-riscv: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260717-vdso-arch-clockmodes-v2-6-756f5a5d1467@linutronix.de> References: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> In-Reply-To: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> To: Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Nathan Chancellor , Nicolas Schier , Thomas Bogendoerfer , Daniel Lezcano , Mark Rutland , Marc Zyngier , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Huacai Chen , WANG Xuerui Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1784268894; l=898; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=6yZi1E2ORWX3erxZ2iLgMw+pOXO/qHsB3RdbekGUNbY=; b=rGhEvH4eB3yQp5VIIcgk0f5HSBovo4PTZyNAEZbeclqqk6dXhrkWD3CoKxYIoBOGuJgAsnYhP VCnQJqzmezKD+StMJTmIgFSq9ask+Vsf9Llxdphw8XKMcC+cV2EzgaT X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Now that there is a definition of VDSO_CLOCKMODE_ARCHTIMER even if no vDSO is built, the ugly ifdeffery can be removed. Signed-off-by: Thomas Wei=C3=9Fschuh --- drivers/clocksource/timer-riscv.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clocksource/timer-riscv.c b/drivers/clocksource/timer-= riscv.c index cfc4d83c42c0..b310e6721fac 100644 --- a/drivers/clocksource/timer-riscv.c +++ b/drivers/clocksource/timer-riscv.c @@ -98,11 +98,7 @@ static struct clocksource riscv_clocksource =3D { .mask =3D CLOCKSOURCE_MASK(64), .flags =3D CLOCK_SOURCE_IS_CONTINUOUS, .read =3D riscv_clocksource_rdtime, -#if IS_ENABLED(CONFIG_GENERIC_GETTIMEOFDAY) .vdso_clock_mode =3D VDSO_CLOCKMODE_ARCHTIMER, -#else - .vdso_clock_mode =3D VDSO_CLOCKMODE_NONE, -#endif }; =20 static int riscv_timer_starting_cpu(unsigned int cpu) --=20 2.55.0 From nobody Sat Jul 25 06:09:49 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9ED743ADBA3; Fri, 17 Jul 2026 06:15:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268907; cv=none; b=HulM3DYm+iWJ6N+SPNh2gSjKnKyVh8mw9KUVvPi6uSHGJ/SHR/M8HEFYxj4+uzadePveu8Dkbn/F+VlWWedSMyJ3TzwlfcMR2MhZjSFBRTvsC2DDg87hA7i99HLtIMdaF+u+JeL8p5YWvzSC3CoYWd+ytObZmZVhJUIa7rzuUN0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784268907; c=relaxed/simple; bh=/YNIeu5dDcZIdRrt5u3jACXGrJAGqwCKT4gDnUxNTGQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WsHRZVbZpRKQtF/XMC4Q2IIPGUXsvKUoCxJI1Z/RKqnZr2o4ucIgMcZKLowI5sQQLLH4L/cXvoi+X/2oIMNjPrlLr6GDNi17UNKG3coABeEW1IYaE7ZRCV2i0sWpP3OwFiKqxdA5dsIhTgDPJyKmkplx+gnbuqnCqXt6/cWdGwQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=VNVPYOsb; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=8I1DwzTV; arc=none smtp.client-ip=193.142.43.55 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.b="VNVPYOsb"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="8I1DwzTV" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784268903; 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=cIw1nW13D3Q7KVGq3dxw/myoCljjqPSm8YvxUaQYWA0=; b=VNVPYOsbX7c1CIM8F7eHlMuXMtSmy45txWJpFs2iCH7yQCSNeiVTBBxJzTSjtvXQpK0oZT T997yxk4Kvu4sGaAjJ8mFfOQFaoe4MTKbfoblYxFpjtu8DBhE9mp5dDdjiKgXDBgnwpKOG yaSqIl5Qu7s9pXI19F1iv9O83rPG11nKgjtL/xSm+aXdXBzLbwKqviRgJArMflNwQF5cYE CHJ+IduAZn5/lCKKZ+U4ULJNDQH/Hmgz8ZEhKrz3WG+6lx2TgHawzdzvn+oOfK/uycAkeO 1FN2BnXWt8HguVWd7fQ65Rj/MiELe+m6gXxvU0PbF1XZ0WBwxgy1+ZVRFu1I5A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784268903; 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=cIw1nW13D3Q7KVGq3dxw/myoCljjqPSm8YvxUaQYWA0=; b=8I1DwzTVpqUUamtI9UCb2EvwLrfrAAHexhzpGSaqZ+r2SqkHmQdH0+k5ovmHZIJ4CS9lRd wLwAc6+3LDduDkBQ== Date: Fri, 17 Jul 2026 08:14:51 +0200 Subject: [PATCH v2 7/7] LoongArch: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260717-vdso-arch-clockmodes-v2-7-756f5a5d1467@linutronix.de> References: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> In-Reply-To: <20260717-vdso-arch-clockmodes-v2-0-756f5a5d1467@linutronix.de> To: Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Nathan Chancellor , Nicolas Schier , Thomas Bogendoerfer , Daniel Lezcano , Mark Rutland , Marc Zyngier , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Huacai Chen , WANG Xuerui Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1784268894; l=780; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=/YNIeu5dDcZIdRrt5u3jACXGrJAGqwCKT4gDnUxNTGQ=; b=214rtg/06/j2dYk14bVrr0sJ50TBCWX3iVo+aQXbK8yH33e5JHAj4jo6f6SALe1iyxSeGi8nJ TGV415gYICwBJYPC4sSsDENn7Hc4S5CQJ40r3cOD43Mp0pwgiakUKLQ X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Now that there is a definition of VDSO_CLOCKMODE_CPU even if no vDSO is built, the ugly ifdeffery can be removed. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/loongarch/kernel/time.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/loongarch/kernel/time.c b/arch/loongarch/kernel/time.c index dbaaabcaf6f0..5892f6da07a5 100644 --- a/arch/loongarch/kernel/time.c +++ b/arch/loongarch/kernel/time.c @@ -212,9 +212,7 @@ static struct clocksource clocksource_const =3D { .read =3D read_const_counter, .mask =3D CLOCKSOURCE_MASK(64), .flags =3D CLOCK_SOURCE_IS_CONTINUOUS, -#ifdef CONFIG_GENERIC_GETTIMEOFDAY .vdso_clock_mode =3D VDSO_CLOCKMODE_CPU, -#endif }; =20 int __init constant_clocksource_init(void) --=20 2.55.0