Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
6 years ago
by
Dimitris Papastamos
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1861 from Yann-lms/checkpatch
Update checkpatch options
parents
69905f74
89d1d372
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.checkpatch.conf
+21
-1
.checkpatch.conf
Makefile
+7
-2
Makefile
with
28 additions
and
3 deletions
+28
-3
.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
This diff is collapsed.
Click to expand it.
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}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help