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 819FD30C61E; Thu, 6 Nov 2025 10:02:22 +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=1762423344; cv=none; b=C50VYd/2Z1QkaVRFKj4jRkGhp1s6PwD1nDeBNgcJk+LdAX8Bic7LKZtjLYLLNeq/g2TKeMoiVHHT9DTHSK0V1SK+uEL40gTikqPAj2cMs1+BcK+VXLfHLlModaab3KHlfHB0bn07LVaDW6C5zuWjyxNtxP80eax0Ox+UPrtyU2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762423344; c=relaxed/simple; bh=u5qksLE0CkeBqNMjOIpIJvowjU2FK+BsJIgAtLa3Fdo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OV3dNuKAaSu767mTvhe+ujgoG6d7rJW26jRIgCRkjTB+15FUjIofzx2LvYgdKWvqkdBgh6C/fTvnxPyOeRgn5vpZdWgaitUQQLIMSqNsJWQMMEXqzKFwblUficZNlbg49mbuO6/1+OpEhNTW3VZgzJtkaLmn+VmxLybtyx9IFiI= 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=adlixGJR; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=cRbVY1Tm; 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="adlixGJR"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="cRbVY1Tm" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1762423338; 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=FHcQizXKIlU8rlwocB6TkeD1z+OIKxCXmz4FFDxeMJA=; b=adlixGJR4IldiRTbGD7/4BRp4OcSYWtdeSNrF85Vq87eF/Mlbnksmyg1Genmxrogv1bLDd ILIhBtMhLd1SqzqXtSms4razZg0WZxllN5xn7z6qltWk8fGA85MK8gSfC7IQhwg/FDYBGU gvEWAGygNEspZH4+Au5xEc/rwdPd0iWCf9xROjqWzuzlBsgwJOu+zHWFBpZq/xRcM3vS7L cRRQxY1KS1Ue5FLb2irZvFGclP4JbWOBwRGJsaP2LXmr2+NDuceRigCW6HNMYlO3KoNdnp cNwlUM+8Adsi135pCZ7T2XwJL1X6t7qnSywCEIcENEWE8HeqPX8vTLw4R8dLuA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1762423338; 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=FHcQizXKIlU8rlwocB6TkeD1z+OIKxCXmz4FFDxeMJA=; b=cRbVY1TmRvc4UXwlz4ukHwV/bbbjLtb8qIdQUfjzQTDyML/5UxZCx4EYE7iSplduoKKrwY Kk1AnhY5CxkBHBCg== Date: Thu, 06 Nov 2025 11:02:08 +0100 Subject: [PATCH v5 15/34] vdso/datapage: Trim down unnecessary includes Precedence: bulk X-Mailing-List: sparclinux@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: <20251106-vdso-sparc64-generic-2-v5-15-97ff2b6542f7@linutronix.de> References: <20251106-vdso-sparc64-generic-2-v5-0-97ff2b6542f7@linutronix.de> In-Reply-To: <20251106-vdso-sparc64-generic-2-v5-0-97ff2b6542f7@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Arnd Bergmann , "David S. Miller" , Andreas Larsson , Nick Alcock , John Stultz , Stephen Boyd , John Paul Adrian Glaubitz , Shuah Khan , Catalin Marinas , Will Deacon , Theodore Ts'o , "Jason A. Donenfeld" , Russell King , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Shannon Nelson Cc: linux-kernel@vger.kernel.org, sparclinux@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linux-s390@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1762423327; l=1543; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=u5qksLE0CkeBqNMjOIpIJvowjU2FK+BsJIgAtLa3Fdo=; b=UC+kTtENPldSam5U22tKiHqhjB/6T+TDdaVD5UtltV6ZO8FyvrKwnhXnREIRJiKG1XwM+tcmX lIjJsRq1FLoDiX/jCCbyL+92WWiM9//+Y5YZp4L9lJEacbdtVVkH2I4 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= vdso/datapage.h includes a lot of headers which are not strictly necessary. Some of those headers include architecture-specific vDSO headers which prevent the usage of vdso/datapage.h in kernel code on architectures without an vDSO. This would be useful however to write generic code using IS_ENABLED(), for example in drivers/char/random.c. Remove the unnecessary includes. Signed-off-by: Thomas Weißschuh Tested-by: Andreas Larsson Reviewed-by: Andreas Larsson --- include/vdso/datapage.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/include/vdso/datapage.h b/include/vdso/datapage.h index 752856b36a3abf82b849451e5d5233b1067b86f2..9021b9580be229b2001dd17bfbdc236ebda1cee7 100644 --- a/include/vdso/datapage.h +++ b/include/vdso/datapage.h @@ -4,24 +4,16 @@ #ifndef __ASSEMBLY__ -#include +#include + #include #include -#include -#include #include #include #include -#include -#include -#include -#include #include -#include #include -#include -#include #ifdef CONFIG_ARCH_HAS_VDSO_TIME_DATA #include -- 2.51.0