From 90582e4db3f132091c8d4c94834a7df9f08acd23 Mon Sep 17 00:00:00 2001 From: Antonio Nino Diaz Date: Fri, 27 Apr 2018 09:29:20 +0100 Subject: [PATCH] checkpatch: Ignore SPDX_LICENSE_TAG The Linux kernel expects the SPDX license tag in the first line of each source code file in a comment. In the context of the Linux kernel repository this makes sense because they have many different license headers across their codebase. Moving the tag to the first line of the source code files makes it easier for analyzers to see the license of each file. In the Trusted Firmware, we control all headers and make sure that they follow the same pattern, so this is not needed. Change-Id: Ie19802c7b65b1bdd63da9ece64311aec1f8ad7fe Signed-off-by: Antonio Nino Diaz --- .checkpatch.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.checkpatch.conf b/.checkpatch.conf index e92b96f3..63bdf7b4 100644 --- a/.checkpatch.conf +++ b/.checkpatch.conf @@ -36,6 +36,10 @@ # This is not Linux so don't expect a Linux tree! --no-tree +# The Linux kernel expects the SPDX license tag in the first line of each file. +# We don't follow this in the Trusted Firmware. +--ignore SPDX_LICENSE_TAG + # This clarifes the lines indications in the report. # # E.g.: -- 2.30.2