From patchwork Mon Feb 27 20:29:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9594105 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A46E560453 for ; Mon, 27 Feb 2017 20:29:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95ED5200F5 for ; Mon, 27 Feb 2017 20:29:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 894B728498; Mon, 27 Feb 2017 20:29:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id 73D84200F5 for ; Mon, 27 Feb 2017 20:29:46 +0000 (UTC) Received: (qmail 31818 invoked by uid 550); 27 Feb 2017 20:29:43 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 31780 invoked from network); 27 Feb 2017 20:29:41 -0000 From: Arnd Bergmann To: Kees Cook Cc: Arnd Bergmann , Emese Revfy , Jiri Kosina , Michal Marek , Masanari Iida , kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org Date: Mon, 27 Feb 2017 21:29:03 +0100 Message-Id: <20170227202915.3190748-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 X-Provags-ID: V03:K0:PPaAsyArBO20zQ/CsenDP2mzmjjXF8vd/BakpgLB1Z84qKgGn/q id3nwCE1t2M0v2WaDV4zrj9q+kE9KOeXm94jDODk+PFRORocrb3lEB+B1v/W+gm4E2FD9t2 1PolMmvtPmdvHQbgFVuUszvLxN0fU2e1meGXVUHDUIKUeXJHChPP37uZiXRNNGzAZOBWbV9 vxUNk7Gyd+ZAnPaHgDt4A== X-UI-Out-Filterresults: notjunk:1; V01:K0:7h6K1TKGMUY=:puWIz6j2+ZJXN9rmgqKC58 KzCq/0LAXUs7EPEh3nm+3aWx+Xe7PmAqecIzZ8tv5wPlik8M+c6gz+UBul3zt8tQiAtozO7zf U7NOkbXYVr4hOekxuhU5NCq2t7jwyyW7kbBzsxEIaU6hkjTy4W+PccqaXGi/5NAcDkepeMUAk BH5UxNhr7m7wNppyxrmlT2eWQqhri0N0D060NtNsO/foI2ogrceQKW3+eg3PwpsEfYhYv8wP8 fH6HDX5+UaSMN+8G7wUc6ijF/HDz3H+oCqXJMVt1HPq0buXM4D+FM7NHphinA4OO6ew2EzxSa jInAiTFX33iPFn5QrXYqFuoS19YQCT1kGmzZXrb3rWmN2PO2ZMZfvtjwfWjc4PrVGcqu8PKTI L9gZlUA9LZG8mQjQI0fN3PgbxKk6MoC1+acY/5shf0PNPc+eeG+lUayc+sBTsNRBpkNdVFTru sUEFdbIxOoizwDw48NScd3UY4qUGFry5LzNFuFv1kcvWa2CHeYPfLCusJdx8YGhgOr40lOhtr pRKrmjsa3TyYu4U+gcSff2jQXgCy6KyP14be/dStzFxXoQcgQC+5ZUjTcCHCXcxSA86uXsKl3 38PDLBdy/e853ClvjxCo+NpHwvJIts8ukAdPLJjZ3350/7zmOXR6ryi0TDPQ5SljvicptvP/d dJtQ90hYHFmrvIVaN7FSyz1adLgFf7C+dh/F3POnAmRBCkMsxw0IZ5gXTd82TEjB/7pVBin2r f045PQbEISZrSboc Subject: [kernel-hardening] [PATCH] gcc-plugins: fix sancov_plugin for gcc-5 X-Virus-Scanned: ClamAV using ClamSMTP The name of the local variable was inadvertantly changed from sancov_plugin_pass_info to sancov_pass_info: scripts/gcc-plugins/sancov_plugin.c: In function ‘int plugin_init(plugin_name_args*, plugin_gcc_version*)’: scripts/gcc-plugins/sancov_plugin.c:136:67: error: ‘sancov_plugin_pass_info’ was not declared in this scope This changes the conditional reference to this variable as well. Fixes: 5a45a4c5c3f5 ("gcc-plugins: consolidate on PASS_INFO macro") Signed-off-by: Arnd Bergmann --- scripts/gcc-plugins/sancov_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gcc-plugins/sancov_plugin.c b/scripts/gcc-plugins/sancov_plugin.c index 9b0b5cbc5b89..0f98634c20a0 100644 --- a/scripts/gcc-plugins/sancov_plugin.c +++ b/scripts/gcc-plugins/sancov_plugin.c @@ -133,7 +133,7 @@ __visible int plugin_init(struct plugin_name_args *plugin_info, struct plugin_gc #if BUILDING_GCC_VERSION < 6000 register_callback(plugin_name, PLUGIN_START_UNIT, &sancov_start_unit, NULL); register_callback(plugin_name, PLUGIN_REGISTER_GGC_ROOTS, NULL, (void *)>_ggc_r_gt_sancov); - register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &sancov_plugin_pass_info); + register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &sancov_pass_info); #endif return 0;