aboutsummaryrefslogtreecommitdiff
path: root/.checkpatch.conf
AgeCommit message (Collapse)Author
2021-12-08checkpatch: fix ARRAY_SIZE ignore optionJere Leppänen
The checkpatch ignore option is ARRAY_SIZE, not PREFER_ARRAY_SIZE. Also, PREFER_PRINTF and PREFER_SCANF don't exist anymore, remove those. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-03-02checkpatch: do not allow C99 commentsPetri Savolainen
Nowadays, checkpatch allows by default C99 comments (//). Disable C99 comment tolerance as ODP project has never allowed those. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-02-23checkpatch: ignore PREFER_ARRAY_SIZE warningsMatias Elo
Ignore warnings about preferred usage of non-standard ARRAY_SIZE() macro. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-06-11checkpatch: ignore EMAIL_SUBJECT warningsMatias Elo
Without this ignore checkpatch warns about mentioning checkpatch in the commit subject line. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-06-11checkpatch: ignore LONG_LINE_STRING warningsMatias Elo
Allow string lines longer than max line length. Remove now unnecessary modifications to the checkpatch file. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-06-11checkpatch: ignore PREFER_FALLTHROUGH warningsMatias Elo
Ignore prefer 'fallthrough;' over fallthrough comment warning. 'fallthrough' is defined by a kernel header. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-06-10checkpatch: update to the latest versionMatias Elo
Update checkpatch script to the latest version (571d54ed9). Major changes: - Max line length has been increased to 100 - New warning about missing commit description - New warning about preferring 'fallthrough;' over fallthrough comment Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2018-03-07checkpatch: update to the latest versionMatias Elo
Update checkpatch script to the latest version (2d453e3b41c80d1a2c02b02d672f5dcd73f95a12). Ignores some new unnecessary checks. PRIu8 and PRIu16 camel case warnings are also ignored. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2017-06-01scripts: checkpatch: ignore volatile and extern warningsPetri Savolainen
These warnings were disabled with code modification. Use checkpatch config file to ignore those. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2017-05-16checkpatch.conf: ignore PREFER_PRINTF, PREFER_SCANFYi He
This is not the kernel, ignore these preferences Signed-off-by: Yi He <yi.he@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2016-03-28checkpatch.conf add SSCANF_TO_KSTRTO exceptionMike Holmes
This is not the kernel, ignore this recommendation Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2015-12-22checkpatch: ignore BIT_MACRO warningsMike Holmes
ODP does not have a BIT MACRO, ignore warnings such as CHECK: Prefer using the BIT macro platform/linux-generic/include/odp_packet_io_ring_internal.h:158: +#define _RING_F_SP_ENQ (1 << 0) Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2015-09-16checkpatch: allow comparison to NULLPetri Savolainen
Allow comparison to NULL since ODP API calls may return NULL and test applications should be able to compare against that, instead of forced to compare against 0 (!ptr). Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2015-09-11checkpatch.conf allow split stringsMike Holmes
ODP has proven a need to accommodate strings that cannot be accommodated on an 80 character line. Allow spilt strings as the preferred way of solving the issue so that check patch rules do not make code submission impossible. Do this in a way that does not require merging local changes to check patch when updating to a new upstream version. https://bugs.linaro.org/show_bug.cgi?id=1746 Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2015-06-04checkpatch: use codespell for odpMaxim Uvarov
Turn on spelling checks with codespell tool. Tool can be installed with apt-get install codespell. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
2014-02-24Makefiles: Allow CFLAGS to overide the buildMike Holmes
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
2013-12-23checkpatch.conf: ignore new typedefsKim Phillips
since we are in the process of defining new typedefs. Signed-off-by: Kim Phillips <kim.phillips@linaro.org>