From: Tanzir Hasan <tanzirh@google.com>
To: Andy Lutomirski <luto@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-kernel@vger.kernel.org, Nick Desaulniers <nnn@google.com>,
Tanzir Hasan <tanzirh@google.com>
Subject: [PATCH] x86/syscalls: shrink entry/syscall_32.i via IWYU
Date: Wed, 27 Dec 2023 22:38:41 +0000 [thread overview]
Message-ID: <20231227-syscall32-v1-1-9621140d33bd@google.com> (raw)
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 entry/syscall_32.c resulted in a preprocessed size of
entry/syscall_32.i from 64002 lines to 47986 lines (-25%) for the x86
defconfig.
Signed-off-by: Tanzir Hasan <tanzirh@google.com>
---
arch/x86/entry/syscall_32.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/x86/entry/syscall_32.c b/arch/x86/entry/syscall_32.c
index 8cfc9bc73e7f..66db11fe8a1c 100644
--- a/arch/x86/entry/syscall_32.c
+++ b/arch/x86/entry/syscall_32.c
@@ -4,7 +4,7 @@
#include <linux/linkage.h>
#include <linux/sys.h>
#include <linux/cache.h>
-#include <linux/syscalls.h>
+#include <linux/ptrace.h>
#include <asm/syscall.h>
#ifdef CONFIG_IA32_EMULATION
@@ -16,6 +16,7 @@
#define __SYSCALL(nr, sym) extern long __ia32_##sym(const struct pt_regs *);
#include <asm/syscalls_32.h>
+
#undef __SYSCALL
#define __SYSCALL(nr, sym) __ia32_##sym,
---
base-commit: fbafc3e621c3f4ded43720fdb1d6ce1728ec664e
change-id: 20231227-syscall32-2c6d62fe51c9
Best regards,
--
Tanzir Hasan <tanzirh@google.com>
next reply other threads:[~2023-12-27 22:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-27 22:38 Tanzir Hasan [this message]
2023-12-27 23:34 ` [PATCH] x86/syscalls: shrink entry/syscall_32.i via IWYU Al Viro
2023-12-27 23:50 ` H. Peter Anvin
2023-12-28 0:26 ` Al Viro
2023-12-28 2:17 ` H. Peter Anvin
2023-12-28 0:17 ` Tanzir Hasan
2023-12-28 0:45 ` Al Viro
2024-01-03 16:50 ` Nick Desaulniers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231227-syscall32-v1-1-9621140d33bd@google.com \
--to=tanzirh@google.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=nnn@google.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox