From patchwork Mon Jul 1 00:58:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 168194 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2264160ilk; Sun, 30 Jun 2019 18:01:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyw35GzYwjtlxJhVV7YnfQS8jJQiEmROc4kHF0poVyHPcDNuPKHEJ+jgaYxGRpNl8bVmgOG X-Received: by 2002:a17:90a:37ac:: with SMTP id v41mr26467299pjb.6.1561942860380; Sun, 30 Jun 2019 18:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561942860; cv=none; d=google.com; s=arc-20160816; b=ZRM+Vbxhk136c3vDu/VqTnUNhhoVNkeaUpICKzgI3KkE3sMCJrTQgOI/FLLkkqyVWt ERTHVZPDk2qGqWjTECF6CvpBut0VQ6cnTvfxFkxOe12DRi/ZlimBix54I3X+xwPPUiQH osX2qqNSe2XPvP4Oaul2gj7OzIt/cdMtAla+P05sJPq9Rnw0V7Mmw1rh/sLk9ETV+E10 7McDfdEF4HNgR1gRvAgTZUcggVy7RAdwZdc/Fu1P7BkoHfIPqxS37e/YnCO+bhQJguAx NPgDJNMoGH87gtKP1j3PAYa+AIgCFWPTOsJFflGTR1KE1nyAEr/pmxsEY8sOjUNwBG+5 e7qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=oooXViC9T86N1kehUCLZdnfYF06+I/OFxyRd+VRUuLY=; b=kTNKwrWnKSFyuAd/VsTv/CZYS2R/2oeiU8mqLp9rpND9KnQYyI543VFHz7luj6x+WT WvFUSjCy6A1HTgOpaTSmzzVcapuAttQQLdNXm3DE6dOu/v3tFmID2mBC/3kJmCaqBJRk ppNZTzZYW6tJwzpUjIqKdl6LTUvoCwK9unSe2B7S1W0yBtRH8yBH1MpBTrf8d1YEkbdo vpdnas2BOFRpFG0CMxYdxXcIkzvxQiir0utqTs9aiebDnxneB1Je55qVUyEUEamJoyY4 xTTGtZhAP1phvfdIEkwsMTQhqRBxYrMVVEFPhWlqehNAu0rMxSG/kJTJukBF565Ua2kl 6zXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ggO1KhAu; 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 g7si8967925plb.29.2019.06.30.18.01.00; Sun, 30 Jun 2019 18:01:00 -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=ggO1KhAu; 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 S1727102AbfGABA6 (ORCPT + 30 others); Sun, 30 Jun 2019 21:00:58 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:61398 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726040AbfGABA6 (ORCPT ); Sun, 30 Jun 2019 21:00:58 -0400 Received: from grover.flets-west.jp (softbank126125154139.bbtec.net [126.125.154.139]) (authenticated) by conuserg-12.nifty.com with ESMTP id x610x4fs000634; Mon, 1 Jul 2019 09:59:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com x610x4fs000634 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1561942747; bh=oooXViC9T86N1kehUCLZdnfYF06+I/OFxyRd+VRUuLY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ggO1KhAuF+Nehk+KyS4QRMj0B08P+J7jfF5cmz0EDGcz93utHNiduH2qvMY9Yto6q 8/8ceCQiq04MtWkng9ByWDTZzTQAdwv1azeeA9+fDDsAkPRmxhIdUzNDLOwLt0pgqw OeIYQh9Hh1HBHgW2VrPzEQNXTAsN/qGX5sYXWUSVJuL66Xpe4D3w1tpS1HgzmTgLxV 7ZBfSW3v7jSdkeYemHkv/P2vDOdZhI1j8QXqbvz2Z4Uc1W/YQ4S7WHuYXLjZH1XLOn mGU2UgfjiOCMsbAbahCqhQjLY55blB0RGnxiuotFQKfK68tOhGR+ftVWS+kQSLQ8Pw jB+D0zrHWlh4g== X-Nifty-SrcIP: [126.125.154.139] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Joel Fernandes , Masahiro Yamada , Song Liu , "David S. Miller" , Alexei Starovoitov , netdev@vger.kernel.org, Yonghong Song , linux-kernel@vger.kernel.org, Martin KaFai Lau , bpf@vger.kernel.org, Daniel Borkmann Subject: [PATCH 1/7] init/Kconfig: add CONFIG_CC_CAN_LINK Date: Mon, 1 Jul 2019 09:58:39 +0900 Message-Id: <20190701005845.12475-2-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190701005845.12475-1-yamada.masahiro@socionext.com> References: <20190701005845.12475-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, scripts/cc-can-link.sh is run just for BPFILTER_UMH, but defining CC_CAN_LINK will be useful in other places. Signed-off-by: Masahiro Yamada --- Changes in v4: - New patch Changes in v3: None Changes in v2: None init/Kconfig | 3 +++ net/bpfilter/Kconfig | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/init/Kconfig b/init/Kconfig index df5bba27e3fe..2e9813daa2c1 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -24,6 +24,9 @@ config CLANG_VERSION int default $(shell,$(srctree)/scripts/clang-version.sh $(CC)) +config CC_CAN_LINK + def_bool $(success,$(srctree)/scripts/cc-can-link.sh $(CC)) + config CC_HAS_ASM_GOTO def_bool $(success,$(srctree)/scripts/gcc-goto.sh $(CC)) diff --git a/net/bpfilter/Kconfig b/net/bpfilter/Kconfig index 91f9d878165e..fed9290e3b41 100644 --- a/net/bpfilter/Kconfig +++ b/net/bpfilter/Kconfig @@ -9,7 +9,7 @@ menuconfig BPFILTER if BPFILTER config BPFILTER_UMH tristate "bpfilter kernel module with user mode helper" - depends on $(success,$(srctree)/scripts/cc-can-link.sh $(CC)) + depends on CC_CAN_LINK default m help This builds bpfilter kernel module with embedded user mode helper