Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1047381ybl; Wed, 28 Aug 2019 08:54:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXI0jVf8cbKOpOgpTMxPvIjg5fYEZhOB6FoGqAkNgUxHZjrovCOqT486Vx1+pfwmCEy/hN X-Received: by 2002:a65:6859:: with SMTP id q25mr3997138pgt.181.1567007699045; Wed, 28 Aug 2019 08:54:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567007699; cv=none; d=google.com; s=arc-20160816; b=WMHNt+jxrCWAjU6lUABtCnEVxegLUvF8qxewFYiGl/8x0n4EKTtKEJZ0bY/7n5Ti/c N+02pYtJeApzeHyJTD89U/hLwVnvfcJouAoHnQg+0ixVsPKz2ySmCQvdvzsrK6EDkDNe YisF4IrL67aNRYRcqtVzZdxrpUnX8+UwHQcYi06j0+pjzHfJb9UUezGp4bQJKidkaTJ9 ZsCx43JvzYesivB2xc6tsY+6WCPKUdhk4qYyxD/ZvmFlFXuGbw9RVNL7LETUC3aheZIe Mz2uDOUPuptxyZYzYuzA2cFFCqltaiv4zkTS83ksfi/pEIoGGh0ZXVbk+z2F7ytn/6PH lTiQ== 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=gQZskAU+8k336EC6UmUC7ikUT5tx26F1fzK9gaSbLLs=; b=vg5VHHPLC9KFnFkhhb3MH3/TIKgH54QLm7vwzr6aw5PkDGQMkXileLtvJjIKwPtrYB ETqNF5QYnW9fhmVrIkTwxHUCCTzr5Fws23UoV4ceAKJ86WL8E2M/CV/FWFYk29YJ01FV HppILTuAg420ceLXYCj8AxsGGhZHkdms5kI/DM84pwMycBFcJ8ZqmdnZQlL35mYFloTw E1e1ug2DD2Nd9aMqbL4rnz92OhBK14MCIcDmL0t12I1PdMMNVyySTc870Yi2KKIZvkDk 15fsGeGjBRg0wjfrLRJsJQMB5AV8GUPJ8H5qv4s3yN76V8TxwO417H8QxNybYoky/APR xH1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=EWma0uMu; 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 l36si2212864plb.107.2019.08.28.08.54.40; Wed, 28 Aug 2019 08:54:59 -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=EWma0uMu; 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 S1726880AbfH1PxV (ORCPT + 99 others); Wed, 28 Aug 2019 11:53:21 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55870 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726863AbfH1PxU (ORCPT ); Wed, 28 Aug 2019 11:53:20 -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=gQZskAU+8k336EC6UmUC7ikUT5tx26F1fzK9gaSbLLs=; b=EWma0uMu9kw+jEO+hZ+1+Tyw1 wIMr90xNPIQTuwomkBqe4oh4/4hoMaV+W7N3hLa6GYx3WRLvMJUSfwfAPR2r/K/9wROl9EpNL+/+A prWlsPA7sjxqjUisFU42ap0eHmRf2WPAiwJtg4KdjTasczha8bCIb/9m4ni1W5fikZVQHBef3Hs3M irW7e2qwgx9hhV7k0AFtRq0pGSgtn0KRwua7wPgztbYmdds+Dl0rRIn2rdfenDH9dpdXqmO55ASPs VGkobLGAcWFmdfgJ+8DqM8Lm7XTMq8xgqIh7WM5C+tPSr3Nnu2Apb26WpeLU8o580KQMrGhVzp+Oc 4NS/JhWLQ==; Received: from [2601:1c0:6200:6e8::4f71] by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i30Fe-0005vm-Pb; Wed, 28 Aug 2019 15:52:50 +0000 Subject: Re: [PATCH v2] 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, pmladek@suse.com, sergey.senozhatsky@gmail.com, rostedt@goodmis.org, Stephen Rothwell , Sergey Senozhatsky References: <20190828093143.163302-1-brendanhiggins@google.com> From: Randy Dunlap Message-ID: <4856aac6-1760-8ba5-dee0-aecfedbbe266@infradead.org> Date: Wed, 28 Aug 2019 08:52:49 -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: <20190828093143.163302-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/28/19 2:31 AM, Brendan Higgins wrote: > Previously KUnit assumed that printk would always be present, which is > not a valid assumption to make. Fix that by removing call to > vprintk_emit, and calling printk directly. > > Reported-by: Randy Dunlap > Link: https://lore.kernel.org/linux-kselftest/0352fae9-564f-4a97-715a-fabe016259df@kernel.org/T/#t > Cc: Stephen Rothwell > Cc: Sergey Senozhatsky > Signed-off-by: Brendan Higgins > --- > include/kunit/test.h | 11 ++++----- > kunit/test.c | 57 +++++--------------------------------------- > 2 files changed, 11 insertions(+), 57 deletions(-) Acked-by: Randy Dunlap # build-tested thanks. -- ~Randy