Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1659392ybe; Sat, 7 Sep 2019 00:00:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqy64aLzmk7XV27w/8CVgTcv1YXr9edQR81NB+NflayRUXwRuTnUsympJpyGCqA50sNtYyo2 X-Received: by 2002:a63:7b18:: with SMTP id w24mr11320345pgc.328.1567839603233; Sat, 07 Sep 2019 00:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567839603; cv=none; d=google.com; s=arc-20160816; b=PYtu+PYbITYdnpOI2k+BrFsI3BFS9whsnMDT0dqR9W4vo/sHGh3R8jmpOi+WsNAENN S1xy3NN/e4xggHnsHfnOUFuisg0V+C4W9fQEDK5fI5t6otGUIciEXnxNGn2uB0uVLC/d jY6o3afVMUSqxeiFxU9M1lSXM/VWcx32T60MsMcBZy3SfjF3rEWpmNuf3fmyBOaOYVB/ xksVsJPB9AXgrVlaBzP9w0l3Bg8I2bDv3uH8BKn7a9jzS/mvipjyoNKfX1kOI3cFoHiw XQqYCzoItCgFEwMLZ8UqN997EX24UEfO6d2VdXIJznXwbQrBnmNikYkHTvLyB4kZZda7 afGA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=S8RHJ4leAR/wkyDpJhQ/x19o61jLbTWUL3D7mVMACPs=; b=ByeQDJ9OvpDG/+wrxVeKcrGq9djLOy/LQzEq28d8ePXwWLt4bj1TxK8b2w7nwgewU5 +tz/EiDi+nksX9NPl2lhkdvlphyPp+b0ZASj2y+MeXPWyubdwootIXJQ1lMsFRYFixCU 99vfaNbi3h+9VQdoTV/tUcF6gPk/HdxeLPDka8uD5pgpdmyxuxMiAn8/VM0MEemZ92tW q0wUsW70HHQXNx2gOSI4UhRzkyjOgUI9M+vT+0WWNbP9AbdYyD4zO+CyDZH70vx+SxGV kHM0QGJscyg4xbe16k2Flg8pVZUR7GNsFemi6DDri3i0tHrsiKXfBcOiPj/tc5we0dnd +m3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=OcYaycXH; 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 v7si6600669pfm.274.2019.09.06.23.59.48; Sat, 07 Sep 2019 00:00:03 -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=@linuxfoundation.org header.s=google header.b=OcYaycXH; 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 S2405798AbfIFPjy (ORCPT + 99 others); Fri, 6 Sep 2019 11:39:54 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:37539 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405781AbfIFPjy (ORCPT ); Fri, 6 Sep 2019 11:39:54 -0400 Received: by mail-io1-f65.google.com with SMTP id r4so13718403iop.4 for ; Fri, 06 Sep 2019 08:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=S8RHJ4leAR/wkyDpJhQ/x19o61jLbTWUL3D7mVMACPs=; b=OcYaycXHpnVraoNGvlISPzzMWYxqcvr/1roS3d7O7HbVcwJ4iowOYMyvUfToJ7ftkt UeLmnyQx8D4yEcbwd+FXqshQVOimZBvrXLYYQdhjqlRsft6MHtT2jJ+DLV1J6MU+XDW9 6qljA7rqLMLqOQNPC2RsUcszjHR6PJiY3QkHs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=S8RHJ4leAR/wkyDpJhQ/x19o61jLbTWUL3D7mVMACPs=; b=N4b6oeKwZXpyXSfe6qwAS11cgKrSe74zwp67n9eewTqEFgd/s/nvj5ncexpB6p+Df9 NhyRmwpouzdJORNvQ/OvuK9w+WgzBegXw6QNdOGBnPSpjLYN2FsMdLoc/em6D+KEJqv1 2wWSma+jnP4y0b8nyteq4K6mo6LATgfjbqIE7g852LK7kkuTihPY6ohEi8jn5o7fk++0 5V4jd4tN3XsqVnYiIJUMsqjAE1w+Yv2xZVUwwId5rNRIXI3CiJ3eimm+i7P6jBDe2Kzq 2OHpStm/Lcxwluxz7+SLeZeD6I660Xg6lMgQy+AUBC3fk69KMM5KwkSdUGYQYnX4B7Xo HV0g== X-Gm-Message-State: APjAAAWBi33oMFR62E4llOpvevnMZJ/lr+RxZObibL+7OyuZdQj2Eni5 Mcy0P/QxuMfMKM8dr73lT7TytUzMnR4= X-Received: by 2002:a6b:1542:: with SMTP id 63mr8416332iov.35.1567784393342; Fri, 06 Sep 2019 08:39:53 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id l186sm11065424ioa.54.2019.09.06.08.39.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Sep 2019 08:39:52 -0700 (PDT) Subject: Re: [PATCH] kunit: add PRINTK dependency To: Arnd Bergmann , Brendan Higgins Cc: Greg Kroah-Hartman , Logan Gunthorpe , Stephen Boyd , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, "skh >> Shuah Khan" References: <20190906152800.1662489-1-arnd@arndb.de> From: Shuah Khan Message-ID: <5dfe1bfc-0236-25cf-756b-ce05f7110136@linuxfoundation.org> Date: Fri, 6 Sep 2019 09:39:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190906152800.1662489-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/6/19 9:27 AM, Arnd Bergmann wrote: > 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 > Hi Arnd, This is found and fixed already. I am just about to apply Berndan's patch that fixes this dependency. All of this vprintk_emit() stuff is redone. thanks, -- Shuah