Re: [PATCH] checkpatch: Fix false positive MISSING_BREAK warnings with --file

From: Lee Jones
Date: Tue Jul 22 2014 - 03:05:40 EST


On Mon, 21 Jul 2014, Joe Perches wrote:
> Using --file mode can give false positives with MISSING_BREAK
> fall-through warnings on simple but long multiple consecutive
> case statements.
>
> Look for all lines before a case statement for a switch
> or a statement when using --file mode.
>
> Fix a misspelling of preceded while there.
>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
> Reported-by: Lee Jones <lee.jones@xxxxxxxxxx>

Solution works for me.

> total: 0 errors, 0 warnings, 574 lines checked
>
> drivers/mfd/tps80031.c has no obvious style problems and is ready
> for submission.

Acked-by: Lee Jones <lee.jones@xxxxxxxxxx>

--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/