summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
AgeCommit message (Collapse)Author
2016-11-11checkpatch: update with latest checkpatch from the linux kernelAnas Nashif
Update with commit 577f12c07e4edd54730dc559a9c7bc44d22bf7dc from the Linux kernel. Change-Id: Ie2cabbfea415d26ffacef340d9497342b496dc29 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-10Revert "checkpatch: update with latest checkpatch from the linux kernel"Anas Nashif
This reverts commit 0c9152d42d12dfe155c3970aa6f8904be3c5acf7. This was not ready for merge yet. Change-Id: I08f69e27929867606bc58cdeffed6540725069a1 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-11-10checkpatch: update with latest checkpatch from the linux kernelAnas Nashif
Update with commit 577f12c07e4edd54730dc559a9c7bc44d22bf7dc from the Linux kernel. Change-Id: I6314dd41eb200c87cdcc6f212f13d3351128de0d Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-10-19checkpatch: complain only about actual leading spacesAnas Nashif
Change-Id: Ia591966a35765bfc560bd823be488257537e6530 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-06-21checkpatch: kconfig: warn about spaces instead of tabsJavier B Perez
checkpatch warns about kconfig lines that contains spaces instead of tabs. Change-Id: I60aa74072ce424f21db64a7df0804d7d4cbe315b Jira: ZEP-427 Signed-off-by: Javier B Perez <javier.b.perez.hernandez@intel.com>
2016-05-31checkpatch: catch changes to MAINTAINERS fileAnas Nashif
Change-Id: Iceb85f6e9fb3c66f89383f4d159d3752639356b1 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-05-23checkpatch: add option for excluding directoriesAnas Nashif
when importing code from external sources, we do not want to fail on checkpatch and want to run full sanity checks. Using --exclude <dir> we should be able to exclude a list of well defined locations in the tree that carry sources from other projects with other styles. Change-Id: I7d321e85eed6bc37d5c6879ae88e21d20028a433 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-05-05checkpatch: Remove Change-Id warningVlad Dogaru
There seems to be no way to configure it, so I've just removed the code. Change-Id: I35341e8afc0bdfa8b953b833cfb0eecf05b81c16 Signed-off-by: Vlad Dogaru <vlad.dogaru@intel.com>
2016-04-19checkpatch: warn on COMPLEX_MACRO and MULTISTATEMENT_MACRO_USE_DO_WHILEAnas Nashif
generates lots of false postives, so make it warn only. Change-Id: I0b2fedc564c29bff32f7c48702a9ad54a969650b Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-22checkpatch: fix SPACE false positiveAnas Nashif
Fix issue where a space is required after a comma: -:245: ERROR:SPACING: space required after that ',' (ctx:VxB) + SECTION_PROLOGUE(_NOINIT_DMA_SECTION_NAME, (NOLOAD OPTIONAL),) Now we will ignore such errors if the comma is followed by a ). Change-Id: Ib38161cd11e650764c319ba373a1f7c1a6d80df6 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-22checkpatch: update checkpatch to latest from upstreamAnas Nashif
Update to commit 6b10df4257367dd0ead49f88df473972c00a8b5c from the Linux kernel, relevant changes since last update: - checkpatch: fix a number of COMPLEX_MACRO false positives - checkpatch: improve macros with flow control test - checkpatch: warn when casting constants to c90 int or longer types - checkpatch: improve the unnecessary initialisers tests - checkpatch: improve tests for fixes:, long lines and stack dumps in commit log Change-Id: Ic4f8d925cd7c076e18eb2f2841913be61239aac2 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05checkpatch: Allow space before [ in the case of inline asmAnas Nashif
This allows the customary syntax for declaring named arguments, such as: asm ("mov %[out],%[in]" : [out] "=r" (x) : [in] "r" (y)); Since :[ is comple-error-inducingly invalid syntax in other cases, this won't create unintentional leniency for normal uses of [ Originally from https://lkml.org/lkml/2010/11/16/145 by Dave Martin Change-Id: Iead3fdb147ba2f6cbd108f19dd348bb72a7e6b6f Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05checkpatch: Update to latest version from the Linux kernelAnas Nashif
Lots of enhancements and bug fixes but primarily it fixes an issue where checkpatch was reporting errors in lines that have not changed. Change-Id: If141a294b92cbabd4ad8978a40168abb062aebfb Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05checkpatch: remove comment about MAINTAINERS fileAnas Nashif
Zephyr does not have a MAINTAINERS files, so remove the comment about checking the file when reporting false positives to avoid confusion. Change-Id: I915dba009902a68d5e621603d22b7df57d84a1b1 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2015-04-10First commitInaky Perez-Gonzalez
Signed-off-by: <inaky.perez-gonzalez@intel.com>