git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d10f084
)
scripts: ignore const struct checks
author
Thomas Monjalon
<thomas.monjalon@6wind.com>
Fri, 4 Nov 2016 15:27:38 +0000
(16:27 +0100)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Sat, 5 Nov 2016 14:47:42 +0000
(15:47 +0100)
checkpatch raise some false positives when run outside of the kernel tree.
The script checkpatch.pl from the kernel checks a list
of structs known to be const.
It is obviously not relevant as DPDK has not such list.
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
scripts/checkpatches.sh
patch
|
blob
|
history
diff --git
a/scripts/checkpatches.sh
b/scripts/checkpatches.sh
index
2f67d24
..
336cc7b
100755
(executable)
--- a/
scripts/checkpatches.sh
+++ b/
scripts/checkpatches.sh
@@
-42,7
+42,8
@@
options="--no-tree"
options="$options --max-line-length=$length"
options="$options --show-types"
options="$options --ignore=LINUX_VERSION_CODE,FILE_PATH_CHANGES,\
-VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,PREFER_KERNEL_TYPES,BIT_MACRO,\
+VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,\
+PREFER_KERNEL_TYPES,BIT_MACRO,CONST_STRUCT,\
SPLIT_STRING,LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\
NEW_TYPEDEFS,COMPARISON_TO_NULL"