Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

padata: Remove unused padata_remove_cpu

The function padata_remove_cpu was supposed to have been removed
along with padata_add_cpu but somehow it remained behind. Let's
kill it now as it doesn't even have a prototype anymore.

Fixes: 815613da6a67 ("kernel/padata.c: removed unused code")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

-35
-35
kernel/padata.c
··· 718 718 return 0; 719 719 } 720 720 721 - /** 722 - * padata_remove_cpu - remove a cpu from the one or both(serial and parallel) 723 - * padata cpumasks. 724 - * 725 - * @pinst: padata instance 726 - * @cpu: cpu to remove 727 - * @mask: bitmask specifying from which cpumask @cpu should be removed 728 - * The @mask may be any combination of the following flags: 729 - * PADATA_CPU_SERIAL - serial cpumask 730 - * PADATA_CPU_PARALLEL - parallel cpumask 731 - */ 732 - int padata_remove_cpu(struct padata_instance *pinst, int cpu, int mask) 733 - { 734 - int err; 735 - 736 - if (!(mask & (PADATA_CPU_SERIAL | PADATA_CPU_PARALLEL))) 737 - return -EINVAL; 738 - 739 - mutex_lock(&pinst->lock); 740 - 741 - get_online_cpus(); 742 - if (mask & PADATA_CPU_SERIAL) 743 - cpumask_clear_cpu(cpu, pinst->cpumask.cbcpu); 744 - if (mask & PADATA_CPU_PARALLEL) 745 - cpumask_clear_cpu(cpu, pinst->cpumask.pcpu); 746 - 747 - err = __padata_remove_cpu(pinst, cpu); 748 - put_online_cpus(); 749 - 750 - mutex_unlock(&pinst->lock); 751 - 752 - return err; 753 - } 754 - EXPORT_SYMBOL(padata_remove_cpu); 755 - 756 721 static inline int pinst_has_cpu(struct padata_instance *pinst, int cpu) 757 722 { 758 723 return cpumask_test_cpu(cpu, pinst->cpumask.pcpu) ||