Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp202686pxu; Thu, 22 Oct 2020 20:44:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7zC8GPmlbQV5uJHlQULmp0XTjqNpI49td8WPPmosVurFG5+t1keWt0FErUR3Rl9GDRfkI X-Received: by 2002:aa7:ccd7:: with SMTP id y23mr364522edt.106.1603424644262; Thu, 22 Oct 2020 20:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603424644; cv=none; d=google.com; s=arc-20160816; b=Fiqd9VCz3FXlpdUEP7dmJfqVVlk/DvG+Y64+DtvsFaOUOSo7XiCIcetXiR+dYRcNif bqJilzgXqpbJSVTYW3o4E2sqg8E6RuNKB1DGHT7FmtmCnlzYnsM3YVr9fRQeFEeLwWQy UlXdvz6U4RrOzGp8SOkYWqGsPhYxWnUBgsxpb9v6vi4E250r+As8kpwGvrDm9YNeFVP6 QUQtpcomTll3qM1Cbe3kyUGkEDcsGSVSYoGu1a2SVe19fQm2eoO1oXC45l6A22M1iFTt 9ioYiRjKlCvc1HUdyfbA9YF63dwqCNqYIHVHcW8dLkk8OiQbNywAAzumIFN8BUGWeCLN zRlw== 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=YYHqu0T70AVLfPYBiCuUETN2J/ylxu4tQymh1ccQetU=; b=p8hgYpFYcNK9UMAwILZHJ3ZtJ6g/cT6McWFkXd5HxTWFfIH5xh8Zmj1ok7yQzfcB/e Q+0HGhZl1o0l4PCfq8IwNMw3i/ytiLCUxvk39k0e/GdfTyTgckfzqtiGQJExPmeN/f5y L57DfdVqvFx+UPKzfVKXEG+3V/LdH+8KKwiIiop7FuXdYU1rpl7hkp4zp0cuOO4WWGBd 15+LI4Vai8DNGnreUzQNGrXN9SYK3eg4nPZqE5JhiLNhybMdE0sZhaoi8wGsUWZyRNea 4BmKXFLp92DIWSV81af1OB9WzFe0wg+C+a9IgjbT7VHJ8Onchr22y0T5sYr2ny/2CT9F UEEw== 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 o17si84830ejg.143.2020.10.22.20.43.40; Thu, 22 Oct 2020 20:44: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 S369847AbgJVTE1 (ORCPT + 99 others); Thu, 22 Oct 2020 15:04:27 -0400 Received: from mga12.intel.com ([192.55.52.136]:29681 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S369842AbgJVTE0 (ORCPT ); Thu, 22 Oct 2020 15:04:26 -0400 IronPort-SDR: 1ZPztXO1pg7WeFbQWvdnR19QN/3scV/MyT3n823RD+ZwjE1U7JI8+2RJ/RVZrmdv25ZNcSSp3x C1rlyn2cAdTQ== X-IronPort-AV: E=McAfee;i="6000,8403,9782"; a="146872723" X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="146872723" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2020 12:04:26 -0700 IronPort-SDR: W9JF7A0t9YQMmFylVi0vver7sM5vwAcgBCSLRzHzTL7+3/fTF4zJZfcMvgmajOvTrzElQc4bBx rWzsHkck5mng== X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="534085151" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2020 12:04:24 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kVftu-00DVSp-Lj; Thu, 22 Oct 2020 22:05:26 +0300 Date: Thu, 22 Oct 2020 22:05:26 +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: <20201022190526.GN4077@smile.fi.intel.com> References: <20201019224556.3536790-1-dlatypov@google.com> <20201022150648.GH4077@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 11:53:50AM -0700, Brendan Higgins wrote: > On Thu, Oct 22, 2020 at 8:06 AM Andy Shevchenko > wrote: > > On Wed, Oct 21, 2020 at 10:47:50AM -0700, Daniel Latypov wrote: ... > > You need to put detailed comments in the code to have it as real example how to > > create the KUnit test. But hey, it will mean that documentation sucks. So, > > please update documentation to cover issues that you found and which motivated > > you to create these test cases. > > I don't entirely disagree; leaning too heavily on code examples can be > detrimental to docs. That being said, when I use other people's code, > I often don't even look at the docs. So, I think the ideal is to have > both. 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 that they need to drop themselves into the code directly. It's very harsh to begin with Linux kernel development, really. > > Summarize this, please create usable documentation first. So, no go for this w/o documentation being up-to-date. Or be honest to everybody, it's sucks it needs to be removed. Then I will get your point. -- With Best Regards, Andy Shevchenko