From mboxrd@z Thu Jan 1 00:00:00 1970 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 92C002E7397 for ; Tue, 7 Jul 2026 06:07:24 +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=1783404445; cv=none; b=hKbOMF+dRZM0zXY4lfc/tjOSlfHAt4XRcMBqg8cFqtlg6rD5DG8YY9CIZT2q7/IqO11dmMiOGCYlf7M79aHO72WgMQkbS0MxeAk8b8CG65fpD/pFYXfrU6oFtBFLuWH0Aiha1bwD5Eck5EupzXQ1VdXgnhn5rle4GQ1zvoQXlGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783404445; c=relaxed/simple; bh=Q8G7L8b7M4Qy0COKRXC54ZiAcczMRuSNmJgN7nqI+Kc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mOkCRB78D6sYrE81QAgTiC+dZN4IzmDSVt2itaothRfn/q2GWs5vw+tYFdQoeLmFNdyxmejDeVgWeEkgP4MFWDYCWwljX+hkw/psI1RpIiIB0ZVdPNGoIpIyxwgHti+vOtgohoKP6LsAdiuLKJiLvoosOwWkddue7LPCprdF60Q= 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=DHVcsMI6; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=8f7N3zE5; 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="DHVcsMI6"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="8f7N3zE5" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783404443; 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=C4sQNafCM9DOhbNJxOxjSLPQwdnV2VtJ+qo+b1tj4Nk=; b=DHVcsMI6mFQ2D4gZha6vNhg/R0EMvXQtolrqfvVZ+XoqHaaB1sLJO9WoNc4pwBaWR9UDaO XIFKr3VV9kDJXqB/mVXG6TQLT7Qzm550UAh+R7QUdZHi7fN4YvLrhPP877FOTjYdMrScin jOksn7NPX+PxZUvrCjLUsxSMw4HKkfXnPZcyViO4BlpnTxVn+hRpr/umPGxFiZsiScqxeQ D2CMngoi4xJLXfz3uO3Jwgl1peAXwMvw+9a+KPsIFPagyrvFS1Z1nNzk75mMgB7D4OTB04 DMALhq26oe2op1qxOryDrUeizIn5+tWKcH9tjBRLv8AhZ+DuZgIa2n4S8HOuPA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783404443; 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=C4sQNafCM9DOhbNJxOxjSLPQwdnV2VtJ+qo+b1tj4Nk=; b=8f7N3zE5Emnlio8PVsH7Qnj4BBdivXUo0XYyyErVuInqJzB0w1xoNnMtlfs3hacjonnGN0 MMcfdXHRyYQWy0BA== Date: Tue, 07 Jul 2026 08:07:14 +0200 Subject: [PATCH 1/2] timekeeping: Fold vdso_time_update_aux() declarations into the generic 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: 8bit Message-Id: <20260707-timekeeping-header-cleanup-v1-1-e85ad96409a9@linutronix.de> References: <20260707-timekeeping-header-cleanup-v1-0-e85ad96409a9@linutronix.de> In-Reply-To: <20260707-timekeeping-header-cleanup-v1-0-e85ad96409a9@linutronix.de> To: John Stultz , Thomas Gleixner , Stephen Boyd Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1783404440; l=1360; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=Q8G7L8b7M4Qy0COKRXC54ZiAcczMRuSNmJgN7nqI+Kc=; b=/M5IwInJXdexXdPQyVMpJSBgLihaUu0ZI/AjCwqkP9FIZbLdUM/7FTPZyPr/rM+uZFdCte1oy ZC6zgaEBcA9DJ5REPtjVjaRjnQuvry11NLwBJYO3Jje2xyGF7AsvBra X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The only caller of vdso_time_update_aux() is already gated behind CONFIG_POSIX_AUX. The additional check in the header files is not necessary. Remove it and then fold the declarations into the existing CONFIG_GENERIC_GETTIMEOFDAY ifdeffery. Signed-off-by: Thomas Weißschuh --- include/linux/timekeeper_internal.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/linux/timekeeper_internal.h b/include/linux/timekeeper_internal.h index 4486dfd5d0de..58c83d6e65b3 100644 --- a/include/linux/timekeeper_internal.h +++ b/include/linux/timekeeper_internal.h @@ -194,6 +194,7 @@ struct timekeeper { extern void update_vsyscall(struct timekeeper *tk); extern void update_vsyscall_tz(void); +extern void vdso_time_update_aux(struct timekeeper *tk); #else @@ -203,12 +204,9 @@ static inline void update_vsyscall(struct timekeeper *tk) static inline void update_vsyscall_tz(void) { } -#endif - -#if defined(CONFIG_GENERIC_GETTIMEOFDAY) && defined(CONFIG_POSIX_AUX_CLOCKS) -extern void vdso_time_update_aux(struct timekeeper *tk); -#else -static inline void vdso_time_update_aux(struct timekeeper *tk) { } +static inline void vdso_time_update_aux(struct timekeeper *tk) +{ +} #endif #endif /* _LINUX_TIMEKEEPER_INTERNAL_H */ -- 2.55.0