Skip to content

Commit 01cdfa9

Browse files
malaterreKAGA-KOKO
authored andcommitted
genirq: Correctly annotate implicit fall through
There is a plan to build the kernel with -Wimplicit-fallthrough. The fallthrough in __handle_irq_event_percpu() has a fallthrough annotation which is followed by an additional comment and is not recognized by GCC. Separate the 'fall through' and the rest of the comment with a dash so the regular expression used by GCC matches. Signed-off-by: Mathieu Malaterre <malat@debian.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20190114203633.18557-1-malat@debian.org
1 parent 44133f7 commit 01cdfa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/irq/handle.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ irqreturn_t __handle_irq_event_percpu(struct irq_desc *desc, unsigned int *flags
166166

167167
__irq_wake_thread(desc, action);
168168

169-
/* Fall through to add to randomness */
169+
/* Fall through - to add to randomness */
170170
case IRQ_HANDLED:
171171
*flags |= action->flags;
172172
break;

0 commit comments

Comments
 (0)