Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5917ybl; Tue, 27 Aug 2019 14:47:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJqXJ7f19xKwgTDyY0xVvtp8IFMWXW7pTTTGW8Umj7urlVtC+7fHDLoOYhO5E252Fpir6G X-Received: by 2002:a63:524f:: with SMTP id s15mr532061pgl.2.1566942454652; Tue, 27 Aug 2019 14:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566942454; cv=none; d=google.com; s=arc-20160816; b=HyBGADUJEs90ECIzsiSoSnwrTCj/xh+rpYA+6WjcQ/g2MOmRXZWqXlp0+N/41sHaG0 OO1td/08tfwf+AacaYQCBEUfmYPnb2btBFgDhtQF2O2jVZ+gkuRiXvVovGeqknSWsvDJ sWbzOM0c0dJnqFSthNZxoBAIwEfV5wTd9ruc/KMVxCvjuHoCYXoFYDR0qsZ55XGl8ga0 Iv5WR0tNhLVXsIsuN9cU2Lqf0wU8iscdANayxZ75jDBFXfYif5bPU2erI68xJ6CWZigc e5F2sgGjmzAfW/Z9MwCAW3bVyZrJkuD3Nh5PxqlilLyM/yIS4hBQrK/f5rml8Mtw4ze0 StIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:user-agent:from:to :subject:cc:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=tki3pfge5Pp8AufwUnQHdHUzx+DqU3jb8sqUx2BxjZU=; b=IcenOwTSMaYMdp5pARDiGtFvuDc6ZOHCZX6oqhKwuqKv/FTARYG3toS31d3B35jy83 GjxvJ+/qrJbv6CJ50iAXdaEmSS1Kz4HZywATAEWN0Q/UZ4lyEjn7oLZthTHwrKJLtlU/ b0EPujF/3XS8e8YqKXyyBceI+c8e315Z/ONGFjuIcUytAPlJdDjNM59HJSkd0YAXtOTc X5E7vsW/eSuXRC8Docv8ScqbUDgtSp/D/qyrYfnGhPfoqjFtfrPxaa3b27YaQEmXvu3I wpUdx4lnq++lMRgXtEapgblaSOcKRY6Ox8vOm+AyrYHfgHw1TnBMehYhNX/E3hFWYWoG l/SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=evLRI2DA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14si257680pjn.5.2019.08.27.14.47.19; Tue, 27 Aug 2019 14:47:34 -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=@kernel.org header.s=default header.b=evLRI2DA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726777AbfH0VqO (ORCPT + 99 others); Tue, 27 Aug 2019 17:46:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:48716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726669AbfH0VqO (ORCPT ); Tue, 27 Aug 2019 17:46:14 -0400 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B896206E0; Tue, 27 Aug 2019 21:46:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566942373; bh=tki3pfge5Pp8AufwUnQHdHUzx+DqU3jb8sqUx2BxjZU=; h=In-Reply-To:References:Cc:Subject:To:From:Date:From; b=evLRI2DAOjd4yQdU9EyASSDdxXR6qBh3AxV0bRvwPYIa0EKsNZebexWIJvC+sUN10 /HeAgxhEf/DTnhB/OK/I+vvkukfE34VLXFKj6PxkHmNhE6t7kYCzEZE+M+jqOy4ow7 hoZ5aV0F9y9eDJdQ5AcvcaBmQHJCav/7VnyVQd+g= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190827174932.44177-1-brendanhiggins@google.com> References: <20190827174932.44177-1-brendanhiggins@google.com> Cc: kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, frowand.list@gmail.com, Brendan Higgins , Randy Dunlap , Stephen Rothwell Subject: Re: [PATCH v1] kunit: fix failure to build without printk To: Brendan Higgins , shuah@kernel.org From: Stephen Boyd User-Agent: alot/0.8.1 Date: Tue, 27 Aug 2019 14:46:12 -0700 Message-Id: <20190827214613.9B896206E0@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Brendan Higgins (2019-08-27 10:49:32) > 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. >=20 > Reported-by: Randy Dunlap > Link: https://lore.kernel.org/linux-kselftest/0352fae9-564f-4a97-715a-fab= e016259df@kernel.org/T/#t > Cc: Stephen Rothwell > Signed-off-by: Brendan Higgins > --- Does kunit itself have any meaning if printk doesn't work? Why not just depend on CONFIG_PRINTK for now?