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
693e278e
Unverified
Commit
693e278e
authored
7 years ago
by
davidcunado-arm
Committed by
GitHub
7 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1245 from antonio-nino-diaz-arm/an/checkpatch
Analyze coding style of patches individually
parents
9bc94a6d
51d28937
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
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
v1.5
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-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
+8
-1
.checkpatch.conf
Makefile
+9
-2
Makefile
with
17 additions
and
3 deletions
+17
-3
.checkpatch.conf
View file @
693e278e
#
# Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
# Copyright (c) 2016
-2018
, ARM Limited and Contributors. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
...
...
@@ -48,6 +48,10 @@
# drivers/arm/gic/arm_gic.c:160:
--
showfile
# Don't show some messages like the list of ignored types or the suggestion to
# use "--fix" or report changes to the maintainers.
--
quiet
#
# Ignore the following message types, as they don't necessarily make sense in
# the context of the Trusted Firmware.
...
...
@@ -78,6 +82,9 @@
# We allow adding new typedefs in TF.
--
ignore
NEW_TYPEDEFS
# Avoid "Does not appear to be a unified-diff format patch" message
--
ignore
NOT_UNIFIED_DIFF
# VOLATILE reports this kind of messages:
# "Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt"
# We allow the usage of the volatile keyword in TF.
...
...
This diff is collapsed.
Click to expand it.
Makefile
View file @
693e278e
#
# Copyright (c) 2013-201
7
, ARM Limited and Contributors. All rights reserved.
# Copyright (c) 2013-201
8
, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
...
...
@@ -680,7 +680,14 @@ checkcodebase: locate-checkpatch
checkpatch
:
locate-checkpatch
@
echo
" CHECKING STYLE"
${Q}
git format-patch
--stdout
${BASE_COMMIT}
..HEAD
--
${CHECK_PATHS}
|
${CHECKPATCH}
-
||
true
${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
;
\
git diff
--format
=
email
"
$$
commit~..
$$
commit"
\
--
${CHECK_PATHS}
|
${CHECKPATCH}
-
||
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