Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7827062rdb; Thu, 4 Jan 2024 08:51:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfc1UjdmWbj4+FVvfocdBxPU5HHhPWIai4IOMMsq2VvEDXwtUZu2O8NrSQjaHEyUcLnsAN X-Received: by 2002:a05:6e02:1561:b0:360:219b:1b60 with SMTP id k1-20020a056e02156100b00360219b1b60mr681339ilu.116.1704387097141; Thu, 04 Jan 2024 08:51:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704387097; cv=none; d=google.com; s=arc-20160816; b=xUCAj04HAvNU3C087Wa4Ewg6dywhtD/nI90/XZcrQk0pHyUWbbbzVdU2Q3vMSHlkuh H2iPKLEFSj0XBMGgOPU1NyVbqaL2e+Lgdg6MK/j24RKpX9EcNzTLhpM4VOHxbFw+hJj/ v4AWg3y6hhHpVDSEcEoVgZxh0Ycs3ItOPmWEEbI5PNt1NQdGdkBHmwzjGII76UVNuSBI 24xQVN9WDnDoNrBO7y9y94TmlNp9Gl6ATD/0Hl6zsPRxPod4Cu6Yp3T+NuG614Obk+QP uVKZZsA6omYga+qUZysqPbLuFvzwvFl703nUcdH5Fk2Ljk9czEG2w3yS1+CvK8b0BR4n Y2hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=jm03zStryCFTp1W2rKj9MdI+DmDreeqJY40intfiH2Q=; fh=hDX2xL0g//IiZpJ6uaW9RVLmNlhgoXVa2C5rLTQSRbE=; b=sNBVAKkdwhNbAgTvohqTaGsux0IG+kJnyLQrMXmZHgOzh4UtkD9qi8NS497GxZe+lE fKtw9o3XClcjVVtvFVVcyMTT0P5MnxJcooLpLU1ZtHXs5YIT5zCGWmEpDS17Il8z7V8V QtbVD9um5S2hxFEoB4JzaavRikupWifUMZT1mPM1wyq6QaUribfyy5OLGxq26qv0Ho6v LZfTq3PtEIUyRd8qRvampk5VBxcM/w6hFa5A8gp42meqVuSJQ3WO7qnPGa+j6RayIdtM 9IdtI2tXbJnx/CD3SMUnPZCbQ8U2SbWVGWUiDd/jv/yHCuWpWYlXT6hrqpjHT57wQTES yXYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=nB7EuRVq; spf=pass (google.com: domain of linux-kernel+bounces-16972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x31-20020a63171f000000b00585a5e9a965si23731621pgl.161.2024.01.04.08.51.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 08:51:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=nB7EuRVq; spf=pass (google.com: domain of linux-kernel+bounces-16972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C6831287C36 for ; Thu, 4 Jan 2024 16:51:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B22725566; Thu, 4 Jan 2024 16:51:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="nB7EuRVq" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BAA12555A for ; Thu, 4 Jan 2024 16:51:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--tanzirh.bounces.google.com Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-6d9b09d1afaso754713b3a.3 for ; Thu, 04 Jan 2024 08:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704387082; x=1704991882; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=jm03zStryCFTp1W2rKj9MdI+DmDreeqJY40intfiH2Q=; b=nB7EuRVq2En87atEXYwjtB50SMO6hPyAs1aAcHACN3UPIhPTKKtv3V15XveEux5WlV unDvcOHpYEz5GUCPYAKuo1CxPLyY1TW/Vv9YyLgb9BDGC8JWCqxI8uS9dzQo/vA7rKlq MmDrVb7uH82PCTYLD9rPDdZEgY4l2j/e+DN9F5UuzCR0V37mbj3Uxy6wN6y7z6TZs3Jl 4TfDDgNyqUEgsnEetIdwPWPAKjS9sY1Bkko5IfswQ1EMcbhgDg30ZxSJiERELU6LoBon OmvVDS2aNyKE6iGlHEiElhMPi5qMmQj2CqGsWIBntKeUqPsARNMwVy5y9+09e+vlIsme 8u0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704387082; x=1704991882; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jm03zStryCFTp1W2rKj9MdI+DmDreeqJY40intfiH2Q=; b=H606IrdKr3P7U+bNODhTK1AzDSpqiAuer1hCF7RmW0/tLsahUlhuH/WphcRwfh8mC5 HNfv7FSuIuz622edAz7E9cySga7eNnq8vjAAxZz2+PWybq2tSr2lg4gD1nJ558m+JrY0 0qUxqqhRaDlUS+g00JxYAYTpOJmdSJUAt7b2qhoCIEZO1ibz0g0Tj8ql1bDI8t3Wz/jg dMb4Ds1ChmE/vgX8udZ1lwUJt+nep35dxWiDTjkoBLaVIPvQRjiW5FPf3VKWcEPzV6n6 fFdAA7U9jvqoZVPWi4OHyhCmiElgABelMyHxLY0grp2KN0T6ROok1VUBHI8Ri87UUp/0 UX2Q== X-Gm-Message-State: AOJu0Yzq+75Hd2MAn+AsgsKsIbH03OoKOG8zb+MMU90ZYZFL1ncJ1l8/ f/2T4TNcJFk9SkgIuQkLTZb2zPRZBckPU2T+Qo4= X-Received: from tanz.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:c4a]) (user=tanzirh job=sendgmr) by 2002:a05:6a00:2ea2:b0:6da:b304:fa80 with SMTP id fd34-20020a056a002ea200b006dab304fa80mr132704pfb.1.1704387082616; Thu, 04 Jan 2024 08:51:22 -0800 (PST) Date: Thu, 04 Jan 2024 16:51:17 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAATilmUC/x3MMQqAMAxA0auUzBZqAkW8ijiIjZqlLY0WQby7x fEN/z+gXIQVRvNA4SoqKTb0nYH1WOLOVkIzoEPqEQdbgyZC5fPKdmAiH7xbVmJoRS68yf3fpvl 9P66RotFdAAAA X-Developer-Key: i=tanzirh@google.com; a=ed25519; pk=UeRjcUcv5W9AeLGEbAe2+0LptQpcY+o1Zg0LHHo7VN4= X-Developer-Signature: v=1; a=ed25519-sha256; t=1704387081; l=1392; i=tanzirh@google.com; s=20231204; h=from:subject:message-id; bh=/is5lhdNZtXktnfZ5VlFm0ZvdtEPTHkgA5XkZmmhysM=; b=iocZG2VYIQi9pT+WrIYNtkWlPJx6vb67gLVU7l5KtypTYg1iQfFKqA/K87tuYo9CS80S5Lwbx Vo6HkYnNEUaCiAaulfoPXJTSI/P6MraqIZfyDbPPE6M0vyta/gOcI9w X-Mailer: b4 0.12.4 Message-ID: <20240104-vdso32setup-v1-1-1737147bc6ed@google.com> Subject: [PATCH] x86/vdso: shrink vdso/vdso32-setup.i via IWYU From: Tanzir Hasan To: Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org, Nick Desaulniers , Tanzir Hasan Content-Type: text/plain; charset="utf-8" This diff uses an open source tool include-what-you-use (IWYU) to modify the include list, changing indirect includes to direct includes. IWYU is implemented using the IWYUScripts github repository which is a tool that is currently undergoing development. These changes seek to improve build times. This change to vdso/vdso32-setup.c resulted in a preprocessed size of vdso/vdso32-setup.i from 44009 lines to 18572 lines (-58%) for the x86 defconfig. --- Signed-off-by: Tanzir Hasan --- arch/x86/entry/vdso/vdso32-setup.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/x86/entry/vdso/vdso32-setup.c b/arch/x86/entry/vdso/vdso32-setup.c index 76e4e74f35b5..8dbe022589a6 100644 --- a/arch/x86/entry/vdso/vdso32-setup.c +++ b/arch/x86/entry/vdso/vdso32-setup.c @@ -8,13 +8,11 @@ */ #include -#include -#include -#include -#include +#include +#include +#include -#include -#include +#include #ifdef CONFIG_COMPAT_VDSO #define VDSO_DEFAULT 0 --- base-commit: f5837722ffecbbedf1b1dbab072a063565f0dad1 change-id: 20231228-vdso32setup-8e336d60ac3e Best regards, -- Tanzir Hasan