summaryrefslogtreecommitdiffstats
path: root/static_analysis
Commit message (Collapse)AuthorAgeFilesLines
* checkpatch: use consistent and inclusive languageMatthias Maennich2020-07-082-11/+11
| | | | | | | | Avoid the term blacklist and rather consistently use ignorelist as this is what actually happened with the checks listed there. Signed-off-by: Matthias Maennich <maennich@google.com> Change-Id: If893f757f7042abb26fb2c63c2e9cef9694b0211
* checkpatch: disable GIT_COMMIT_IDMatthias Maennich2020-03-101-0/+1
| | | | | | | | This linter is not dealing well with multiline commit references. Those are likely in Android, hence disable this regular false positive. Signed-off-by: Matthias Maennich <maennich@google.com> Change-Id: I59ac86cb7ae5f166b9085597ca2ccae7e9aac259
* checkpatch_presubmit: Do not lint UPSTREAM|BACKPORT|FROMGITMatthias Maennich2020-01-101-0/+6
| | | | | | | | | Changes with these tags are already vetted upstream and there is no use in linting these (even though the linter might have a finding) as we are not going to let these patches diverge in our code base. Change-Id: I5b6d727a0376efb3344ec79d726accac48e299e3 Signed-off-by: Matthias Maennich <maennich@google.com>
* checkpatch_presubmit: fix sed usage with pathsAdrian Salido2019-10-111-1/+1
| | | | | | | | | | | | Paths can contain path separators ('/'), using it as sed regexp separator may conflict with paths contained within KERNEL_DIR variable. Replace the use of slash ('/') by pound ('#') which is unlikely to be used to fix this. Fixes: a3781eac6ff8 ("checkpatch_presubmit: fix compatibility with toybox grep") Bug: 142160044 Change-Id: I6f9787bb7c8155a494e10121cdc6e36501dab8bf Signed-off-by: Adrian Salido <salidoa@google.com>
* checkpatch_presubmit: fix compatibility with toybox grepMatthias Maennich2019-10-111-1/+1
| | | | | | | | | | | The toybox grep does not support PCRE and hence this fails for this version of grep. Fix that by using sed instead. Fixes: 207606d6b63c ("checkpatch_presubmit: be a bit more tolerant when parsing applied.prop") Bug: 142160044 Suggested-by: Daniel Mentz <danielmentz@google.com> Change-Id: I9c2b9423473db891bc476bb7a6efdf7a185dbbff Signed-off-by: Matthias Maennich <maennich@google.com>
* checkpatch_presubmit: match on exact ${KERNEL_DIR} on applied.propAlain Vongsouvanh2019-08-201-2/+1
| | | | | | | | | | | | | Modify the regex to only parse changes made on the ${KERNEL_DIR}. Some kernel manifests have projects which paths start with ${KERNEL_DIR} and the script currently matches those change: this ends up running checkpatch on the main ${KERNEL_DIR} instead of the actual project and fail. BUG: 138624505 Change-Id: I6e97b31646115f59f8bc5b233454bebf8480f5af Signed-off-by: Alain Vongsouvanh <alainv@google.com>
* Merge "envsetup: move envsetup.sh to _setup_env.sh and deprecate envsetup.sh"Treehugger Robot2019-08-192-2/+2
|\
| * envsetup: move envsetup.sh to _setup_env.sh and deprecate envsetup.shMatthias Maennich2019-08-162-2/+2
| | | | | | | | | | | | | | | | | | | | envsetup.sh is an implementation detail of build.sh and friends and should therefore not be sourced directly. Hence move its functionality and just leave a warning in the original envsetup.sh along with some documentation. Change-Id: Ib0cfc56c7bbe4f2ce9d4cd01ea251e6982822c47 Signed-off-by: Matthias Maennich <maennich@google.com>
* | checkpatch: skip analysis for merge commits on kernel/commonMatthias Maennich2019-08-161-0/+11
|/ | | | | | | | | These are upstream merges that likely hit issues in checkpatch.pl or merges from other common kernel repositories where _this_ check has been run as part of the developement process. Change-Id: Ib489d57b74ffc128eec5f6bde253f139768e9445 Signed-off-by: Matthias Maennich <maennich@google.com>
* checkpatch_presubmit: be a bit more tolerant when parsing applied.propMatthias Maennich2019-07-101-1/+1
| | | | | | | | | | | | | Generalize the regex to parse any 40 character sha1 out of applied.prop. The build infrastructure inconsistently creates entries like common u'1234caffee...' and common 1234caffee... The first ones failed to parse and hence the kernel_lint check was silently skipped and reported as success. Change-Id: Id06337cebaed6027cae25de5c50d7bd30194c2b0 Signed-off-by: Matthias Maennich <maennich@android.com>
* checkpatch_blacklist: add TYPO_SPELLINGTri Vo2019-05-281-0/+1
| | | | | | | | Kernel symbols have spelling mistakes, which are picked up by ABI dumps. Silence checkpatch.pl warnings. Change-Id: I3935e8a956ab4655435a6f9151b3b7a08c4fb12f Signed-off-by: Tri Vo <trong@google.com>
* initial release of kernel/build in AOSPMatthias Maennich2019-02-013-0/+348
Publish build scripts to build Android Kernels in AOSP. They include the actual build script build/build.sh, helper scripts to run the kernel/tests as well as common utilities for validating patches. Refer to build.sh for documentation on how to invoke the kernel build. Bug: 120282827 Signed-off-by: Matthias Maennich <maennich@google.com> Change-Id: Id860c320ced4e9a2fd5e32b4730c7b86ac843294