1*f607739cSSandrine Bailleux# 2*f607739cSSandrine Bailleux# Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. 3*f607739cSSandrine Bailleux# 4*f607739cSSandrine Bailleux# Redistribution and use in source and binary forms, with or without 5*f607739cSSandrine Bailleux# modification, are permitted provided that the following conditions are met: 6*f607739cSSandrine Bailleux# 7*f607739cSSandrine Bailleux# Redistributions of source code must retain the above copyright notice, this 8*f607739cSSandrine Bailleux# list of conditions and the following disclaimer. 9*f607739cSSandrine Bailleux# 10*f607739cSSandrine Bailleux# Redistributions in binary form must reproduce the above copyright notice, 11*f607739cSSandrine Bailleux# this list of conditions and the following disclaimer in the documentation 12*f607739cSSandrine Bailleux# and/or other materials provided with the distribution. 13*f607739cSSandrine Bailleux# 14*f607739cSSandrine Bailleux# Neither the name of ARM nor the names of its contributors may be used 15*f607739cSSandrine Bailleux# to endorse or promote products derived from this software without specific 16*f607739cSSandrine Bailleux# prior written permission. 17*f607739cSSandrine Bailleux# 18*f607739cSSandrine Bailleux# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19*f607739cSSandrine Bailleux# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20*f607739cSSandrine Bailleux# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21*f607739cSSandrine Bailleux# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 22*f607739cSSandrine Bailleux# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23*f607739cSSandrine Bailleux# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24*f607739cSSandrine Bailleux# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25*f607739cSSandrine Bailleux# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26*f607739cSSandrine Bailleux# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27*f607739cSSandrine Bailleux# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28*f607739cSSandrine Bailleux# POSSIBILITY OF SUCH DAMAGE. 29*f607739cSSandrine Bailleux# 30*f607739cSSandrine Bailleux 31*f607739cSSandrine Bailleux# 32*f607739cSSandrine Bailleux# Configure how the Linux checkpatch script should be invoked in the context of 33*f607739cSSandrine Bailleux# the Trusted Firmware source tree. 34*f607739cSSandrine Bailleux# 35*f607739cSSandrine Bailleux 36*f607739cSSandrine Bailleux# This is not Linux so don't expect a Linux tree! 37*f607739cSSandrine Bailleux--no-tree 38*f607739cSSandrine Bailleux 39*f607739cSSandrine Bailleux# 'Signed-off-by' lines in commit messages are not mandated for TF. 40*f607739cSSandrine Bailleux--no-signoff 41*f607739cSSandrine Bailleux 42*f607739cSSandrine Bailleux# This clarifes the lines indications in the report. 43*f607739cSSandrine Bailleux# 44*f607739cSSandrine Bailleux# E.g.: 45*f607739cSSandrine Bailleux# Without this option, we have the following output: 46*f607739cSSandrine Bailleux# #333: FILE: drivers/arm/gic/arm_gic.c:160: 47*f607739cSSandrine Bailleux# So we have 2 lines indications (333 and 160), which is confusing. 48*f607739cSSandrine Bailleux# We only care about the position in the source file. 49*f607739cSSandrine Bailleux# 50*f607739cSSandrine Bailleux# With this option, it becomes: 51*f607739cSSandrine Bailleux# drivers/arm/gic/arm_gic.c:160: 52*f607739cSSandrine Bailleux--showfile 53*f607739cSSandrine Bailleux 54*f607739cSSandrine Bailleux# 55*f607739cSSandrine Bailleux# Ignore the following message types, as they don't necessarily make sense in 56*f607739cSSandrine Bailleux# the context of the Trusted Firmware. 57*f607739cSSandrine Bailleux# 58*f607739cSSandrine Bailleux 59*f607739cSSandrine Bailleux# COMPLEX_MACRO generates false positives. 60*f607739cSSandrine Bailleux--ignore COMPLEX_MACRO 61*f607739cSSandrine Bailleux 62*f607739cSSandrine Bailleux# Commit messages might contain a Gerrit Change-Id. 63*f607739cSSandrine Bailleux--ignore GERRIT_CHANGE_ID 64*f607739cSSandrine Bailleux 65*f607739cSSandrine Bailleux# Do not check the format of commit messages, as Github's merge commits do not 66*f607739cSSandrine Bailleux# observe it. 67*f607739cSSandrine Bailleux--ignore GIT_COMMIT_ID 68*f607739cSSandrine Bailleux 69*f607739cSSandrine Bailleux# FILE_PATH_CHANGES reports this kind of message: 70*f607739cSSandrine Bailleux# "added, moved or deleted file(s), does MAINTAINERS need updating?" 71*f607739cSSandrine Bailleux# We do not use this MAINTAINERS file process in TF. 72*f607739cSSandrine Bailleux--ignore FILE_PATH_CHANGES 73*f607739cSSandrine Bailleux 74*f607739cSSandrine Bailleux# AVOID_EXTERNS reports this kind of messages: 75*f607739cSSandrine Bailleux# "externs should be avoided in .c files" 76*f607739cSSandrine Bailleux# We don't follow this convention in TF. 77*f607739cSSandrine Bailleux--ignore AVOID_EXTERNS 78*f607739cSSandrine Bailleux 79*f607739cSSandrine Bailleux# NEW_TYPEDEFS reports this kind of messages: 80*f607739cSSandrine Bailleux# "do not add new typedefs" 81*f607739cSSandrine Bailleux# We allow adding new typedefs in TF. 82*f607739cSSandrine Bailleux--ignore NEW_TYPEDEFS 83*f607739cSSandrine Bailleux 84*f607739cSSandrine Bailleux# VOLATILE reports this kind of messages: 85*f607739cSSandrine Bailleux# "Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt" 86*f607739cSSandrine Bailleux# We allow the usage of the volatile keyword in TF. 87*f607739cSSandrine Bailleux--ignore VOLATILE 88