From nobody Fri Jul 24 23:30:47 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 3C872471429; Wed, 22 Jul 2026 07:54: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=1784706845; cv=none; b=RWhn42DEfq+AhKFEdcczaE2kmt8ccf569j7YRkfyG5SsUeZpfPcH4taYPqJLZgssFaWdLp8VHy/pUrMg3QLVi+kPKRKzlr3+X4TTtF1c7FY3gn38Such3YxjsazSQe2Dscm2jZxpHUtCayV8m41dJ9SFMnhWiWGw2xfQ6xvyRik= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784706845; c=relaxed/simple; bh=KQ1WIDNBrUDk8ykSofgmkt90oehDLy0q9zMVnaVz/hY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LJBHGhXLF6a1ASeK0dAIgyc7aD8H7mwrZ2aPmikn9EbXVV2OczCcARRDaPDYMMQtexZPzBwBehnnxVw0fad/BQU6Qwz6cMQbkzOZFjjyRPG6dxI91r9RvBrowJ8MfuE4K8psonQERIDBzIS38kLwWizFVOpWyaFRsiW3lU2glAE= 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=g2nG1VUD; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=UJwBHtI0; 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="g2nG1VUD"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="UJwBHtI0" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784706842; 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=g2nG1VUDQ/YUv3S36y8SYF59i0yIpbzHC7ftklC+i7zZBT4eRMNNaj6XZXXAW9jEQWQ3HP 2cdvg7rvUZGSwtcbf8ALdRLh+E5e6hd1Jry04eR5AA3iX/E4vkVLlSDor8V/iD9Z5kDbZe VUEmayb5vsI7QWoACDw+VKXr8TiiDlFgWzvqLUcRzd1aupaguAl5r96GvX/KxOsWuMv214 0bqbxO005d/74RRGnSnD1wdVDcEjNTDM/Vx5Qq3RuguVESO2AM2AWINyCx3jI43KO88mov 8qDH5y32PKEnne3kVDAqhTdPAd1BPKK0en6fBJLdox9EZZb6kHi2gdUp2YziRw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784706842; 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=UJwBHtI04+Zi6XonNItsTUX9pubhbs9SxZEPH19ZCNQxtzi5xqViipAMmyTlXS3NDzoMwK +C3Ikmn1UjQUBsCA== Date: Wed, 22 Jul 2026 09:53:27 +0200 Subject: [PATCH v3 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: <20260722-vdso-arch-clockmodes-v3-1-4c5753191cc4@linutronix.de> References: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@linutronix.de> In-Reply-To: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@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=1784706840; l=1604; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=KQ1WIDNBrUDk8ykSofgmkt90oehDLy0q9zMVnaVz/hY=; b=1x/MuKisB5TM072YN94rjvbdb2TJ42U6YURtDiybLXfdQydzkV2y2qPt60l1nojy0LO144bsz 6pB5H5mktKLBKl9da755reHZVf17Fe9Y00BKndIGJY+Un+rxUelY4Sn 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 Fri Jul 24 23:30:47 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 9454446F4B0; Wed, 22 Jul 2026 07:54: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=1784706846; cv=none; b=mA2W1glX3m36wLJrciTTx4GJpnOisXhU39fO10Yliozek0caK5hFRrzoXOfc0QOGX7ikxas7IzORNlHS0Bq2/+e0+QyBmUg9did6ohbWCiMgQftZ0bQzHS4wvLdbfs7O2r/xyEsWXeXprXs13KE2du2fxI2Ki8dsEuudmuNsWCc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784706846; c=relaxed/simple; bh=sXLjsimGUSXXUsc2qCiD2uC+XdCfB1PERWY6JkUJ0UM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cvifXeE3I008pH9IDpnjT6dXuQcRBgNvK2fGni8agURSnqJCn6Qbg3Q5WS3ylCkdjB5q8WhbMf7ZdLzCn7BvkAUENfrXY8+rCsntDCrh663c95fg0vq/YoYz/UwSc7zi6VLPvE04bPljrZ9fWzSxDc8fT1gdQPpsMZubVD4mhGA= 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=F61HdFym; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Zrn6X7yw; 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="F61HdFym"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Zrn6X7yw" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784706843; 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=F61HdFymViC3ukVd01nJrWkuHvyUyfEkTyjXYwQdSGa1VcGUAFtLgIFQDyzo/SlZQjhdOz hcr748HWnqQ2iNyQh2fh946cCB/vpvqtvBN5Two2EEPARvAz4b9/xVIz5UDT9k6GwTU1oe JInpKgTPCXngYDyOhmzz5scEvHI21UV263HuHudO4phGg30NvbXax2uxnAS0CLN+V9qZke Hx63wFpY7+uAbjHWvTMYMrMtDlXZoRhoFc3+kEhLYcWOjYAIQEYnaCwO1B1oq2DqyUeZfZ m9JGaBHLbFQOID65bbBGeTOSf7kOK5Lw3iJLixldcujkODCcf//cbZ2bwf0dEg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784706843; 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=Zrn6X7ywEQ2VhnWDfmjyo8A17SuZSw/fMV4ucdja337+xN6fnXGR7tpU66i/wAvLLNWEVw ATyakOMGiXGIuqBA== Date: Wed, 22 Jul 2026 09:53:28 +0200 Subject: [PATCH v3 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: <20260722-vdso-arch-clockmodes-v3-2-4c5753191cc4@linutronix.de> References: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@linutronix.de> In-Reply-To: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@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=1784706840; l=1748; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=sXLjsimGUSXXUsc2qCiD2uC+XdCfB1PERWY6JkUJ0UM=; b=cXaFIgcYiUB2wwrHHfBslBD7y0L62mFnT4tLN0nF30Bff5jzXmwM85Ect4R6/BWgWEyjN6qvd VxIt+W4M/+6AfjXy4eatdZbv3Fs/PhuGkcZr60JIA/xjb/L4ldzmP4R 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 --- 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 23:30:47 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 1C80F470453; Wed, 22 Jul 2026 07:54: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=1784706848; cv=none; b=NTRf3LJ43KRPpjNbxaJvmBW52LSgPHmcllU/lBIaWUU8tCGnkFcCJIlDV3PAvydYEw0QYy9xnlgEtjyuPcA8UjYnPUh7nbEDxY/tHUTI1UiE8ggDmNxVgaxN0DjjfHYlZDXukX8UsIvPLXkz4J+vzR53vP2BrMAHSEcuF9t4+TM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784706848; c=relaxed/simple; bh=t3APLy9t2SZVxR8iClS2KaGCf82ju0LDxr/0aH1HIvc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jT3pL0cXOgJPvCLQDlSzzDccFxOIcL2/zVGPvjfywLudgv/mejSNtayH2iuoQcS1RYijrh2VyeKph0WRGrJYiNtzZp6pNWNmuN2cNXADBNqM5kcDlDn+5hPzRIFL9o9GXkn8QpItq+b+tA/wtT9BtTrknc8NpEn0Q1pxutNcYQI= 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=LKY7C7tf; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=sqvOfTw0; 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="LKY7C7tf"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="sqvOfTw0" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784706843; 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=LKY7C7tfTK4hNNjqvs9SoRMIMTNRS97ZlznMKPJd/o0VcyqL4oMZxkFKywOjea3+3nl0BC MoyoizzY2Fo+pKnDZbz52N4A3PnsKvywIJRJKKgpwfl2Pbpt4E90U4/sxVuVbCVbuOwFtc VRCQ6VcQiAkH/a9fhuIpgcEJwhYQu5WLfYMEnl5zhnvFIwkd7mq3mrC+QBKNl3+IKWXdxk 0wCikdKPMQgp6a15XWf4ROpJ1JcNPAWclud4ARyRf9GJ6LjHzTGmRE00LGLwkuZb2LWo5J lawQ8Fh+Do0aKCTOeALJhwL00HkFSniNA2RnlS7UPD8u1XFjoC3PYmcj25DGBw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784706843; 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=sqvOfTw0cChbxqmSe7acokNhETxrB9krRBUV+IXGcyS3GfSnA2p9K6i4nTwy2FCkLb/8PK tAOHx873s1CDL0BQ== Date: Wed, 22 Jul 2026 09:53:29 +0200 Subject: [PATCH v3 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: <20260722-vdso-arch-clockmodes-v3-3-4c5753191cc4@linutronix.de> References: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@linutronix.de> In-Reply-To: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@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=1784706840; l=1015; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=t3APLy9t2SZVxR8iClS2KaGCf82ju0LDxr/0aH1HIvc=; b=uIxQRvVPAiyarjQZoFTq+WiQV0PMfsm1ed9ZoSCQZBqxSTsN8eNdGkdcFomursBXVd30Qumhx +nredqHFZbwDng2K5SrwNJB8xJ6geRjJGvDD5cAay/QdT2uEfhlSRct 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 23:30:47 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 897CD47255F; Wed, 22 Jul 2026 07:54:06 +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=1784706852; cv=none; b=GIck/gVqh0rnhmAiFW/jPuNF5UPvHLD9tyWsq9nnMCtEKf7hz8Gx/qXNO67QTArClxZAzn0bnF5+CRmFhVwv5CjaW5i9NF5vs/EErD8qjiE78WhZo8ZHBZezEgb7Jn/huqWVshz+Q1u9tZPkrBgRfNWyqcaqAsxVyHVtBlY2ToY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784706852; c=relaxed/simple; bh=iYdmmwYnitqCJzJDOgChDbBElLI/0ThiAUZVrCungs4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=g4QPVeWsTTxznmphKA1TV6FngilA1K1ym7K/aOPdTDCkhe5ud89Uv4A1vIhtbVKhNwykVj6AhHloFHXk6New6VFJNLAsGlf9y99z3yrT8NytuWfkNpsHbSRQIwU8O1sRhu+VMFuQIqPNi8k+UQYOevD0zROfTuO0w88o6c08KcI= 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=skRTAQ+a; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=8AtRNNGI; 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="skRTAQ+a"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="8AtRNNGI" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784706845; 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=skRTAQ+a8QkdkqSL6xqu6N+jYG2V/9BTt/U29MOBwUwpB58zKwXDFacwgyzsv9PR/OhetJ AMBFz87o1iWRhHiM0AggqZXnBUXq6g5peqYAdEe4s6R1yoN8K4/ZmqnFGHR/unGR4npwhP JWcSxoa+h2GYIEGrPnaZ7Rwh8CdZxnuvhQ68UNVntkBmFmurkg5yGwh8kwBb2eRrEniOtj 4aiyUgoRC1b9R8UdXHuN2b2zAcNEQv/X+gWm0g1uozCyNiPVZSHWHyl9bLVgmpmekt35uh NzIIuYghVZsZCNhbtfPbWlBIpEjs76T2U0ktXIizUhHTaqifUyFsFXOjC+UI3Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784706845; 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=8AtRNNGIfGgq400WNhL47QMz7+eYI9iW6miEUp5mJtZ3BphfmYuREg/ZmGBLZNWC1JZjXo fxzBl0/UCwOjKSBA== Date: Wed, 22 Jul 2026 09:53:30 +0200 Subject: [PATCH v3 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: <20260722-vdso-arch-clockmodes-v3-4-4c5753191cc4@linutronix.de> References: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@linutronix.de> In-Reply-To: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@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=1784706840; l=811; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=iYdmmwYnitqCJzJDOgChDbBElLI/0ThiAUZVrCungs4=; b=ERed7CvjPkQB+1xB34BBcq2YhhyH5BFC82wAhQY2D11iV4dEU3WVmHHH6AE1BxKn7aJGwh1Eh Dojk58JDkaPB6GGxSmj/XKZ9QlXGjtLVgQE2uHLhUKznA+bhY3yCB7j 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 23:30:47 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 415CC473C7E; Wed, 22 Jul 2026 07:54:07 +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=1784706849; cv=none; b=ECCFepOT5CJAXP0CdnvDERmmqCAVQAgjDl+fJ4yf9A8b5bMbQEjfJ90QlFRXw+K63dWYnxnA91Kq0zfQnoLK9Y87nVbT/qfkXI+hCzP2zeIbbDqrRXgYw89xu+9NDffNZKdozm5gRyDz/GITws2jTF3Ld8p9+9jGVA3wnZs3IWA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784706849; c=relaxed/simple; bh=lW6xuPaawuRjNMiAq3NjJ0vYClBA5grQp8KXYE1QcYY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ek0v65KmgiCjVEqorxWZHEmrdbQnaWSqbtW3blHfD3uS5U7WAZkPsMjWWjumlXe6YfkjRPJBNuS9fU/DHI4Yzsn4lK9eGecOBSRi0dubeHJLZqDzoVYmObcRp0lHEpAMfIhpIbn+gLFKyf7N/7JABMtAZF1fxgcaSAiLioOgdCk= 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=twHNINz4; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=lB1XSUsj; 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="twHNINz4"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="lB1XSUsj" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784706845; 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=twHNINz4A2SgJbaSpIoLpDzTN7YT8azPLRBbltI/J5f5JMFChDr8oKpgh4SphRI5q0chFt mIPt+MQ2aRzIz07nxSovXnyMXPg1KvtHBtf4JmSzpQfnA04J1OjCyPeWCo8P5hajJ2WY+E Thci06srHo7uC+ZeBH0kZyOb5GpxJUuMxCk8aFYNGUNAYFFOhp3eQVvY7quO9bhPE7bk7j /eyh5hftII79ZkBHyq3Er3e8v4JqrrXkDg97jlTR82zs9vf7rnReVoqyVVzecVDyyZyhtu EIb6A5EgWn6Saho2Fr9g3YE2lWq7KZq0PnQkaRxWjP6SkiT+w9bSY3EkPSYH+w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784706845; 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=lB1XSUsjBnCXqApB7W0QcRzaNLHwWXJ95tO/El8sb5mxMywWYDiELO2wOTmTzx2LdDsz8i VxPjEIma+g3/LRDw== Date: Wed, 22 Jul 2026 09:53:31 +0200 Subject: [PATCH v3 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: <20260722-vdso-arch-clockmodes-v3-5-4c5753191cc4@linutronix.de> References: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@linutronix.de> In-Reply-To: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@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=1784706840; l=1164; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=lW6xuPaawuRjNMiAq3NjJ0vYClBA5grQp8KXYE1QcYY=; b=NRifUvpmMshkko5XZJtE/zr5zJOM6EqTDxL7DRbDbjNzbeJRv7QVDtCV+e1/53nNIfaD2atG2 wBt65asPzndDT9QEKpNeCrDUgSOjQCMFhMZAk9SKEfv5di8/SfedsSz 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 23:30:47 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 5C7A447607A; Wed, 22 Jul 2026 07:54:08 +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=1784706852; cv=none; b=DbmiT2x4Zg96+CuTj0fy9Im88wiHKitWV0nvKY4qhgofzKFJgRGsFmKV748y29LLqbrckMAUi1foUMmc/ppr9/wA0zeNq8G1S6QmaFbS+j9DjkO8z8JB/muKWCQvt1L9PAOY+IuD2qU7Z2EKWQpWAFL6OYfYAKG+p2ZJRHvdjXw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784706852; c=relaxed/simple; bh=6yZi1E2ORWX3erxZ2iLgMw+pOXO/qHsB3RdbekGUNbY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PQJSSd13tSditF3yR7CHDFnU79H3bLNsIcR3+cQ7pZb0lTdasjvhUFtEE4rPGBSkzvpDvxbkljRQ5ei54qbDijUmuNWDzmHbhoCinDLeuI1SqMP7paPEd+eIlmgoSy/Zyc32oCeilgEF2sJzPwUyXklE36IqRDO6DYZKsdqWKFQ= 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=ZCBbJxE3; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=DztDMZiB; 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="ZCBbJxE3"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="DztDMZiB" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784706846; 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=ZCBbJxE3//P0uRFzQdyh4Tk8RAFRJ0pFNAPajAbypuEOfdaAwoQfqlRO4hoXX8WLDTvNLw RKVKUXhH4VLrFGEO6FT9KB+r59rxBK93bY9F3IkFKzQF6YX1M1O8kHcYuNLSrnmvHtY/c5 KP8KzN6jGQmGkqN3Gpg14x2hl3wB1/NBz7rrQ3If/cvIoDHINfOrKz0QqFOGMGzYXPFGZl eLd9pSn3RwWgPPMx44oGODy8r3CkZZ+QIrF6pkFp9RSPIVIfvTCRyR4JBTUyYMTnvePHRQ 0+KMGVAMvlz1E2VqvZDLe6ZyYtdT+5+NKgNSmwwTg64MBCLiRjlOhzoV7+JLzQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784706846; 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=DztDMZiBvtlkUKsi3537Br2VZM+T/cUdgoiTSf2nFbsp+V/enzkjjTL7RdgOtZRfV2cr02 Sk2b6uTHaZl//+Cg== Date: Wed, 22 Jul 2026 09:53:32 +0200 Subject: [PATCH v3 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: <20260722-vdso-arch-clockmodes-v3-6-4c5753191cc4@linutronix.de> References: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@linutronix.de> In-Reply-To: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@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=1784706840; l=898; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=6yZi1E2ORWX3erxZ2iLgMw+pOXO/qHsB3RdbekGUNbY=; b=OGxNmRewbphCOeeEqi4jJWvqSgWZHS+7S8nITbTNvq2sjy66pfRkWG5/Eed//9dwpW/qsqmcf WZU0U94MfAOCuMaOVGEFxs42C1e4YdH9XZ5GMMfNHRGGi2GzJFbPoHL 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 23:30:47 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 17A95476CE7; Wed, 22 Jul 2026 07:54:08 +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=1784706854; cv=none; b=spD5ESfXwd3z6VDoZkwkq+kN3LeqvcyiPFIOKcmp/GStn0uhUlX7mcd0ye5dnMH6ptOa5sc7YUttJaNAVGdc/qQh6kNK/dU3je3cSXuDXFQ6Lxze32czmd1vDR2Ut0H9+1//rfGVfwIl4B+eIwJoVOW0WxGX5vw/pkGwo9ooApM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784706854; c=relaxed/simple; bh=/YNIeu5dDcZIdRrt5u3jACXGrJAGqwCKT4gDnUxNTGQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tcnRaSqgrAFAbwiYZX1qLFUlRcpwZFQZuLy97OeZuHJhDOrrZ8lobIjH3/mywjzfjE0PXFfGHu77GFlFfz3u42ZtdoK1+iKaoxv1SikogkNi0v+x42qBDfKO2n7+dt7ohcdKftuEJq6R0HyQxkRQLFi+N91IZIkbILoX7Ru9K+w= 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=lj6BiwqY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=pZ9riHf1; 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="lj6BiwqY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="pZ9riHf1" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784706847; 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=lj6BiwqYOrE0aDK2EFCLrYh5Af/utIViNCL2jpjzeuhVjQY2o7E0syWc3xaDMlXsmophVW vMt2uiv93KyIbRt7vixOBsrVneDYRipZK14F9VpCu+fpzjub1m/VWYsGQHhSoQX71uzNWC 4lbdPT0NBdY0mDocXFy4QuPf9m3IoNH5gdfE2ZGwdwns9EUxDDUrQbHZI1ZJ/30erVO577 ECLGCRDHiqOgj95JBz/0saAvAKtzknTaEYtXJEYcCzHqXYv08isH1DeEgyN0SfyDONbkEo lStk+Ha1FFp8PegCpYZuz8zXM4w9PjeaFdWHlO/j3s93+cKvsep/Q+DJj+r6Ug== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784706847; 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=pZ9riHf1XBn+9Il8f07lihrpmD6LcwQuQjzR6UhCqua7uPaoroJ1pr0/k8yptxhrEorYbB 2KA8S3Gcgs6D4PDQ== Date: Wed, 22 Jul 2026 09:53:33 +0200 Subject: [PATCH v3 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: <20260722-vdso-arch-clockmodes-v3-7-4c5753191cc4@linutronix.de> References: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@linutronix.de> In-Reply-To: <20260722-vdso-arch-clockmodes-v3-0-4c5753191cc4@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=1784706840; l=780; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=/YNIeu5dDcZIdRrt5u3jACXGrJAGqwCKT4gDnUxNTGQ=; b=Twbp4yMRDwWEmhDfIOAFA28rWYRwAbqDc0G17Sn33XZK9XFt8oiKPwZa1+eguZlEquMr4FJPP MwusKRX/awmAQUdQzwVFaeuP/TuKXw+pg7+hNPizD1GzYkynl7tsPHw 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