From patchwork Tue Jul 3 00:39:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 140858 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp551588ljj; Mon, 2 Jul 2018 17:40:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcdMSIvNUTCruPMfkySzh0a4ij7kwawN89hU50TKpdAV16qK7jDLuULZXK1QcpMxo8FP/MY X-Received: by 2002:a65:510c:: with SMTP id f12-v6mr23063302pgq.288.1530578427623; Mon, 02 Jul 2018 17:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530578427; cv=none; d=google.com; s=arc-20160816; b=e8mdNa9v7QZ/nJdQvE6z/ldWF+bfSsVauBcSJ3wzwkOygY4zC8H+kICnEet6nBhjVh p0Jx7VMpmE30h5FmQe8HzmE1YguHNkBo+S/OoPZoMJLYFhwxBclbsD8EOXsA8L+rlO4f bNfnU6+FLIyivMOevZxMxjpbzKjOvMBRPlx+QZlwp3srvw5wx4dZhKTroayWqyvVOEQb Hoj6xVvfzSD4XvWSFp/tX3+fRcaibtpHid09Vyr/AXNzuQMJMC49ZcY6bXnDav4+xVye mjm86byyVRVTLIS1yZZQU72ZPoSnVW4f7or0aQiJ7/m09mwqEDojR5N1DHh5iAihPLH0 /SSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=isHapNcNvpJ8y2I1Jw2hFJggrS10xWEX9y4kgjXIi0A=; b=fLQ6Ly7srE0xfFcnR6pDNM8xeYZ3Caixqgnb5DJSfq0F31A24mx7laAaxwe3YQEbrA FKiYrSFT5gXWqvF1vIE9LZMey6+KnNkxUxqVU2DvyZC7wicHqUeqOwmO9CrIBTe1OmC8 jIFgdmU1mAhNmcVSD/c5FVlqn1ah+QmuVZh5OmAUID1MOxtExaZAOdR82LflXOfZ8FbF jJzcm1+xDI+evo1xTQicWPWk7gMNN5YMiY6s5sNUXNRpQlrAKmiqCSMCWB6BHofOvWLm KMT3f78AtmhQcGiSof3nfEpDIhjAzglQGjOIcxssyEP8nLBbpGI0cS/hCLYeOTJlJFLP UJag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=0f8AE7Sy; 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 d39-v6si12668604pla.41.2018.07.02.17.40.27; Mon, 02 Jul 2018 17:40:27 -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=@nifty.com header.s=dec2015msa header.b=0f8AE7Sy; 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 S1753347AbeGCAkY (ORCPT + 31 others); Mon, 2 Jul 2018 20:40:24 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:58781 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752770AbeGCAkX (ORCPT ); Mon, 2 Jul 2018 20:40:23 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id w630dLxU015568; Tue, 3 Jul 2018 09:39:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com w630dLxU015568 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1530578362; bh=isHapNcNvpJ8y2I1Jw2hFJggrS10xWEX9y4kgjXIi0A=; h=From:To:Cc:Subject:Date:From; b=0f8AE7SyRQteOWbedL4ADMAvEW7HI9A9t8uxPG7nZB1Y86suZwXln1koA7pBGJI9r g+qkuLxrDKOv3JuWwtQpn4g9Mx8dQgL4uxebmIIvxECjwAj0Lo5GpLT9T1Djm1e9aK mnewALTbqMC/aO1J8jV8XO/s9jmqGmlyfN14rVb+u7qnTHYdix8Xy9JdXiqjbfLrLo Uxh+prwriYUIP34XlU5u7glkHT3IrpC6TQeP8h+F0o5adhWFP416VgeEw5mvf0UgZg bclsJQJRYfwyprafgiRkuiykSgfPKDSDCsl+z7ADIVAP0gWEnoByIjXHnqxnAFQzdV +wb4OEPDPhZJA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Kees Cook , Emese Revfy , kernel-hardening@lists.openwall.com Cc: Masahiro Yamada , linux-kernel@vger.kernel.org, Michal Marek , linux-kbuild@vger.kernel.org Subject: [PATCH] gcc-plugins: remove unused GCC_PLUGIN_SUBDIR Date: Tue, 3 Jul 2018 09:39:12 +0900 Message-Id: <1530578352-18613-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GCC_PLUGIN_SUBDIR has never been used. If you really need this in the future, please re-add it then. For now, the code is unused. Remove. 'export HOSTLIBS' is not necessary either. Signed-off-by: Masahiro Yamada --- scripts/Makefile.gcc-plugins | 3 +-- scripts/gcc-plugins/Makefile | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) -- 2.7.4 Acked-by: Kees Cook diff --git a/scripts/Makefile.gcc-plugins b/scripts/Makefile.gcc-plugins index c961b9a..f9942d9 100644 --- a/scripts/Makefile.gcc-plugins +++ b/scripts/Makefile.gcc-plugins @@ -19,7 +19,7 @@ gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE) += -fplugin-arg-ra GCC_PLUGINS_CFLAGS := $(strip $(addprefix -fplugin=$(objtree)/scripts/gcc-plugins/, $(gcc-plugin-y)) $(gcc-plugin-cflags-y)) -export GCC_PLUGINS_CFLAGS GCC_PLUGIN GCC_PLUGIN_SUBDIR +export GCC_PLUGINS_CFLAGS GCC_PLUGIN export DISABLE_LATENT_ENTROPY_PLUGIN # sancov_plugin.so can be only in CFLAGS_KCOV because avoid duplication. @@ -27,7 +27,6 @@ GCC_PLUGINS_CFLAGS := $(filter-out %/sancov_plugin.so, $(GCC_PLUGINS_CFLAGS)) KBUILD_CFLAGS += $(GCC_PLUGINS_CFLAGS) GCC_PLUGIN := $(gcc-plugin-y) -GCC_PLUGIN_SUBDIR := $(gcc-plugin-subdir-y) # Actually do the build, if requested. PHONY += gcc-plugins diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile index 3262546..aa0d0ec 100644 --- a/scripts/gcc-plugins/Makefile +++ b/scripts/gcc-plugins/Makefile @@ -14,8 +14,6 @@ else export HOST_EXTRACXXFLAGS endif -export HOSTLIBS - $(obj)/randomize_layout_plugin.o: $(objtree)/$(obj)/randomize_layout_seed.h quiet_cmd_create_randomize_layout_seed = GENSEED $@ cmd_create_randomize_layout_seed = \ @@ -29,7 +27,4 @@ always := $($(HOSTLIBS)-y) $(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o)) -subdir-y := $(GCC_PLUGIN_SUBDIR) -subdir- += $(GCC_PLUGIN_SUBDIR) - clean-files += *.so