Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2000264ybl; Sat, 24 Aug 2019 08:22:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTK1PqE5zfinhsV5aIqqKVzwhdkOmrVtZ0A00pz3zgCOCkpc1j9MsbAgSOXMiO9AmOej7u X-Received: by 2002:a63:eb06:: with SMTP id t6mr8521533pgh.107.1566660135810; Sat, 24 Aug 2019 08:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566660135; cv=none; d=google.com; s=arc-20160816; b=cw91Ccs3dqCRyhFs7MwiDitW/4m3ag/yt77hZgwKCOzOnR9Db7H43OUjFeaamacc+E 2rk8ob4XKho4E2Lha5aIyBiQLGDP7T36gmeoFbBbIVFY9LfVO3YNgYvU5eMui8dWnqx/ 3fGc/2PymrhEm0j7qn3ticSe6Avl2084S5B79JdTWpIGb4t/D6mjm+ZSZa2mJz9Cp7r3 dvjDLM2sigbv0EHQooP0n26RP4jsoW9sM+QUJSHqJCputOBNgWGZvBsqKaWLGmnC6XZH L5Jy/bBqNZoANOXfPKQflbE5gTG3mRw3AQSVd9ftRZLk7wzAy+i2MuxiykD72qU0ryC1 h3hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=SiK5awtb3XtswAU9aPZ9JBKoA24y1ffHIXBomKXu1lA=; b=rY45MScWa/IMqGP4+WVxO3gZ+4URPcVytcPCNL90Znj5CmdFmXQ2VvQMOJQ4BQvmYQ Evf+AWsqc6Z2LTj5xRKhBZcFd7xnH/xVxEawVBynmwzgRnUhK42GJe96lbZqphGNOetH to1H/z4YOC7PfcR7n+h4hWYnQDa6XmXWTwLlSVDkdWSmZNtKv22dzToNbva+6IjJeTT0 6GXFxFjZOvK9QoU9iHIv9ewrPSAjgdrq246eqL0JvIpzEvMTOxArMD6PfGS/xWS9VbKu NBoK6z/ElegQtvmtFhk2+Fth5uf9A6Jelms+BnDlzBNNQ0nmzaR/LYWBS1+qVSZ5D/4H irhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=IDD9briY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si4884455pjq.95.2019.08.24.08.22.00; Sat, 24 Aug 2019 08:22:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=IDD9briY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727800AbfHXPVJ (ORCPT + 99 others); Sat, 24 Aug 2019 11:21:09 -0400 Received: from mout.gmx.net ([212.227.17.22]:38507 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727682AbfHXPVI (ORCPT ); Sat, 24 Aug 2019 11:21:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1566660054; bh=21g5UFCvn3oFn35pF2pL6tSHWuVW0ZKs5+RW/c9+xrU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=IDD9briYoUXWz43GxLSq7b2Y7rMq1FhCgTYmbEkcILfahCcXAEz7RE9R1vXHpMxrD QcWLEM7AeWNC7D4BmxrL+hRyCK/TmjMEVbMG5kDj2kFFe9oMbqho7tUn9aOMqv72Iu s/s9gTIge0xY73Er0e0Av26blnELYgfDbR9Ok49I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([82.19.195.159]) by mail.gmx.com (mrgmx101 [212.227.17.174]) with ESMTPSA (Nemesis) id 0LfXmv-1iYQhA3Z9N-00p6RW; Sat, 24 Aug 2019 17:20:53 +0200 From: Alex Dewar To: keescook@chromium.org, re.emese@gmail.com Cc: kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, Alex Dewar Subject: [PATCH] scripts/gcc-plugins: Add SPDX header for files without Date: Sat, 24 Aug 2019 16:20:41 +0100 Message-Id: <20190824152041.19127-1-alex.dewar@gmx.co.uk> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:qSDt+v/H/vNfoO3FeyMOZYs0LmytlhdxJriO184bpEsJVfUCN+m XdwMgzD1VqRNi4ar8o58tJ55OKgw2MV5mZwA43hd8cXj+NgvAJ07+zZp4FiWroIsZ68w4Uf hbLgwviQk6T3e5cSUQ08mrC4zM5O7cUSlw7TF7PqnUsrRtcOdr0b20RQmql9ELDxARJZ1F4 iobVEyWnnc3mmPi3S4UlA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:yYkRyIhfMoE=:24wEuPsLl3mgTzS5w306WM pkmmYgq7vtxz4WVrN4a6ptbEQwa/ZCdUUvXyLenbimTidYLZIFndW783viDcxJuWmZCO9eZu/ SVyZM/wsfC45CjAjd05D5juRA+PeTB7ZS9NdaqONnkXyPJEY0wXRRI76LM2xwqlhBRHaNeGyD 3KC0rF2SSm87KTTUQ/1hKlO4EMm4mnPNa8NMPRTgm/2e0EZxS+iDQeFRMdRHRZFqpIfMG45xO mDc0BdvrVb+9qGdkmjvcZK6wTCRrgUsyrp5l/LjLATjau1z9ZLkrHPw3+ohS60Ih3urXuhjyM eylm+d7IA0LvaKXTn0DUsMcnK5fPL0CVpmEIq8oqic8WUg+QO3kTeg4ZX1jTmiRBOmlteYN3h F/MQa/dN44cl7duxNYpsAAkD5UVfkEhQNwmXmsExBcyFnjfsGG3e0XhgKGsnTfGNSUIGSnkUh c4x3PMHYQpu0gUabbcoGIxOGdGYTomTsPXrucHpI2nyqUXZ7EZfojX1gblDU9zopCJSxTiSXI sl4KUhD6CWl3CDInwZ5D7zoBp5Mxgzh/huhV3azjh8dp9BfrtdurtXhwVHS8GWDJSLXuYugYx jAcGtJA8GjD91VOQfPGyohGvGo7jp1to7aHUpi3bfM9Te7zZr+KcslwWEW8xR4Dhi7p9cxlX7 yLik0TaDk0MsWf8mYjhSgZ8N7hnEoCvmGy/SE1JBE6Fc48sCkEHmoc8NmAFJCgsBNsiwzPCWI A8794mHCjE6J1YYvxsjbMxzWLRWlMX/6eoysiyiE1QaqDf6KQOCDyn4Kp+1zUZKjTrWJV6911 7cJzEydGfvmWGogH0GgVkdW0DbMmEcqay4n4bcDxDmXzQw8Qg1uQfj0weAkJPtbKTYIAeywqF IN5kvn1uR6gNOkI392p/3rZq5E+HwG7dOnuBy0FKnoWZbf0kE1vqjccSSFlLK6Q0imUd3aS6D oyXtsHoGjAmac1zg6LPU/1SvCRuM6ScxMYjTXBhNm3GRajOjm2406AOd9ooniJac+2ojU66eO abLB9cCSj0r+TjHleY2QEL6BdB+QgejntjWs22ZqCFV8ba85HF1xc3Z/gKnEEjOurP8b7SSkC Xolm7//WUIuctjzYo20J+TAds2pry80shk8pOzDu671dhh9wycrC1LWlw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace boilerplate with approproate SPDX header. Vim also auto-trimmed whitespace from one line. Signed-off-by: Alex Dewar =2D-- scripts/gcc-plugins/cyc_complexity_plugin.c | 2 +- scripts/gcc-plugins/latent_entropy_plugin.c | 2 +- scripts/gcc-plugins/randomize_layout_plugin.c | 4 ++-- scripts/gcc-plugins/sancov_plugin.c | 2 +- scripts/gcc-plugins/stackleak_plugin.c | 2 +- scripts/gcc-plugins/structleak_plugin.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/gcc-plugins/cyc_complexity_plugin.c b/scripts/gcc-plu= gins/cyc_complexity_plugin.c index 1909ec617431..870266f36b5c 100644 =2D-- a/scripts/gcc-plugins/cyc_complexity_plugin.c +++ b/scripts/gcc-plugins/cyc_complexity_plugin.c @@ -1,6 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2011-2016 by Emese Revfy - * Licensed under the GPL v2, or (at your option) v3 * * Homepage: * https://github.com/ephox-gcc-plugins/cyclomatic_complexity diff --git a/scripts/gcc-plugins/latent_entropy_plugin.c b/scripts/gcc-plu= gins/latent_entropy_plugin.c index cbe1d6c4b1a5..c693ac27ddf1 100644 =2D-- a/scripts/gcc-plugins/latent_entropy_plugin.c +++ b/scripts/gcc-plugins/latent_entropy_plugin.c @@ -1,7 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright 2012-2016 by the PaX Team * Copyright 2016 by Emese Revfy - * Licensed under the GPL v2 * * Note: the choice of the license means that the compilation process is * NOT 'eligible' as defined by gcc's library exception to the GPL = v3, diff --git a/scripts/gcc-plugins/randomize_layout_plugin.c b/scripts/gcc-p= lugins/randomize_layout_plugin.c index bd29e4e7a524..f46d049da26c 100644 =2D-- a/scripts/gcc-plugins/randomize_layout_plugin.c +++ b/scripts/gcc-plugins/randomize_layout_plugin.c @@ -1,7 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright 2014-2016 by Open Source Security, Inc., Brad Spengler * and PaX Team - * Licensed under the GPL v2 * * Note: the choice of the license means that the compilation process is * NOT 'eligible' as defined by gcc's library exception to the GPL = v3, @@ -909,7 +909,7 @@ static unsigned int find_bad_casts_execute(void) } else { const_tree ssa_name_var =3D SSA_NAME_VAR(rhs1); /* skip bogus type casts introduced by container_of */ - if (ssa_name_var !=3D NULL_TREE && DECL_NAME(ssa_name_var) && + if (ssa_name_var !=3D NULL_TREE && DECL_NAME(ssa_name_var) && !strcmp((const char *)DECL_NAME_POINTER(ssa_name_var), "__mptr")) continue; #ifndef __DEBUG_PLUGIN diff --git a/scripts/gcc-plugins/sancov_plugin.c b/scripts/gcc-plugins/san= cov_plugin.c index 0f98634c20a0..9845ad67a7d8 100644 =2D-- a/scripts/gcc-plugins/sancov_plugin.c +++ b/scripts/gcc-plugins/sancov_plugin.c @@ -1,6 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2011-2016 by Emese Revfy - * Licensed under the GPL v2, or (at your option) v3 * * Homepage: * https://github.com/ephox-gcc-plugins/sancov diff --git a/scripts/gcc-plugins/stackleak_plugin.c b/scripts/gcc-plugins/= stackleak_plugin.c index dbd37460c573..3abaea274651 100644 =2D-- a/scripts/gcc-plugins/stackleak_plugin.c +++ b/scripts/gcc-plugins/stackleak_plugin.c @@ -1,7 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright 2011-2017 by the PaX Team * Modified by Alexander Popov - * Licensed under the GPL v2 * * Note: the choice of the license means that the compilation process is * NOT 'eligible' as defined by gcc's library exception to the GPL v3, diff --git a/scripts/gcc-plugins/structleak_plugin.c b/scripts/gcc-plugins= /structleak_plugin.c index e89be8f5c859..eb8d6b5c83b5 100644 =2D-- a/scripts/gcc-plugins/structleak_plugin.c +++ b/scripts/gcc-plugins/structleak_plugin.c @@ -1,6 +1,6 @@ +// Licensed under the GPL v2 /* * Copyright 2013-2017 by PaX Team - * Licensed under the GPL v2 * * Note: the choice of the license means that the compilation process is * NOT 'eligible' as defined by gcc's library exception to the GPL = v3, =2D- 2.23.0