Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5945487ybl; Tue, 27 Aug 2019 12:00:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqws+qpKuk/j3xSZd6FDN0RLW0bi3OpnML+UTDdOEqgEoELeDh2uLHY28EZU0cxjWthKw/lr X-Received: by 2002:a63:b20f:: with SMTP id x15mr23266730pge.453.1566932456479; Tue, 27 Aug 2019 12:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566932456; cv=none; d=google.com; s=arc-20160816; b=Sggn47S0RpHZK5snF35JSgmzQpIYmfn9OYFazuEw6XjZ5pHi84Hql7YBi6hPSy3ptB bmFT9jKsuGEOFIKZWyO2SaPcmjildwLV5dfvu2IeF6MeSU4sQdrEyCgFjFNOPs22i/7H P9fL48t+i/+g2zmcYDwgYPNqOAxBNBdHk/LxD7fRcUJhf9slmjy2fG3isY9vQU627VGj zdu60/+qXipiePd4UijKkh0RZpnA8kiajhlji4cx65RU6KLjblwIkRvOw2DaIHZoQJW2 FKKu86m5SFFdvU2s3PjHiNNUsidk8PiIO/R+ioG3b4wErkisfbn3HWmjPoMvsgmybBan /EaQ== 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=EQjg51adNnDA/iZNYxsUOMq78yabrwHpMoUrVJwbjDc=; b=RUYw+mmcW6pI7uk+oUNgZbvjTa4wiZGUaVQEwGUExVvvzbI5Pa3mFHVA+J9GkoE2J+ pbdZZBwZiz5LpwXC0zC0IVFDsF+Q6W7oBNI9izIbsRpukJSukR9o8a6DDM5+KoV3B1i+ p+lFpHg6zzBDaUm/oR5yfsYSCzCZpVyTBfDZ12HlfbcN0beiSiDg0142IRuEbkUCTO3i 9xN+GcUi1NqxjuUYKmQqm0cjtE8GhSnxoRVwzVPUnjmPhVea8zmaT1+qQh1ryrRgAx3e SIOav3lJWMh8v0puxDWeSH30JE5kZ424BlTLDd3RSNP24ux1tkNfi3NzK+MnfYej8xix PIKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ksl3tp70; 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 bb7si13729760plb.303.2019.08.27.12.00.40; Tue, 27 Aug 2019 12:00:56 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ksl3tp70; 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 S1730633AbfH0S6H (ORCPT + 99 others); Tue, 27 Aug 2019 14:58:07 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44874 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbfH0S6H (ORCPT ); Tue, 27 Aug 2019 14:58:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EQjg51adNnDA/iZNYxsUOMq78yabrwHpMoUrVJwbjDc=; b=ksl3tp70BdNMR4YfBgTqaxPHe O2lalZ8s6pDlRJX6Ypxs4HtxQr0cKggeN8Ja0jtFaC0EZ3BusxOHxv687EqXfwEWVWb5fRDUqz0s5 UDg1yMMD6XET5CUoaVog/9bpMZL5IAoZXalyTCwqnkszVcR4Zx/uYIyUfb8FPqydGq4fRC0ZItBsq GVbV37yEeFMhtA8chk5M07HvmDm9i8BH5aAdHVhB+tiuz6Ee/wfPuygQ8oITpp21QT6psDVTAR1nu NuS5h10+skjt/UhNWmsR+gVDBLx6zH4uc069o3Uj0zf+Dlr54VlFlBEkkVPIVHUmn0HSEttv/IEQo kUGw9+r9g==; Received: from [2601:1c0:6200:6e8::4f71] by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i2gfN-0002sQ-N5; Tue, 27 Aug 2019 18:58:05 +0000 Subject: Re: [PATCH v1] kunit: fix failure to build without printk To: Brendan Higgins , shuah@kernel.org Cc: kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, frowand.list@gmail.com, sboyd@kernel.org, Stephen Rothwell References: <20190827174932.44177-1-brendanhiggins@google.com> From: Randy Dunlap Message-ID: <0ad0a0da-d8f5-4aaa-edac-28bb2463492a@infradead.org> Date: Tue, 27 Aug 2019 11:58:04 -0700 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: <20190827174932.44177-1-brendanhiggins@google.com> Content-Type: text/plain; charset=utf-8 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 8/27/19 10:49 AM, Brendan Higgins wrote: > Previously KUnit assumed that printk would always be present, which is > not a valid assumption to make. Fix that by ifdefing out functions which > directly depend on printk core functions similar to what dev_printk > does. > > Reported-by: Randy Dunlap > Link: https://lore.kernel.org/linux-kselftest/0352fae9-564f-4a97-715a-fabe016259df@kernel.org/T/#t > Cc: Stephen Rothwell > Signed-off-by: Brendan Higgins Acked-by: Randy Dunlap # build-tested Thanks. > --- > include/kunit/test.h | 7 +++++++ > kunit/test.c | 41 ++++++++++++++++++++++++----------------- > 2 files changed, 31 insertions(+), 17 deletions(-) -- ~Randy