Checkpatch ignores spelling error by using -f
- Date: Wed, 6 Dec 2017 15:13:32 +0100 (CET)
- From: Rolf Evers-Fischer <embedded24@xxxxxxxxxxxxxxxx>
- Subject: Checkpatch ignores spelling error by using -f
I've just checked the file drivers/tty/serial/8250/8250_omap.c, using
checkpatch.pl, but I forgot the '-f' option (for file).
Surprisingly the checkpatch script reported a misspelling:
"WARNING: 'additionaly' may be misspelled - perhaps 'additionally'?
* We enable TRIG_GRANU for RX and TX and additionaly we set"
Additionally it reported that the file does not appear to be a
unified-diff (due to my mistake).
Running checkpatch again with '-f', it didn't report any problems:
"drivers/tty/serial/8250/8250_omap.c has no obvious style problems and is
ready for submission."
Is this a bug in checkpatch.pl? Or is it a feature?