Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp745853lqh; Fri, 31 May 2024 15:49:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFdUR7sQc2k5LdgzRf+deRC8uLSsIOeDSly8tRZmhREDIdZU+Hufy+Dzw4oSCO0ArDQlZeqnS/N2QcqULDlqxTPjKZZ/GgOo4GmrcZww== X-Google-Smtp-Source: AGHT+IHTw6wGtjzawVXDo3tZwNiU45SnKL5f9pluDVDXPAKzmQKTVVmJz1udR747jPm9xNlg5MhU X-Received: by 2002:a17:906:c18a:b0:a68:d2c:2a1a with SMTP id a640c23a62f3a-a68208fa7a4mr255933666b.33.1717195744088; Fri, 31 May 2024 15:49:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717195744; cv=pass; d=google.com; s=arc-20160816; b=A+M6DEHzC7RYrbwPsHXLQAhgo5bO8XETiDlzrfOHSC9nBLGCP2Jgygxtcv25fKx+n1 Ztkgxn3F/znlcR2jmSm4GdhX7CRstGYRmVivKV01mmWRTMhw1T9zgLKBLvbhKXcSXcd8 WR5AOpGvlZbovdSyC1ScTYoxowE5kJiiY0z8IS8Jis7yTmeCS+9mgXXtyp92LYxIDMRM 76W4mxKNzbkRlfdlXY6U68uCfKYJ7h5MO15EanUVzTgzpBHGTRUikVlfkw9dU5NOyEnS mNuffoqR6nHkWzX2ZCURka3t33NcQ4U5wyusZT2Crb+Z37ZJc2Wk1jFO/q7VyU+NfFAO NSXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=oPO2mCf4Cd0KtX4wI0gvjo5Ss3PFpfHFop6oWQ/8kAI=; fh=s7ofM489Uxgcy9OnRJSoMTOi+N7JQ4IEH4ZIimBO1qc=; b=p5tYQ5cqEYcZeKtgEXUOQE1DtZNO7GdWTVjU+LIo+IlJo0730Cbkd3ssxdvadH4CfO OQLrdfhMWuI6VksLpSSrozaKO8SQMuXzDXrWFxvHSZ4jM8jKO6nJ2GNesEI1G34mBm2g 4cmFV2lN3kvmc3RXaYIsKgxbiXGqAloUU2BjVatsMmx1/tfsXn8iSGQkbCopHvwc9y+j 8sdsKVBUYPAQpcdNIp7kRVMCfbgAjan7T/nwF5AIponhFBzhFAe+yGlMFsdsglahdD2h 8yeYvvnTAXw7W+z9OF1gwc6KvqMdZ+qKzprr+Z16oLk1CUbmrZ0vtS9bBWRwVkxh5d2w 1zkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lJCmQHrE; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-197258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197258-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a683aa7e891si112283966b.82.2024.05.31.15.49.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 15:49:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lJCmQHrE; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-197258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197258-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C79EB1F27A05 for ; Fri, 31 May 2024 17:40:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 112F917CA14; Fri, 31 May 2024 17:40:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lJCmQHrE" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDCBB17B404; Fri, 31 May 2024 17:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717177208; cv=none; b=AKSg9a08q1UZx/L9VrolXi2Qe5idmM1QGnq+cAfAf6N3TqkJ9rfz3yeosHu/Y8GXqWYvTP5vZ7HfoZJYL/6r8iicso6weoCpl2LXmypxXWTwFQ4CAEov5mYOm8U0i2JbpAiEWpUOaDj6qNuZK9sxtauOzEGGinyGBVAlVUNHHCU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717177208; c=relaxed/simple; bh=qHAXfFEKFKGq3Yv3wSMoXie8OCZa2iXuxYltvkZBuTE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Bu6d6WJtTCxsJVeuWeRzVJp8XP6AGpwhxKGxh/LaZbyc6m549YkJPJUndLT07Y1Y5bWzXCGN9E4ISLw6UQL7N9Fqqqx8go9vWGXDcSFefeBOLFiKa8Fc12/nLMcl8oQGddHyPqArm6Intch+AJx0e7m9u3dQ0yRJvx13OEbvfuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lJCmQHrE; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717177207; x=1748713207; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=qHAXfFEKFKGq3Yv3wSMoXie8OCZa2iXuxYltvkZBuTE=; b=lJCmQHrEaJNsrQ/b+nUqnkmvgrR91XkPVMkcFeX5spKo6BuL2MUVJLRA TbOmP3r+KS98U07uEL313iP/RzlZWUnl149Z7ypdujLEQc/TLiuZV8DLR aHCCNj+VPsb+apf8M89gBnvYOXDyLHgpZluKNNJonFpK5EAr73xV9zN3H Mc04Q84nkTdzua1+dEqIEBP53LNHOGvOOmyup2l5yFOPc5zt8M6Qcy2bJ VHIpof4sdkd5RuaptuBouLsWihWq81zeohe1Tgev14aphNtEnfBCdG5Vo AF7+8mDIOcCdBWE9Ppr1+lMTPUhNLKkQcAifcpwq3SqacI0gL3tf4+QNS Q==; X-CSE-ConnectionGUID: wfGOTaGvQViwLZDfTE6R7A== X-CSE-MsgGUID: 5GNq/v4sR4atEI7ZvN3teQ== X-IronPort-AV: E=McAfee;i="6600,9927,11089"; a="25135322" X-IronPort-AV: E=Sophos;i="6.08,205,1712646000"; d="scan'208";a="25135322" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 10:40:06 -0700 X-CSE-ConnectionGUID: Tn48T4ciRByXG/vYkjJ0CQ== X-CSE-MsgGUID: F32f9jF0RqS2oElpByTLaA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,205,1712646000"; d="scan'208";a="36222086" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa008.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 10:40:00 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1sD6EO-0000000CXYj-3kba; Fri, 31 May 2024 20:39:56 +0300 Date: Fri, 31 May 2024 20:39:56 +0300 From: Andy Shevchenko To: Devarsh Thakkar Cc: mchehab@kernel.org, hverkuil-cisco@xs4all.nl, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, benjamin.gaignard@collabora.com, sebastian.fricke@collabora.com, akpm@linux-foundation.org, gregkh@linuxfoundation.org, adobriyan@gmail.com, jani.nikula@intel.com, p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, laurent.pinchart@ideasonboard.com, praneeth@ti.com, nm@ti.com, vigneshr@ti.com, a-bhatia1@ti.com, j-luthra@ti.com, b-brnich@ti.com, detheridge@ti.com, p-mantena@ti.com, vijayp@ti.com, andrzej.p@collabora.com, nicolas@ndufresne.ca, davidgow@google.com, dlatypov@google.com Subject: Re: [PATCH v11 08/11] lib: add basic KUnit test for lib/math Message-ID: References: <20240531170229.1270828-1-devarsht@ti.com> <20240531171305.1297769-1-devarsht@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240531171305.1297769-1-devarsht@ti.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, May 31, 2024 at 10:43:05PM +0530, Devarsh Thakkar wrote: > From: Daniel Latypov > > Add basic test coverage for files that don't require any config options: > * part of math.h (what seem to be the most commonly used macros) > * gcd.c > * lcm.c > * int_sqrt.c > * reciprocal_div.c > (Ignored int_pow.c since it's a simple textbook algorithm.) > > These tests aren't particularly interesting, but they > * provide short and simple examples of parameterized tests > * provide a place to add tests for any new files in this dir > * are written so adding new test cases to cover edge cases should be > easy > * looking at code coverage, we hit all the branches in the .c files Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko