Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
36a540d6
Unverified
Commit
36a540d6
authored
Mar 13, 2019
by
Dimitris Papastamos
Committed by
GitHub
Mar 13, 2019
Browse files
Merge pull request #1861 from Yann-lms/checkpatch
Update checkpatch options
parents
69905f74
89d1d372
Changes
2
Hide whitespace changes
Inline
Side-by-side
.checkpatch.conf
View file @
36a540d6
#
# Copyright (c) 2016-201
8
, ARM Limited and Contributors. All rights reserved.
# Copyright (c) 2016-201
9
, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
...
...
@@ -69,3 +69,23 @@
# "Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt"
# We allow the usage of the volatile keyword in TF.
--
ignore
VOLATILE
# BRACES reports this kind of messages:
# braces {} are not necessary for any arm of this statement
--
ignore
BRACES
# PREFER_KERNEL_TYPES reports this kind of messages (when using --strict):
# "Prefer kernel type 'u32' over 'uint32_t'"
--
ignore
PREFER_KERNEL_TYPES
# USLEEP_RANGE reports this kind of messages (when using --strict):
# "usleep_range is preferred over udelay; see Documentation/timers/timers-howto.txt"
--
ignore
USLEEP_RANGE
# COMPARISON_TO_NULL reports this kind of messages (when using --strict):
# Comparison to NULL could be written ""
--
ignore
COMPARISON_TO_NULL
# UNNECESSARY_PARENTHESES reports this kind of messages (when using --strict):
# Unnecessary parentheses around ""
--
ignore
UNNECESSARY_PARENTHESES
Makefile
View file @
36a540d6
...
...
@@ -841,13 +841,18 @@ checkcodebase: locate-checkpatch
checkpatch
:
locate-checkpatch
@
echo
" CHECKING STYLE"
@
if
test
-n
"
${CHECKPATCH_OPTS}
"
;
then
\
echo
" with
${CHECKPATCH_OPTS}
option(s)"
;
\
fi
${Q}COMMON_COMMIT
=
$$
(
git merge-base HEAD
${BASE_COMMIT}
)
;
\
for
commit
in
`
git rev-list
$$
COMMON_COMMIT..HEAD
`
;
do
\
printf
"
\n
[*] Checking style of '
$$
commit'
\n\n
"
;
\
git log
--format
=
email
"
$$
commit~..
$$
commit"
\
--
${CHECK_PATHS}
|
${CHECKPATCH}
-
||
true
;
\
--
${CHECK_PATHS}
|
\
${CHECKPATCH}
${CHECKPATCH_OPTS}
-
||
true
;
\
git diff
--format
=
email
"
$$
commit~..
$$
commit"
\
--
${CHECK_PATHS}
|
${CHECKPATCH}
-
||
true
;
\
--
${CHECK_PATHS}
|
\
${CHECKPATCH}
${CHECKPATCH_OPTS}
-
||
true
;
\
done
certtool
:
${CRTTOOL}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment