From nobody Fri Jul 24 21:29:55 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 9984D30C617; Fri, 24 Jul 2026 13:38:09 +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=1784900290; cv=none; b=NSrdFysmLkQBo9gudcSDcw32JdGcfrBooAptGzi3oUVnBMClijz12uawrKFNGMIU3sWMyIezULyH0RkhZT+z9zGwUw+G3qMOPrfypx8woIqWVr4ILcAlEV4H6pJQnjRg1W1rfpMesaTd8+CzYY+vq3s0B/GjyOGvpPl4lmRn/GU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784900290; c=relaxed/simple; bh=Zev+SfOmyEH9fuyzl0FmsV9VVq9RYb3UzolE/5lna3k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=o6rXqEhNZrnfzOr1mB0d9GENbdxlir0AYXOxb6FcMYP4jtPx2cOOj5QUfje23bnupx2bkhrD41yuLC3cmez5rXsTmpGJATjIZOkWuOiumS5IBFTmhrOASZSvY1QfkkAnJAQzMviTZaLPibn2AORodXLnEtoh2Hgyte+ALO9ROmU= 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=BrLLO1tj; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=F1iGaQnC; 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="BrLLO1tj"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="F1iGaQnC" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784900288; 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=k84lHI02AeLCB93IudPhY7UADh7YGZV8FCgpA+ZF7P0=; b=BrLLO1tjYhSGwyDAWasIuyNQDXJsuyGklSui5fMZONsKkP1m5sXLh5TEhyFkEwKd5+m3y2 fzQAc+LlO7nGtNN0ss6VDCzqr3zg0hJjr2Pb7w/keysNILWib9LWJ+eidE8UnlW9VpDnX1 Qlo7ri+aLG1aKgl6IngIkvzrqz5IFXwm2KRokPKWktQh8+PtJvPs9uzn9+YtK/0Ft/hZpU WfOxgGgAxQ1IT4euvdi9YJl9dB4bTtaD/+Z0FkT8cWxd5I2pKlHu1+YsXYRViVO0av0TZI P7XUKIxnKoTfjDHLRTJqeanyw4JJw9dunvC8WU2/02aGdPKYQwDeBBCuaV/3nw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784900288; 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=k84lHI02AeLCB93IudPhY7UADh7YGZV8FCgpA+ZF7P0=; b=F1iGaQnCRfR4UqHuVk9ZmdTRJMF80i+Fz/zJGdx/+NAq/m/Y/2SFARDiSyIpBG4x5Ncxup Uxil6gsiEIbWfyDA== Date: Fri, 24 Jul 2026 15:36:18 +0200 Subject: [PATCH v4 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: <20260724-vdso-arch-clockmodes-v4-1-ddbe447be860@linutronix.de> References: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@linutronix.de> In-Reply-To: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@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=1784900286; l=1603; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=Zev+SfOmyEH9fuyzl0FmsV9VVq9RYb3UzolE/5lna3k=; b=7LSqC528B3expK5DAr0ccLIPXQLZl0CZ+lRD0g98zRXGLp+iYu3EIKcskmML7CJrbWN3Eagwj y/hRMY88MKYAQn0vWRro12snAVO4gtR1Q/2LpUB8ZTb256tJSvFdE/x 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..b38931314ad7 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 Fri Jul 24 21:29:55 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 3453E253B73; Fri, 24 Jul 2026 13:38:10 +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=1784900291; cv=none; b=UwtjiPE2S4lIOu657+2+jwXhRMOAhMfGRy1xGMUC3TOW2jWjL/JUCQQezchkiB55zbjiSe6r6/qDr+s3+I//vV6k9exWxt5wnPGWo2KabNH9T2mBygqbN7N+tOKO+HAc0Kfz2g/qhJNXRnthoWydDdTzV4a8hXLkS4uzhL4yf7E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784900291; c=relaxed/simple; bh=sXLjsimGUSXXUsc2qCiD2uC+XdCfB1PERWY6JkUJ0UM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bznqT3klOiPld7/dEnx0luQhtx+sh1+k/oRL9gmn6FYZRD+In8vkj1ePdAO/xnizXHGESMQK39v/lcN6AMgjStge8U2hpdLSY53x6+24TTigZHVVFV+9zgj0yzoZoIDxyETvIMa6rOyTM/t0Oc54yFryvCLZE2GP/XkdOmHu32E= 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=LolrfjT1; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=1yJn5T7c; 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="LolrfjT1"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1yJn5T7c" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784900288; 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=DETzi99iW5LSyN+yHRyHD/USkiX0xstftPX39RhkXRQ=; b=LolrfjT1ZGrmlYO3lelRd/aVORyCKK8u8LHEs2BF0CPZxtrSs34o3ETbtxQXZLrJT3GHkW 6xdSI+iQY2zJIJf55MvFtJI/vLyADG+NdN1Zxq3U7wgNdfdjsYWInb035OxjI7r9Kn5VQC YM5yk8cpElby5ltCNP4pHzr9k5eHi/TfCo0Fiy8n15+stdjouXdxHV7bNFnoUFa6VzCr4L 9/J+IGjlivsOOW3m6hbHOhsZLDvmZ7siI8goneELAAe8rDdMDeHXGf7VO+oPHlAX6uNGGN rtC8sZaCqtQRRVor3mDNBb2WAKtyr1jWxzvjj47RVo0XRsBRwThfNtj/33IzzQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784900288; 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=DETzi99iW5LSyN+yHRyHD/USkiX0xstftPX39RhkXRQ=; b=1yJn5T7c38mgra6MmxYGQjPXTkR8qdUsJwkbLwdHP5fN0xvA+PYhuJsNfoen+JYeufSEoT 86Pa5cItesv5l5Bg== Date: Fri, 24 Jul 2026 15:36:19 +0200 Subject: [PATCH v4 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: <20260724-vdso-arch-clockmodes-v4-2-ddbe447be860@linutronix.de> References: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@linutronix.de> In-Reply-To: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@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=1784900286; l=1748; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=sXLjsimGUSXXUsc2qCiD2uC+XdCfB1PERWY6JkUJ0UM=; b=YQZ4SJ9LKPw2mQO9sn76zUzwQfDIDMnEmscVXz+TzF1vluXpBJaS9RGdqqF/NblxiYNxs8IRa PiJSseFUHzVCchlR4q/bDKZC51QjWoXOGODpdcX2t+5nx4A9atnsJMK 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. Always provide the enum definitions. 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 Acked-by: Arnd Bergmann --- 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 Fri Jul 24 21:29:55 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 7A1613B71C4; Fri, 24 Jul 2026 13:38:10 +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=1784900292; cv=none; b=EOatri2tdo3htJg0ZXNOsyd+4yJdtt8GBMOJHO+bcRZo+gFkjxSUsLNQidpHeTbFuzpioH9a3nBTiXhUlyjdhu2WXMLfY2A9Y0YaMQssouH0DVG/h0L2CkpVQ1QO0xie60izhcHv7G/YWsTBz6ZtPkNn50Lznmo6YxX8ERq95Es= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784900292; c=relaxed/simple; bh=t3APLy9t2SZVxR8iClS2KaGCf82ju0LDxr/0aH1HIvc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=g7uAROzqPUPQbbPRNMPfiAqpkAbiYP46iAr4ysTOVZ5aSbXv3w6BUWhovui7fnrEpUiboX1nV83oWdok8RnoqBRm7qAdIUN1GBSOdJnx1nagnyEXefPFwM1mrIc+pGhz22ANUPSvfERxD6mIfU0DEsUMUCg3JU0rsLWRyiaLbDA= 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=w08vNlN/; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=mICZxiNq; 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="w08vNlN/"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="mICZxiNq" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784900289; 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=w08vNlN/1qP0TE/LEs3JpUNTMcs0fe5tTihU2b5AIsHLb1HS2DmwuvwNS+ZTtmsOdi54hp j79csgdIF9NYqEjvu+hvpCC0M0ZieIdbOft2NAhkWY8BH8N+54xCKnYsAHUUcomBiiQBGi ooF7WNOCftD2asHsJ08FwOcWE0f3Tfy9BlVe7XeP8luZ52oY/9gfGIUSVL1glTF2v5W1K7 h6zmgAHkwVUXVn8OXzplJxv+XBa5Csh2IW502AQ96AxvY/I2Pg6XB1CImOq43mwXB6LJdj yGkzb5YTRH0S662RyTldlVm+eB5DhJbl4CWwYX3qUwzfl/wDU4naKFw7VAb2Lg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784900289; 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=mICZxiNqacPfXk7IriXNrjH35mh19WZ8bYoPtldamZ94WReuMP7pfPY0H9svB0WbRiI01+ RolmnmFovvUiUACQ== Date: Fri, 24 Jul 2026 15:36:20 +0200 Subject: [PATCH v4 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: <20260724-vdso-arch-clockmodes-v4-3-ddbe447be860@linutronix.de> References: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@linutronix.de> In-Reply-To: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@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=1784900286; l=1015; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=t3APLy9t2SZVxR8iClS2KaGCf82ju0LDxr/0aH1HIvc=; b=ZeqNGUZ8fvsgAE/k9e92r2SrvqOVJqmOU8TykTiEM3Ah7oL/sCvlUn+kXy3/j2iIKYkXoZkLu uiEZTPtRcB4CxctGflsRyedBFK6uyBO4RIB3heK52dAYfafL84lNPI9 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 Fri Jul 24 21:29:55 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 1079741D621; Fri, 24 Jul 2026 13:38:11 +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=1784900292; cv=none; b=pnzhnJdsEDC+zE17vGCH2oICjjneuHyLky1zmuA/TLEQA4jcJ7wLR9evoVD087DaXtnyT1hECFIiykN95s+8aUP50WQ1qxxfrX2fpNmAKkssa1B/0xC5dX+4bCfzqblYHal63iSq3Ubxr/dTj/87QeBzrjRP71vukvzbf+xzrGg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784900292; c=relaxed/simple; bh=iYdmmwYnitqCJzJDOgChDbBElLI/0ThiAUZVrCungs4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SVou/I9R2cEPochbuSd0ekBZKye+Tg5H0j+ibLA7v6NiTtCAF2ZjE4Y7C8sEd9YjmMUYwItofSRC1Pqm//WJ9fPcG0pW8xj3wSqneMfNhX0IfdxprbV5Xw5IZzqWm/9f09GknkSTcVuivQwMMF7ZCoR+hEEulq+ySmrxct8WxrE= 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=2U8jilIg; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Q1F31dVh; 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="2U8jilIg"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Q1F31dVh" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784900289; 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=2U8jilIgSOX2MesW1TqFhZVOcZum0yVR+Gd7Zq27fM1Y5Bl5046LD6QTN61G5WhM56lgDT cN3YkYdSKhGvl+Sn07+Viosz01xADZp6v79ssYcuxuSsQxOajv6G/Nx4Ww6sXfKQXSh8K6 MxSZ9gi+ZI1RMgMESPFM3ar8injy3V1AKseq5y36/LW/mhTgFI/OX789GubXKnh+cvEstG RQT+XEDqpQvQKhqzQpwJjiMmBz2ATyB7r4xoCliD5SyUFRlWnUB+vumNCKNSHbuyhCgu0X VP3Sq5QTxIJ/aL45iaoMxxXhwSSdEql5B5GhbWoqyyh5A2IQ2GrgRpKvs+ttCg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784900289; 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=Q1F31dVhel6UUSlIPpjaopNSvozk4hIYscfNtC1KH/KwTte+yVAJaOSrOKmhQF3b9F4xR2 sEAk5FUXN35py2CA== Date: Fri, 24 Jul 2026 15:36:21 +0200 Subject: [PATCH v4 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: <20260724-vdso-arch-clockmodes-v4-4-ddbe447be860@linutronix.de> References: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@linutronix.de> In-Reply-To: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@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=1784900286; l=811; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=iYdmmwYnitqCJzJDOgChDbBElLI/0ThiAUZVrCungs4=; b=X7Y7/vKfKKbTG+YhMGCzch0cwqw4NfwBkOT+/8sZgEEsO4MMp/0iULjNfrCHGytfA0BAf9G/y h6kcR+C8LhjBIiKCio3Jdse0pQ2Y2+4iTSTPHZ3GR7STeAW5PDD3wYG 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 Fri Jul 24 21:29:55 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 82201434E30; Fri, 24 Jul 2026 13:38:12 +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=1784900294; cv=none; b=Ap8gbdiod6zEuD3JA/wQwWNU0mxmkOtgCMBiOHa+C2gMqBp84riFDl5p12hJeF9yQ/MFPipewfWjm5cSSwirZGQcbYhMb2ZPf3DWEW5Cs7iROl+FyFBlLBqjpmQonO/xDoyira3/xz02BVLY613nAVPFlBeEg0i/E5GFqVEg2L4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784900294; c=relaxed/simple; bh=6njepM9aoRoFusxbCJ2Ptn3ocLjwqPODCMiHZfeqmAQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=itvkO8Hzyw+3gY3lAeqTr3rfVZ8Dz4sZ6gL/51XncdTZwIOo+OXfkaxLuXC8yglbQMHwwyfd2VKnjX+PMwZ+Jyr4EJ54V2P09atGOKIqdoa7knNTueeCa9fpFUr6jc73mPAE4LMImDxnW95olVAw8zWVSwtauYK0BstACuIfDMA= 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=uqUzV0NY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=QdpEAYG5; 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="uqUzV0NY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QdpEAYG5" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784900290; 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=XQMLx+20gZIPhu6fhJcix+G46/n6BMZRZhFfen7tOCo=; b=uqUzV0NYFb7ieencYml2faMhFQzti7121pHxXW9cmMkJRXRbna9CO2POLwIjHKLsM1H4xK Dd+sjptgKWWJd6EX+F9KhC/hpNGJ0/GO9+4oJzoxqiGxR0DK7cW0wjEYKWjC2balVEEKc6 e2rVK+ayx0idQ7Sl6p5ptYgn6hmKFQ/Ta9AhmHnlW9+BH4ADrGPR071uSVSDDFADEWAB0f NY4ws6fqfIjtqUDPOpP9BsAZyPdeOhrc2WikDFnliqMoY4uOUt4GWRsM0PHHLgGJ2RA6HF +BWuJ1FIgDdlpFf1S6CXSkfIpc3FdehXz5UsqnlJu1e2VLFIXwAamCl1mGKyKA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784900290; 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=XQMLx+20gZIPhu6fhJcix+G46/n6BMZRZhFfen7tOCo=; b=QdpEAYG5R2YSM0ionPd/7GINsEOmj9QnFSv5exEX+24Cp6+grLf8aMdPl8z4sH7AibE+E3 8QTPGdJjY08s/lBQ== Date: Fri, 24 Jul 2026 15:36:22 +0200 Subject: [PATCH v4 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: <20260724-vdso-arch-clockmodes-v4-5-ddbe447be860@linutronix.de> References: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@linutronix.de> In-Reply-To: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@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=1784900286; l=1205; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=6njepM9aoRoFusxbCJ2Ptn3ocLjwqPODCMiHZfeqmAQ=; b=YJHIR6wb3YNPF73ed+3uprMQgLye4yx87dQoWXQ018PvGabImJT4D4l3VYkwXmofSixRkGii1 OkSo794dInuAtIcjhdqMoxSjVlGQJ9s9KPkzCm00ye2yWwqDYaX18XD 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 Acked-by: Marc Zyngier --- 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 Fri Jul 24 21:29:55 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 813114343E1; Fri, 24 Jul 2026 13:38:12 +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=1784900295; cv=none; b=nc6fqESntL6PIC6m82lB4qF43dkgQjH/+iIdo2Q2obnR1VuBV4sJnPm3hxL3tECXMn3FEVvh9DtddPglam3OP/a39/DstoHsnGcsdbPn2poq65iGBHmro3i9hnAsxCbI2EqcHYV5By9Cm66wZUBKSQRAPJwuylSjQ6X9qEd0Ll4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784900295; c=relaxed/simple; bh=6yZi1E2ORWX3erxZ2iLgMw+pOXO/qHsB3RdbekGUNbY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pw0WXohmexRwlyK+RKkGFXeLvpgUIsSjxSrYF4VuRDccgQAGOGOFXFHVkoKGscc8HW4znz5eymm3tS5VUzfEUErZXsSfAP9HYnCR72pn4s06Ek9y1NugI2jqchVGDoGu5HhKVsACUCwn2M553+oPfj/vwqNcAA/4Odb4N80ckxc= 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=fJQA63Ah; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=86dQJzWW; 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="fJQA63Ah"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="86dQJzWW" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784900290; 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=fJQA63AhXqN0Wt6TrowHVZuSsMNP0G4WVVoLUsYDckEfWkcsS+utv4/QPUaNH5Bg828tO2 ZTiTmBU2Z5XxJ/irTdAXpPPtpRqd7/nltgO5vmspMfkiLohJxq4mSeSa+Gh2msVxqp/i9O cv7/xUuqPSE29eGuUNPF+01vv6DY500HCfGh2Okt3fMAhmeSzdpVZiL6rU6hKW5z4Os9XD 1InV/Grh5c8MB9aVWJfaPBqdruV8IbWeAxN2H/yvpPeOTTu0PjydJfuQ1M0R9w2HfCaqSh PvifLZ3qpIXrQgiYmLPaM0AfsYJGvnvMKHUjwNcj9o8kQlwDDPqdcsmR/RfwFA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784900290; 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=86dQJzWWaZAgS+vRVMF0ZufUKVhSBsgdu+ylGsup4jHHNu757Z3axqD9G1bvaW38+rYPvv C+R/sJ+vgrg3XOBg== Date: Fri, 24 Jul 2026 15:36:23 +0200 Subject: [PATCH v4 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: <20260724-vdso-arch-clockmodes-v4-6-ddbe447be860@linutronix.de> References: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@linutronix.de> In-Reply-To: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@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=1784900286; l=898; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=6yZi1E2ORWX3erxZ2iLgMw+pOXO/qHsB3RdbekGUNbY=; b=nmad2uoX7O2hqUY1EMlB36avIhjqVM82Dv1sCDRFVS/iKzjJOA2F5DmkLQrmhAf+pwqMcVWqO BT3A90/wOmTB3fU2MFpx3uScqaGM9MwiSK27/z2LrHGJXh7kGVc5def 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 Fri Jul 24 21:29:55 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 87B86435509; Fri, 24 Jul 2026 13:38:12 +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=1784900294; cv=none; b=CuXrTYIBH7y4W5MDCFHijOUN367AjIobS6h/Sil/3AvqbGxqq+hXLc6KWAOMflUSmgExN0PO3PLwtYUoEeTmk5oUF1voWn03wGOGn1wpb7QHVxnt0098ZF6wG8q7330TCcPaAr7gY1EXK+4sOhR3q/uNQQBpTbS7jIe4GdncoIQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784900294; c=relaxed/simple; bh=/YNIeu5dDcZIdRrt5u3jACXGrJAGqwCKT4gDnUxNTGQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=THGWF2qNVOSM8J/lrue/urLiOfUXd286257MIeMXk3j3B7yOX6vFFOMGAn3R1X6nUom2IDtXWcey5RkcGJ6S1I5mTjQfQnb2N4Zollw/Q/gL4Da0/AynxeiQU59RazaXk5vpHwBzczNPfKnLqBunh6XeHFJKlBjQGJP0ifeT7WQ= 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=P6QsKIcO; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=X6D9RzhI; 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="P6QsKIcO"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="X6D9RzhI" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784900290; 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=P6QsKIcOM3wbtosTcti1hgVEjlSxJo1mJTRJ9rQNUu9Gh67ntWPVBWiLjkc1UQq8W86rec mkoRaM7tWTvj7JlnFKEcQbBCK7Xu44s+GtpNnvPf3a5YIPhd19AKaNj2QG6cb8uJ6p2Ba0 k9Y+fdhWXtTaIlCaRXYwAbbdB4Eh1xbgavilH8bkOkTuzQ81PFPpfzZQkIu1mnKS1lRd+t 5w+FIFYIeIht/W3Bjjvpxi48l74/xDMmGY1XgDqkmMD4BI4AIjFS6J6oHbtjg/UT29GFPg Ttsqa41wmt4CDOJh3yk+Im3GmR342YQRe6emKn1B91Ucdbx7Mko+uCM7MNBshQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784900290; 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=X6D9RzhInEuUkkie6FUghkOkKZYRkjouvhaiCe6fHww+jTAT6fXLnus2NMw4hEdlj+5uAs dGRzbp/3bgB7qFBQ== Date: Fri, 24 Jul 2026 15:36:24 +0200 Subject: [PATCH v4 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: <20260724-vdso-arch-clockmodes-v4-7-ddbe447be860@linutronix.de> References: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@linutronix.de> In-Reply-To: <20260724-vdso-arch-clockmodes-v4-0-ddbe447be860@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=1784900286; l=780; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=/YNIeu5dDcZIdRrt5u3jACXGrJAGqwCKT4gDnUxNTGQ=; b=ezHXJP72IsCgQjW0X5M8lHPPXidInmHgcdYjAVig8SvM52XGjn7gGTMAJGL/lETzsPys9CJZg FdUROq9MD9nDvwQslmoauS+BqUFEbWJPpJvpup8MM2zgYCJObAmPucI 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