From patchwork Sat Apr 27 03:33: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: 162986 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1470530jan; Fri, 26 Apr 2019 20:33:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqycGJaJ95Z7JSWovwrRus5ajxw7yjcSsEnXQ9qr/wuiDT5c7/pECLefWMFBWTDoaIGCLSid X-Received: by 2002:a17:902:1602:: with SMTP id g2mr49677729plg.325.1556336039548; Fri, 26 Apr 2019 20:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556336039; cv=none; d=google.com; s=arc-20160816; b=uoSWcVShHEQsS99oKlGOl3QaFOZneBMStFRvDxVCPUM6alzM2DJ0hsm3WgdfN1HvE+ ipoawRWpP6iNtkjA4jn9myBE0w4JLNUpq4/5TtRN42VddKF3eQhQlE8bVUJCsMTLQd4v VQf4LcutXY225hB4lrdixQK8p4366lqlQMrUehEz/mOW9PQ3entjWpcdytien+Y1mHe3 qjR8HR8RLMH4fi8D9fSvbEZ6Z2H+19hSmBWdARRNitB4lwRkeA5f0hNUtBC6b5VCfWVI JAPHZ518Bx1h1UL0z5WTs0nJ4eM7KNe0Xj8lX05/HRmSBUN3EiUvlq54T9jakaZ3Wfdg HAkA== 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=ZIKJFBEyh/OSHngEXiMX/2USDQxITyIVb8NQIStI1H4=; b=1CKRJYqQfbSshVSG74nCBVqwllimHTEchXUA0B/MEA1Bwt1ROjlbGOBkt3gBrAJX9x 6d7caHjBPXXFZ0vOdmaMW7SlHVnRdmTckHJ3oUNYu3dy8kQyUw/1b3bHaNP4o5t4IH5x ZkvHb7nVEw/AsHIrb+U+zcLf56fvkwptbDHQBGE/TkOm3rAwC9YVCHVAb0o7pwRI3ZhU xN3euH/o/qIsPq5VLJst9ITiQxgIU3ZAO73YK7QZkb1he8HZFKpZb6NUf/anme1Dpw1N k21koSQiHEQLAssQeQvN6bFX4M4mDBFxOwQV6Q/a4RNMzkAsZn23ylYVzMaTJqrKBiKa gBQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=lJXYtboy; 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 v9si25306287pgr.167.2019.04.26.20.33.59; Fri, 26 Apr 2019 20:33:59 -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=lJXYtboy; 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 S1727443AbfD0Dd5 (ORCPT + 30 others); Fri, 26 Apr 2019 23:33:57 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:17155 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727341AbfD0Ddv (ORCPT ); Fri, 26 Apr 2019 23:33:51 -0400 Received: from grover.flets-west.jp (softbank126125154137.bbtec.net [126.125.154.137]) (authenticated) by conuserg-10.nifty.com with ESMTP id x3R3XieA029345; Sat, 27 Apr 2019 12:33:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x3R3XieA029345 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1556336026; bh=ZIKJFBEyh/OSHngEXiMX/2USDQxITyIVb8NQIStI1H4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lJXYtboyPRaPsTlVouC3YTCaJW9WIZn/OvfH4o7hFPhCqMfDfA3ZEEXSJX3fnfWKv 8FnM0fKlSfNeGLsZJ64qd9Vq+vqxFCznxvshXEeXN2zBQ2ytw8VC7JNVqh54V37tLm 9CSjd5goq6so+qOS8/Mu+qdMYT1Jmg0lRyanaCMc0qiDvmNSdGZIK6nWM/ORZrwplk gu7mwJTAiKOgVVC+vlxjqI1S0dBy1D1AgbwzmtQ6JsSz7GgjOvWoFs0k3Rqy552PiJ rq9p1RWLcBDrTM5Dn0i6VwUDCfbQDhha2KCmf1Z2bdWMJY92IersWs4mntoHKRDrwM IpYZJWX8DX20Q== X-Nifty-SrcIP: [126.125.154.137] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 4/5] samples: seccomp: turn CONFIG_SAMPLE_SECCOMP into a bool option Date: Sat, 27 Apr 2019 12:33:39 +0900 Message-Id: <1556336020-15634-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556336020-15634-1-git-send-email-yamada.masahiro@socionext.com> References: <1556336020-15634-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The prompt of CONFIG_SAMPLE_SECCOMP claims this is "loadable module only", which is invalid. samples/seccomp/ only contains host programs, so having it tristate is pointless. Signed-off-by: Masahiro Yamada --- samples/Kconfig | 4 ++-- samples/seccomp/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/samples/Kconfig b/samples/Kconfig index d19754c..b98a763 100644 --- a/samples/Kconfig +++ b/samples/Kconfig @@ -103,8 +103,8 @@ config SAMPLE_CONNECTOR See also Documentation/connector/connector.txt config SAMPLE_SECCOMP - tristate "Build seccomp sample code -- loadable modules only" - depends on SECCOMP_FILTER && m + bool "Build seccomp sample code" + depends on SECCOMP_FILTER help Build samples of seccomp filters using various methods of BPF filter construction. diff --git a/samples/seccomp/Makefile b/samples/seccomp/Makefile index fb43a81..00e0b5e 100644 --- a/samples/seccomp/Makefile +++ b/samples/seccomp/Makefile @@ -40,5 +40,5 @@ HOSTLDLIBS_bpf-fancy += $(MFLAG) HOSTLDLIBS_dropper += $(MFLAG) HOSTLDLIBS_user-trap += $(MFLAG) endif -always := $(hostprogs-m) +always := $(hostprogs-y) endif