Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1599693ybe; Fri, 6 Sep 2019 22:31:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9BvAbhIS8a+ZdJc2vYQUcARufWOJDp6PP2thm6K+M+7a1SGSdjuOGM/m4ZvaudFYPFtkq X-Received: by 2002:a17:90a:2a4a:: with SMTP id d10mr13534616pjg.72.1567834271767; Fri, 06 Sep 2019 22:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567834271; cv=none; d=google.com; s=arc-20160816; b=BtnnmPw9mwq2JpUe+XysFDSGpTcc+m/htT+orFehO5F2wOxsM7Zr22Pa0qCqgx/Qox 7ktfmofgVLdrzGJAu9yL+PkA7LhKfFfhKu45flzzIVxQOFbHarohe708VwSJqJJpHp4a a3xvEMHVWnlC1/yl9EL6Q5U6tfDsRcSu+OlpdE0q1xNWXkHqcR0O/tCnldJqHu7wHo5L n4uhnWacyFmDw/hxRE/Y31XVI/J/59+HSN3tAZDIscQsh5TXZfd2IEMODWrM7p5Q9VwT nYu3+Ao+3l71Zyw6SEF82s54swgtFeBEGj1eYw512AK3zOhpKaZFb1r+L+heYnSj5Hit 1nZQ== 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 r38si6512726pgl.498.2019.09.06.22.30.20; Fri, 06 Sep 2019 22:31:11 -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 S2404685AbfIFP2S (ORCPT + 99 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 Content-Transfer-Encoding: 8bit X-Provags-ID: V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qr6dy07YIy2E8VNv1UlGy0g/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(+) 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 -- 2.20.0