From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.28.170 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796120665; b=bPCd42Z56LBLMRbt//m/IAqoFS/sZsQvhbFdcF/SrkVN079vXmD5c/i66KhL7jW514EL x7ZwfV2wrsHfWXMlQ46/IhVreLX34yGm3FeiGoTDUX8X6az2p4EXMNnuLxvJqYha1htK8 V9rQTcRy33LDKTEB3yY52AyFMtDiwBW2CAlzrB22zqHXdnb9/BYGQ6RB/GaVhppKFQr14 szHRMA2WQloXSYHzrrT29ftR2eS7a9EEMOALqeXj/9jZBSgQ3rHegu/u/1r5EVOfxKjik 5YhAcc9mpHlTys/rLf+GR30pJ1FDXIg+XEp6DZA1bx8LOYSnNGyRfIpCuL6yTMGgAoA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796120665; h=DMARC-Filter:DKIM-Signature:X-Alimail-AntiSpam:Received:From:To:Cc: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=soUKR1JjLdJCDNSKYY+EbkfRroNmQ6tW1etLLc681/0=; b=cKjdYE3EdWZoxrFKO8mm1nXjHlx2wPscHOaTfSC5fjrQmpBJShpzv1XCQYOldYqqKKv5 xSOTl6bgyVuUaBf6br3ySuLR4MnemNVJnWNDFewtICxLJfUNCmWrO0AdadOa10Lm3dxf9 w3n9aofmjk0FDSD7L0WeZvSNe6PV+RPj68J7Ao7a2BBJa77msFtt0dESPdFHWsdKXKehW KKdyvrCJEUWYLmo9cmUEhmGAg6Ejmsd6YLCG0G/r8inkCWoImuEXRr07hCktPj7BKk1cd No+w474UuGnhiIKIobucRhFzQMwEeb22srODVnCgUNCZ/Ot2lCgn8lRwuEhypVzOb5g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=xiaopeng.com; spf=pass smtp.mailfrom=xiaopeng.com; dkim=pass header.d=xiaopeng.com header.i=@xiaopeng.com header.a=rsa-sha256 header.s=default header.b=eWoCdkOh; arc=none smtp.remote-ip=115.124.28.170 Received: from out28-170.mail.aliyun.com (out28-170.mail.aliyun.com [115.124.28.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 933B9606A336; Tue, 1 Dec 2026 10:24:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 933B9606A336 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xiaopeng.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xiaopeng.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xiaopeng.com header.i=@xiaopeng.com header.a=rsa-sha256 header.s=default header.b=eWoCdkOh DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=xiaopeng.com; s=default; t=1796120662; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=soUKR1JjLdJCDNSKYY+EbkfRroNmQ6tW1etLLc681/0=; b=eWoCdkOhnBf/hsEQTZ/mZPyDeYygLRC2KgiOR1i7o5G6uhGtbxdlFfpM8B9AVaWEHBUxJ1Z8n1txThLXXhZiGQ+74BrtjSFWs0Biwq+hv6tdv8F2/YMqjlws9aa91MpgCAc9PiGG8Mxn/ej2voFJcTsx4ZdyxmReResfmeyY/nY= X-Alimail-AntiSpam:AC=CONTINUE;BC=0.1174379|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.131173-0.0431628-0.825664;FP=18285211524196390114|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033045023102;MF=fangxy@xiaopeng.com;NM=1;PH=DS;RN=19;RT=19;SR=0;TI=SMTPD_---.kE4ydHQ_1796120659; Received: from localhost.localdomain(mailfrom:fangxy@xiaopeng.com fp:SMTPD_---.kE4ydHQ_1796120659 cluster:ay29) by smtp.aliyun-inc.com; Tue, 01 Dec 2026 18:24:20 +0800 From: Fang Xieyan To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , x86@kernel.org Cc: Ingo Molnar , Borislav Petkov , Dave Hansen , Arnd Bergmann , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Huacai Chen , WANG Xuerui , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , linux-arch@vger.kernel.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [RFC PATCH 5/5] loongarch: Drop redundant internal header includes from the vDSO sources Date: Tue, 1 Dec 2026 18:24:10 +0800 Message-ID: <20261201102410.44071-6-fangxy@xiaopeng.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20261201102410.44071-1-fangxy@xiaopeng.com> References: <20261201102410.44071-1-fangxy@xiaopeng.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Patch 3 made the sanctioned headers self-contained via , so the direct includes in the loongarch vDSO sources are dead weight: they are the only thing keeping the internal -> -> bitsperlong chain alive inside these vDSO translation units. The vDSO Makefile already force-includes the sanctioned headers (c-gettimeofday-y / c-getrandom-y), so dropping the includes brings loongarch to the same shape as arm64, whose vDSO sources contain no direct type includes at all. Signed-off-by: Fang Xieyan --- Build-tested at this commit (= series tip): loongarch64 defconfig cross-build (clang --target=loongarch64-linux-gnu) completes with 0 errors and still produces arch/loongarch/vdso/vdso.so(.dbg); the riscv build was verified green in the same tree state. arch/loongarch/vdso/vgetrandom.c | 1 - arch/loongarch/vdso/vgettimeofday.c | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/loongarch/vdso/vgetrandom.c b/arch/loongarch/vdso/vgetrandom.c index d5f258ac4a36..0940972669ed 100644 --- a/arch/loongarch/vdso/vgetrandom.c +++ b/arch/loongarch/vdso/vgetrandom.c @@ -2,7 +2,6 @@ /* * Copyright (C) 2024 Xi Ruoyao . All Rights Reserved. */ -#include ssize_t __vdso_getrandom(void *buffer, size_t len, unsigned int flags, void *opaque_state, size_t opaque_len) { diff --git a/arch/loongarch/vdso/vgettimeofday.c b/arch/loongarch/vdso/vgettimeofday.c index 0885c1f3a89d..8896d77bc66f 100644 --- a/arch/loongarch/vdso/vgettimeofday.c +++ b/arch/loongarch/vdso/vgettimeofday.c @@ -4,7 +4,6 @@ * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ -#include #include int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) -- 2.50.1