lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20231227-syscall32-v1-1-9621140d33bd@google.com> Date: Wed, 27 Dec 2023 22:38:41 +0000 From: Tanzir Hasan <tanzirh@...gle.com> To: Andy Lutomirski <luto@...nel.org>, Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>, Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org, "H. Peter Anvin" <hpa@...or.com> Cc: linux-kernel@...r.kernel.org, Nick Desaulniers <nnn@...gle.com>, Tanzir Hasan <tanzirh@...gle.com> Subject: [PATCH] x86/syscalls: shrink entry/syscall_32.i via IWYU 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@...gle.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@...gle.com>
Powered by blists - more mailing lists