[v6,23/23] devtools: forbid new use of rte marker typedefs

Message ID 1709012499-12813-24-git-send-email-roretzla@linux.microsoft.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Series stop and remove RTE_MARKER typedefs |


Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/intel-Functional success Functional PASS
ci/github-robot: build fail github build: failed
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-abi-testing warning Testing issues
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-unit-amd64-testing fail Testing issues
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-compile-arm64-testing success Testing PASS
ci/iol-sample-apps-testing success Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS

Commit Message

Tyler Retzlaff Feb. 27, 2024, 5:41 a.m. UTC
  Add a check for RTE_MARKER{,8,16,32,64} forbidding new use.

Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
 devtools/checkpatches.sh | 8 ++++++++
 1 file changed, 8 insertions(+)


diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
index e379700..ea31ba4 100755
--- a/devtools/checkpatches.sh
+++ b/devtools/checkpatches.sh
@@ -61,6 +61,14 @@  check_forbidden_additions() { # <patch>
 		-f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \
 		"$1" || res=1
+	# refrain from new uses of RTE_MARKER
+	awk -v FOLDERS="lib drivers" \
+		-v EXPRESSIONS="RTE_MARKER(8|16|32|64)?" \
+		-v RET_ON_FAIL=1 \
+		-v MESSAGE='Using RTE_MARKER' \
+		-f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \
+		"$1" || res=1
 	# no output on stdout or stderr
 	awk -v FOLDERS="lib drivers" \
 		-v EXPRESSIONS="\\\<printf\\\> \\\<fprintf\\\(stdout, \\\<fprintf\\\(stderr," \