genirq/affinity: Remove unused argument from [__]irq_build_affinity_masks()
The *affd argument is neither used in irq_build_affinity_masks() nor __irq_build_affinity_masks(). Remove it. Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ming Lei <ming.lei@redhat.com> Cc: Minwoo Im <minwoo.im@samsung.com> Cc: linux-block@vger.kernel.org Link: https://lkml.kernel.org/r/20190602112117.31839-1-minwoo.im.dev@gmail.com
This commit is contained in:
parent
699785f5d8
commit
0e51833042
|
@ -94,8 +94,7 @@ static int get_nodes_in_cpumask(cpumask_var_t *node_to_cpumask,
|
||||||
return nodes;
|
return nodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __irq_build_affinity_masks(const struct irq_affinity *affd,
|
static int __irq_build_affinity_masks(unsigned int startvec,
|
||||||
unsigned int startvec,
|
|
||||||
unsigned int numvecs,
|
unsigned int numvecs,
|
||||||
unsigned int firstvec,
|
unsigned int firstvec,
|
||||||
cpumask_var_t *node_to_cpumask,
|
cpumask_var_t *node_to_cpumask,
|
||||||
|
@ -171,8 +170,7 @@ static int __irq_build_affinity_masks(const struct irq_affinity *affd,
|
||||||
* 1) spread present CPU on these vectors
|
* 1) spread present CPU on these vectors
|
||||||
* 2) spread other possible CPUs on these vectors
|
* 2) spread other possible CPUs on these vectors
|
||||||
*/
|
*/
|
||||||
static int irq_build_affinity_masks(const struct irq_affinity *affd,
|
static int irq_build_affinity_masks(unsigned int startvec, unsigned int numvecs,
|
||||||
unsigned int startvec, unsigned int numvecs,
|
|
||||||
unsigned int firstvec,
|
unsigned int firstvec,
|
||||||
struct irq_affinity_desc *masks)
|
struct irq_affinity_desc *masks)
|
||||||
{
|
{
|
||||||
|
@ -197,7 +195,7 @@ static int irq_build_affinity_masks(const struct irq_affinity *affd,
|
||||||
build_node_to_cpumask(node_to_cpumask);
|
build_node_to_cpumask(node_to_cpumask);
|
||||||
|
|
||||||
/* Spread on present CPUs starting from affd->pre_vectors */
|
/* Spread on present CPUs starting from affd->pre_vectors */
|
||||||
nr_present = __irq_build_affinity_masks(affd, curvec, numvecs,
|
nr_present = __irq_build_affinity_masks(curvec, numvecs,
|
||||||
firstvec, node_to_cpumask,
|
firstvec, node_to_cpumask,
|
||||||
cpu_present_mask, nmsk, masks);
|
cpu_present_mask, nmsk, masks);
|
||||||
|
|
||||||
|
@ -212,7 +210,7 @@ static int irq_build_affinity_masks(const struct irq_affinity *affd,
|
||||||
else
|
else
|
||||||
curvec = firstvec + nr_present;
|
curvec = firstvec + nr_present;
|
||||||
cpumask_andnot(npresmsk, cpu_possible_mask, cpu_present_mask);
|
cpumask_andnot(npresmsk, cpu_possible_mask, cpu_present_mask);
|
||||||
nr_others = __irq_build_affinity_masks(affd, curvec, numvecs,
|
nr_others = __irq_build_affinity_masks(curvec, numvecs,
|
||||||
firstvec, node_to_cpumask,
|
firstvec, node_to_cpumask,
|
||||||
npresmsk, nmsk, masks);
|
npresmsk, nmsk, masks);
|
||||||
put_online_cpus();
|
put_online_cpus();
|
||||||
|
@ -295,7 +293,7 @@ irq_create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd)
|
||||||
unsigned int this_vecs = affd->set_size[i];
|
unsigned int this_vecs = affd->set_size[i];
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = irq_build_affinity_masks(affd, curvec, this_vecs,
|
ret = irq_build_affinity_masks(curvec, this_vecs,
|
||||||
curvec, masks);
|
curvec, masks);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
kfree(masks);
|
kfree(masks);
|
||||||
|
|
Loading…
Reference in New Issue