Skip to content

Commit 59fa586

Browse files
mpredfearnKAGA-KOKO
authored andcommitted
genirq: Fix missing return value in irq_destroy_ipi()
Commit 7cec18a changed the return type of irq_destroy_ipi to int, but missed adding a value to one return statement. Fix this to silence the resulting compiler warning: kernel/irq/ipi.c In function ‘irq_destroy_ipi’: kernel/irq/ipi.c:128:3: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] Fixes: 7cec18a "genirq: Add error code reporting to irq_{reserve,destroy}_ipi" Signed-off-by: Matt Redfearn <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent ede4090 commit 59fa586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/irq/ipi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ int irq_destroy_ipi(unsigned int irq, const struct cpumask *dest)
125125

126126
domain = data->domain;
127127
if (WARN_ON(domain == NULL))
128-
return;
128+
return -EINVAL;
129129

130130
if (!irq_domain_is_ipi(domain)) {
131131
pr_warn("Trying to destroy a non IPI domain!\n");

0 commit comments

Comments
 (0)