padata: Remove unused padata_remove_cpu
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 19 Nov 2019 22:32:50 +0000 (06:32 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:34:45 +0000 (16:34 +0800)
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>
kernel/padata.c

index da56a235a2550044206c23e0f6e9394f8f112098..fc00f7e641337f014f1b1b2f8b90673401af0ca9 100644 (file)
@@ -718,41 +718,6 @@ static int __padata_remove_cpu(struct padata_instance *pinst, int cpu)
        return 0;
 }
 
- /**
- * padata_remove_cpu - remove a cpu from the one or both(serial and parallel)
- *                     padata cpumasks.
- *
- * @pinst: padata instance
- * @cpu: cpu to remove
- * @mask: bitmask specifying from which cpumask @cpu should be removed
- *        The @mask may be any combination of the following flags:
- *          PADATA_CPU_SERIAL   - serial cpumask
- *          PADATA_CPU_PARALLEL - parallel cpumask
- */
-int padata_remove_cpu(struct padata_instance *pinst, int cpu, int mask)
-{
-       int err;
-
-       if (!(mask & (PADATA_CPU_SERIAL | PADATA_CPU_PARALLEL)))
-               return -EINVAL;
-
-       mutex_lock(&pinst->lock);
-
-       get_online_cpus();
-       if (mask & PADATA_CPU_SERIAL)
-               cpumask_clear_cpu(cpu, pinst->cpumask.cbcpu);
-       if (mask & PADATA_CPU_PARALLEL)
-               cpumask_clear_cpu(cpu, pinst->cpumask.pcpu);
-
-       err = __padata_remove_cpu(pinst, cpu);
-       put_online_cpus();
-
-       mutex_unlock(&pinst->lock);
-
-       return err;
-}
-EXPORT_SYMBOL(padata_remove_cpu);
-
 static inline int pinst_has_cpu(struct padata_instance *pinst, int cpu)
 {
        return cpumask_test_cpu(cpu, pinst->cpumask.pcpu) ||