From patchwork Fri Sep 6 15:27:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 173259 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp869653ilq; Fri, 6 Sep 2019 08:28:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL74zlDRJu907NtxD2R4CxKK75bu3kG1p8/M32asdvtO68oEEAzIcFxaad2nwyFoIT+k4V X-Received: by 2002:aa7:8f08:: with SMTP id x8mr11628049pfr.48.1567783699294; Fri, 06 Sep 2019 08:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567783699; cv=none; d=google.com; s=arc-20160816; b=G35XCOAHFQYTerRxAZKCXqoAZUOp3/Y3M0Dsj9r0qVL5YGa5dtBHzCqvsA8WJqd5wh RmCECuztaqH9HP2BUcwRGgG5xFaeohrVVJRoIolQtGLHJxwDLqyBWWXi7y5wtnWH4WMC hL4JigHT/5iTsjp3shZ08HbYrN5od0tckCOeG6ZHq9sTwA9gTnGAyYzeYbxs6T8Yk4Rz p6MwFEYrqWBrzHTH5qU40yOVaFVLRJnuDEgBLKyY0D7BoA8olG37va3zw+vg10M36v+1 XjGsxBd1pLKcTa40CV4SZVz5n6gJnTsYa3oM4vXYvtbbKRCLvQJcM/PLBWGzrKEFw7iL rLgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=krDZD+Ny9wvDRb/cmIRlZaynR6l1OYpLfGYOG3Bu93k=; b=h3Y8vlpZggPZeIuzlx56G4IFbrVeenAraHCNC0B/diRrchkvHw1ysFooQ7Ae4IKkhc TzyCC8ryJA1MWR3WwoSgVSZjR8yhXctN4I99QNRSyMIgVjnV0U8j0hEgU49tmSf1XBkl 7QMZSxJUCVlDKEotUD95U8Qh7k3+OCgaAex9US3axbkTfZ7ceqebrAeeb/Xf/KhNeiiz q5azgohj+qRrP9Ja9Uj/Ce1d+gWuQ6Ow2e7ZBZB4/T61mCCrJvX/eTFjZV29DaDDAerr 3i10mS3LvexXD+B5gkxGJ7MQkX99BCTAnImC8ZXeJaYrQyphZdjNIvsTvm/iQwRJwqxR WrMg== ARC-Authentication-Results: i=1; mx.google.com; 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 d63si5083983pld.300.2019.09.06.08.28.19; Fri, 06 Sep 2019 08:28:19 -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; 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 S2404705AbfIFP2S (ORCPT + 28 others); Fri, 6 Sep 2019 11:28:18 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:59889 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388007AbfIFP2R (ORCPT ); Fri, 6 Sep 2019 11:28:17 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1McpS0-1if2jw10Ms-00ZtUu; Fri, 06 Sep 2019 17:28:02 +0200 From: Arnd Bergmann To: Brendan Higgins Cc: Arnd Bergmann , Greg Kroah-Hartman , Logan Gunthorpe , Stephen Boyd , Shuah Khan , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH] kunit: add PRINTK dependency Date: Fri, 6 Sep 2019 17:27:45 +0200 Message-Id: <20190906152800.1662489-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:xQht81px/ceYx++wN+B2QvBkFd39U6O35ZakKPBR4duPVEzMpZ6 aEvP0fGtplDdzkiG5ZJ/xJxJyreFTU0C341Rp/SN2n0HPHSrTQP/6UZ0TW+Mf8UGOHL4mLz GTOPiILBrpAAAdleY1XIxLrQdPcgjFpzktrxx+SGY3A1FwPrthVxPXhBPSo8iies5eiSYZa U2PEq/uSfNR5FxEDzv8uQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:MA9m20dznII=:XUqyWaYvYb9f8p8w20bBZw uUH4FdWPjuZV89mmTgGVg99mY1ukZgPeRT+GRh3d6lFToBjKbfaoh+PmKdZTIDiIUCcdkvkf3 eqLpOXSKy+7Cs9NfX4KBMIYOpupDHVKoqJ+yfzHoF9OduOtbREqZKPxILC/BCQpD4YKGLbIIw DNCP3cfCvCMnIwAeZNcG7dipqZZ2wlS0xakiks6J8mfnEQhZSr26fwdQxbM2688t9tRNtEqjA yTTnx1iKlvMlh49KpbLGGI6IpI7c2QD6R1VGJBZEmRr4BdyaqiIqlYDW4V8weFPxQoWdhyLzq am01dgujshTbqbIN59MHpnrhDSnL3QXC+VyoZHLFQaQVENJEzAcug5gLe2s2jMk2SBjuSZvGA jqCjOo8Qs7Eq18oR0oi2QwHuqZrc5r0UkV5mDtKnSOzWkkYDb0UFRp5s85qkmB0iAwD95LWyA W9A53ip3HNK/i2ObdeiMlOBrX0FPLxIHj6AHYxQCHgJy460f40xfJKtz6QkG/UhanqwC2dyLq wsdGz3Gi3NQI3FNzDKALgpvjFDUuQm6RfVz5XMXO8jaNuoCljo3KFv0o8GCME0evUTxCMF90h mLxIC2PYdRLaximU2IvVHo3wOXZrjR2KgRYvIkqc8hrHOvyQu7AsqlMvyZNsmOKsiraqzeOlb jJRTh7BwokLj9xW7sYT+gtI/I5uUYOtUvdFUOwPejtkt1gAYXsfd+Vw+70D/l3GpxqEYL6KJ4 HpZQX2IqcjmfkvRndSrXkul9Gv55FMvdXeyBzHZbQfSoyOqr6dy07YIy2E8VNv1UlGy0g/PdA 38ErFLNR+/f4+zn+KK9Adr6DLMlF/vyT82/VH6lVuYBenCk008= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The vprintk_emit() function is not available when CONFIG_PRINTK is disabled: kunit/test.c:22:9: error: implicit declaration of function 'vprintk_emit' [-Werror,-Wimplicit-function-declaration] I suppose without printk(), there is not much use in kunit either, so add a Kconfig depenedency here. Signed-off-by: Arnd Bergmann --- kunit/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.20.0 diff --git a/kunit/Kconfig b/kunit/Kconfig index 8541ef95b65a..e80d8af00454 100644 --- a/kunit/Kconfig +++ b/kunit/Kconfig @@ -6,6 +6,7 @@ menu "KUnit support" config KUNIT bool "Enable support for unit tests (KUnit)" + depends on PRINTK help Enables support for kernel unit tests (KUnit), a lightweight unit testing and mocking framework for the Linux kernel. These tests are