Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp340657pxu; Fri, 23 Oct 2020 02:04:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweeb0lBUW//04rbAU9WlSWiUxZqcoCXIw0vEA7y1GO1HzVNgbUwTqwwTrGcxSuxqgRQ8Y2 X-Received: by 2002:a17:906:3c05:: with SMTP id h5mr985617ejg.70.1603443844183; Fri, 23 Oct 2020 02:04:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603443844; cv=none; d=google.com; s=arc-20160816; b=l5KuomB6/hUBjPmLBtJLrmM9vgSNiPfOgwxiLGS3eKfvAL+XZJKsmJWV7YM0qNYUzQ jnXSHxAedfzTeoN7ye9FklUpysr6ORfBdNZ+JQnc8TpkiUTyYykkUOxa0KLJk/C0Cp+b uqJd3LA8n2JQXjXypHloPX+DEGcadcORIs0jx2XVpB3rywNISVyv4p5Y+SoOr6gYkuKU ARr2G1O0O3IXEwtLkMXrm538t9x/cNDvyRvN1GSfVUcEjdM0RIInczUrKuXumPo3/krG yb8+lFbci8qIYaEXFZmKXlGB0ciGZLp6tC8dWGXAr1zZBmdMtE1+0hhPAFJDdmh+9hV2 JWqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=tgpPDPK7krjugdrggx3e7JZH5p2g5xSEVsQpsf75oh0=; b=gSC2b7tbjLFCLFgeQPc6EoHJ7iO/5d7unOT5F9IcR/aQp3Ycjhcj/ry4H0UiuXdybM wK2OYnUk3dtufvnf0mWgciLCkhnX59hKcwfB4Bnf2oBOJ8iw7xFgXxehiFY7u0uwiYOt 6o4YhbrZzt2icQcq/8gfUrsz8hCdoqaIf5HPqjs5yJjdlvO3qIg18RcXYIo+NipwtVsg /RdiM7f7b4XWYNUMqbb7ZrdQktQHQj6LKvlI1BiI+KtgGAwHUHSOpAckWikGsmuaIo7n QE2f8ahmmcJxrpKYUotU+HCDNohpjmhluFHD5Kh0a74hOzTjCghStQCtZ5lovf1i5p08 JoFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u29si365151edb.137.2020.10.23.02.03.42; Fri, 23 Oct 2020 02:04:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S461030AbgJWJB1 (ORCPT + 99 others); Fri, 23 Oct 2020 05:01:27 -0400 Received: from mga07.intel.com ([134.134.136.100]:23238 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S461025AbgJWJB0 (ORCPT ); Fri, 23 Oct 2020 05:01:26 -0400 IronPort-SDR: CIFz7M4xkK2hJSSYccB1wWaT/6Vd7/MZ7j7RwPVrCaqxfZGaTTDFqU4WC5Kt7+yrN1fDFSJ/JX 1BoBxNEyNiFw== X-IronPort-AV: E=McAfee;i="6000,8403,9782"; a="231840766" X-IronPort-AV: E=Sophos;i="5.77,407,1596524400"; d="scan'208";a="231840766" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2020 02:01:21 -0700 IronPort-SDR: i3SWmya743zVVazoHQs8wNWqqa8Qz6PMQjBNo1vAo4isqGXlOIatvdRXSjj0Sa+fjknEcLWddH eS9BjPGET3Bw== X-IronPort-AV: E=Sophos;i="5.77,407,1596524400"; d="scan'208";a="467003027" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2020 02:01:19 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kVsxo-00Dxdu-Ib; Fri, 23 Oct 2020 12:02:20 +0300 Date: Fri, 23 Oct 2020 12:02:20 +0300 From: Andy Shevchenko To: Brendan Higgins Cc: Daniel Latypov , David Gow , Linux Kernel Mailing List , "open list:KERNEL SELFTEST FRAMEWORK" , Shuah Khan Subject: Re: [PATCH] lib: add basic KUnit test for lib/math Message-ID: <20201023090220.GU4077@smile.fi.intel.com> References: <20201019224556.3536790-1-dlatypov@google.com> <20201022150648.GH4077@smile.fi.intel.com> <20201022190526.GN4077@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2020 at 02:21:40PM -0700, Brendan Higgins wrote: > On Thu, Oct 22, 2020 at 12:04 PM Andy Shevchenko > wrote: > > On Thu, Oct 22, 2020 at 11:53:50AM -0700, Brendan Higgins wrote: > > > On Thu, Oct 22, 2020 at 8:06 AM Andy Shevchenko > > > wrote: ... > > Why do we have docs in the first place? > > For test cases I think it's a crucial part, because tests many time are written > > by newbies, who would like to understand all under-the-hood stuff. You imply > > Good point. Yeah, we don't really have any documentation that explains > the internals at all. I agree: we need to fix that. > > > that they need to drop themselves into the code directly. It's very harsh to > > begin with Linux kernel development, really. > > No, I was not trying to imply that everyone should just jump in the > code and ignore the docs. I was just trying to point out that some > people - myself included - rather see code than docs. Clearly some > people prefer docs over code as well. Thus, I was trying to argue that > both are appropriate. > > Nevertheless, based on the other comments you sent, I don't think > that's what we are talking about: sounds like you just want us to > improve the docs first to make sure we do it. That's fine with me. Right. What confused me is that test cases for math were pushed as a good example how to create a test case, but at the same time docs left untouched. -- With Best Regards, Andy Shevchenko