Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5D05DC27C44 for ; Fri, 31 May 2024 08:40:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8CBB714AC1C; Fri, 31 May 2024 08:40:53 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="JFZF/qv5"; dkim-atps=neutral Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by gabe.freedesktop.org (Postfix) with ESMTPS id CB1FE14AC1C for ; Fri, 31 May 2024 08:40:49 +0000 (UTC) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44V8eaiQ062635; Fri, 31 May 2024 03:40:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717144836; bh=tIzkgTgvHmxlqsnNQ6szfWWdwYHm3PNqMyO61gH4JL8=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=JFZF/qv5UJv72ezgKb2LJ19CVdAuLnK2wEVdZW8z3uYShYOTl4y765u1lsYwKVhy1 Ydm5IPprz3zGMO/b2V8SXzMZUaNB2rlqphfNuL2/HjIkfGI6LStnAko1J099xzlYtj hovfA7oHdP9katgYjS82DiYH0ws/corksUL20rg8= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44V8eaPZ086074 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 31 May 2024 03:40:36 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 31 May 2024 03:40:36 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 31 May 2024 03:40:36 -0500 Received: from [172.24.227.193] (devarsht.dhcp.ti.com [172.24.227.193] (may be forged)) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44V8eS16028924; Fri, 31 May 2024 03:40:29 -0500 Message-ID: <9b805bc2-02ea-8eec-8cb6-4fcd2cc0ba54@ti.com> Date: Fri, 31 May 2024 14:10:27 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v10 08/11] lib: add basic KUnit test for lib/math Content-Language: en-US To: Andy Shevchenko CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20240530165925.2715837-1-devarsht@ti.com> <20240530171810.2764623-1-devarsht@ti.com> From: Devarsh Thakkar In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 31/05/24 00:53, Andy Shevchenko wrote: > On Thu, May 30, 2024 at 10:48:10PM +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 > > ... > >> +#include >> +#include >> +#include >> +#include > > Really, you ignored my comment a second (?) time? This is road to nowhere. > You need to update the inclusion bloc in accordance with IWYU principle. > I see a few headers are missing. > Sorry I forgot to add those somehow. I will add module.h and math.h in v11. Regards Devarsh