ath12k-check: ignore long line comment warnings for copyrights

Filter the warnings about copyright statements exceeding the max line
length. Since the global tool won't associate these with a symbol
name, filter on the literal "Copyright (c)" itself.

Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
This commit is contained in:
Jeff Johnson 2025-01-08 10:58:42 -08:00
parent 7a1463a442
commit 4883953301

View file

@ -65,6 +65,10 @@ checkpatch_filter = [
# ATH12K_QMI_MAX_CHUNK_SIZE # ATH12K_QMI_MAX_CHUNK_SIZE
('ATH12K_QMI_MAX_CHUNK_SIZE', 'LONG_LINE'), ('ATH12K_QMI_MAX_CHUNK_SIZE', 'LONG_LINE'),
# allow long line copyrights
# note gtags returns None so search for the literal string
('Copyright \(c\)', 'LONG_LINE'),
# trace.h has warnings which don't make sense to fix # trace.h has warnings which don't make sense to fix
('TRACE_SYSTEM', 'OPEN_ENDED_LINE'), ('TRACE_SYSTEM', 'OPEN_ENDED_LINE'),