From patchwork Wed Nov 28 19:36:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Higgins X-Patchwork-Id: 1004796 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="R8LJYBiu"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="cgDgZb3/"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 434rY768wkz9s4s for ; Thu, 29 Nov 2018 06:38:19 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:From:Subject:References:Mime-Version :Message-Id:In-Reply-To:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hG4wzNcb3o7nHLcwc8a4AbzUKTVjNYM1uah7iDJl4EI=; b=R8LJYBiuvOK9fE 9V8pvu5RuGwCAQPeGVNZQTo5TzaxbMdYeHZKUZ4Ng+J4VErVrmxgc+5NWyBtWozLaYxq6PKJtNR3a YJl0YWcglXf4zYCoFA1xK6QLtcm7GBuH/1fyYFUcD5bXxonyfcE/bUaB7B8BzUlxYl7gb6Q34fdv9 mgYEHID5t+YN+J7sQ0INaFVGbFRWUqa03aI4DdQOofVEWDgmkGVk7TwQJTWu0E9Vk2F+fdebfWW24 wanDQzU5M3XRcc3MqovEaZX20TTyfbrwNvWAwsUEQyvvh69Qwdy+IH5E2gwppydAvLQbSSh2Lcces JPsQSWDAmocTy9T6VmUw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gS5f2-0003e8-7b; Wed, 28 Nov 2018 19:38:12 +0000 Received: from mail-pg1-x549.google.com ([2607:f8b0:4864:20::549]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gS5ez-0003Wp-QQ for linux-um@lists.infradead.org; Wed, 28 Nov 2018 19:38:11 +0000 Received: by mail-pg1-x549.google.com with SMTP id s22so12725781pgv.8 for ; Wed, 28 Nov 2018 11:37:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=7o3/F9U9IKjkZ6IM9Sx8c0EMfVbluC0QKxi+aoA3j2Q=; b=cgDgZb3/4GE+EvO6c9q7nE9BKZSxXWI4PGb6FWRR91b4opTteDHUaFx8xi20/y7Mez JpV/5thabDhCBRUHZLG8pUs7FTtMY7V9eWyGJ7TlKv6bSu2qSYQ6ra7+6BdeJTOGyvoX s2bfpnjVtcKcxe12lu/NVowxn4Bu2K1qKFYTgllss2oVmmCQYTwicr29tnrSvAvJVmz7 R5jtAtTMjo8zBdo5vhchlp5rMhkZHvfRa6eZ8sfP8z95YloomWgnnyj2jApAZFQVFRe3 QjI8OiAPTG/swfACWqG2o6vT4kdLvD/tLiqlk8UsEnbfTON19tkBffPA19nL7KKQL9w8 anvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=7o3/F9U9IKjkZ6IM9Sx8c0EMfVbluC0QKxi+aoA3j2Q=; b=n3eNh1bT1NH44wRCeB8euQVxiFsMBMobd0Cf9o6KxVjw6bIBXXLPLula40S20RJuuH 9/ozxEihBzW1Chm7tQtz4QZ3ve2ziUac0aaO6PtPSTDwdam/8K3ePSq5KTjWSdjN5mbH HdiBKR1RzjvJJTJlElcdQNcLBJgHGEA7ng4Bp/1cVypJ0XYpqQEIlPzbm92mJYfztJLG Z7mkdGZUxpiFmgYnrPMr8igYkkD/HfZmkWZk9yyEkSe9aYI4LsT/uPgAIEVp5dIJ78nO 2Xgyy37EmsUwgpFRjpC/MGgY3BhVNM2YyGSpFafgykUO/U4gYXk1bTJppJtv/Kyvf9wG +7Dw== X-Gm-Message-State: AA+aEWY8tRbNKiJ4twM4351Yn4Q8izJPuDAbX6eL6Ol8yu7wsr6oKCky hEX4OgBES+dkMTOlvzpdOTvHsOxtSqcLKqZJ/Deq5A== X-Google-Smtp-Source: AFSGD/WZCpu2E2XeyMSRagVO1P9amlU5ZIT0i7TxLE9lAIM/bsuosh+GUdbMWKiKnSx20YGh5Rl4K/RvwPKxAslB8knGdQ== X-Received: by 2002:a17:902:1023:: with SMTP id b32mr2501651pla.121.1543433877985; Wed, 28 Nov 2018 11:37:57 -0800 (PST) Date: Wed, 28 Nov 2018 11:36:23 -0800 In-Reply-To: <20181128193636.254378-1-brendanhiggins@google.com> Message-Id: <20181128193636.254378-7-brendanhiggins@google.com> Mime-Version: 1.0 References: <20181128193636.254378-1-brendanhiggins@google.com> X-Mailer: git-send-email 2.20.0.rc0.387.gc7a69e6b6c-goog Subject: [RFC v3 06/19] arch: um: enable running kunit from User Mode Linux From: Brendan Higgins To: gregkh@linuxfoundation.org, keescook@google.com, mcgrof@kernel.org, shuah@kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181128_113809_850666_503B2445 X-CRM114-Status: UNSURE ( 7.41 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.7 (-------) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-7.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:549 listed in] [list.dnswl.org] -7.5 USER_IN_DEF_DKIM_WL From: address is in the default DKIM white-list -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 DKIMWL_WL_MED DKIMwl.org - Whitelisted Medium sender X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: brakmo@fb.com, jdike@addtoit.com, dri-devel@lists.freedesktop.org, linux-kselftest@vger.kernel.org, frowand.list@gmail.com, robh@kernel.org, linux-nvdimm@lists.01.org, richard@nod.at, knut.omang@oracle.com, kieran.bingham@ideasonboard.com, joel@jms.id.au, khilman@baylibre.com, Brendan Higgins , Tim.Bird@sony.com, linux-um@lists.infradead.org, rostedt@goodmis.org, julia.lawall@lip6.fr, dan.j.williams@intel.com, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, daniel@ffwll.ch, mpe@ellerman.id.au, joe@perches.com Sender: "linux-um" Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Make minimum number of changes outside of the KUnit directories for KUnit to build and run using UML. Signed-off-by: Brendan Higgins --- Kconfig | 2 ++ Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Kconfig b/Kconfig index 48a80beab6853..10428501edb78 100644 --- a/Kconfig +++ b/Kconfig @@ -30,3 +30,5 @@ source "crypto/Kconfig" source "lib/Kconfig" source "lib/Kconfig.debug" + +source "kunit/Kconfig" diff --git a/Makefile b/Makefile index 69fa5c0310d83..197f01cbddf03 100644 --- a/Makefile +++ b/Makefile @@ -966,7 +966,7 @@ endif ifeq ($(KBUILD_EXTMOD),) -core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/ +core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/ kunit/ vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \ $(core-y) $(core-m) $(drivers-y) $(drivers-m) \