kernel/padata.c: removed unused code
PATCH 20/117 kernel/padata.c: removed unused code
From: Richard Cochran <[email protected]>
Subject: kernel/padata.c: removed unused code
By accident I stumbled across code that has never been used. This driver has EXPORT_SYMBOL functions, and the only user of the code is pcrypt.c, but this only uses a subset of the exported symbols.
According to 'git log -G', the functions, padata_set_cpumasks, padata_add_cpu, and padata_remove_cpu have never been used since they were first introduced. This patch removes the unused code.
On one 64 bit build, with CRYPTO_PCRYPT built in, the text is more than 4k smaller.
kbuild_hp> size $KBUILD_OUTPUT/vmlinux
text data bss dec hex filename
10566658 4678360 1122304 16367322 f9beda vmlinux 10561984 4678360 1122304 16362648 f9ac98 vmlinux
On another config, 32 bit, the saving is about 0.5k bytes.
kbuild_hp-x86> size $KBUILD_OUTPUT/vmlinux
6012005 2409513 2785280 11206798 ab008e vmlinux
6011491 2409513 2785280 11206284 aafe8c vmlinux
---
include/linux/padata.h | 5 --- kernel/padata.c | 64 --------------------------------------- 2 files changed, 69 deletions(-)
include/linux/padata.h renamed from include/linux/padata.h~padata-removed-unused-code +0 -5
@@ -175,11 +175,6 @@ extern int padata_do_parallel(struct padextern void padata_do_serial (struct padata_priv *padata);extern int padata_set_cpumask (struct padata_instance *pinst,int cpumask_type,cpumask_var_t cpumask); -extern int padata_set_cpumasks (struct padata_instance *pinst, -cpumask_var_t pcpumask, -cpumask_var_t cbcpumask); -extern int padata_add_cpu (struct padata_instance *pinst,int cpu,int mask); -extern int padata_remove_cpu (struct padata_instance *pinst,int cpu,int mask);extern int padata_start (struct padata_instance *pinst);extern void padata_stop (struct padata_instance *pinst); extern int padata_register_cpumask_notifier(struct padata_instance *pinst,
kernel/padata.c renamed from kernel/padata.c~padata-removed-unused-code +0 -62
71 lines not on this page · raw message