Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2577277lqb; Tue, 28 May 2024 04:33:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVEhtznVync8U/M80nmAi5R/BFnhltvXZxFlOXFTyLSf/fGEiB42iBVbY9W0MQUhygGG7vMrte6+Fl9UR6ovS+BVekQ4Lu9A7fQ/qoF7g== X-Google-Smtp-Source: AGHT+IESs7GFf8D5jH+FQBNWJ22J3WXLf1aE6/PXseBZYyiCopJhMCJ4QXkIU2Ede07ZKlEsPMr+ X-Received: by 2002:a05:622a:13cd:b0:43e:3cca:817e with SMTP id d75a77b69052e-43fb0eff50fmr141317151cf.53.1716896009866; Tue, 28 May 2024 04:33:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716896009; cv=pass; d=google.com; s=arc-20160816; b=Nkbh9B5q0Yq1z4RFd/OF/sQm/XMf01puS6sFosoNmZpe/+gQ6GyKaoR8zQ8ZZKsb5G z7m2hxb4WIHiSwRoqi9plSZ57w4NxepHuqfqX/53kmWASlF63+T8TQbr8HSloz4BloOZ i5RknIrZbDld1LQUp9YSwn1Wh94+r5G9PyuErsBdIQF/HWIBmy79VD5Yx/5BgU/qNl1T F4riBUx5XeEW3VBgLvnp8rkR9Vaakm3lTDXQo6kkpFeMr7iOuwnG/hkcL/jij5HzPnEd rXrwnZpRdh0T9rA756oBcGTAHcnrrbPr+N9ey8ddTYr6TQh1g5oO39Le8/P/VBK3X+ov lNTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=VpSNru19mBz9l4/n9K1fomuoEtlk8IP8cCmAhFDqj9k=; fh=xEO3FYGHk3QAvBMTBRsmJpr0lWdIVV3Wr046zfF3JfQ=; b=ZkGX/digXH8w57Emzs7KWr07CmVI7x8VIk/5qXzni5B22wex2EPYQRghkxvApzJnyS v2SpOQAZifmpcvNsXRoHZRw8aTJIRLAuliuY3rkeKiqz5KFiF3QTjNQ2NCUt+zlqHPjd mG1O6pds+lHEff+cgYW1cKtHyuPHfPyP8XCP6NWjuWberxvxQwIcSxPb4Y6uTfmaVNLq U3RrGYV4KG5skkVN5hNAzRAGvGeHvQUWRnYeGgTiY+rLHqvTPI3PRr6dtdVyYvrzC/Yp /NZr4zpeQUI/f5u8aZRV/kCAC8TRb2wzGMEU0WD3ncz0QFTGvcGcIx8Fsd9QYHbXiFYI q+9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TmK2Z8ez; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-192181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192181-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb17bd618si99304541cf.3.2024.05.28.04.33.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 04:33:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TmK2Z8ez; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-192181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192181-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D66E31C22659 for ; Tue, 28 May 2024 11:33:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1E0B16D324; Tue, 28 May 2024 11:32:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="TmK2Z8ez" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 6B73216C852; Tue, 28 May 2024 11:32:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716895922; cv=none; b=JWjUL34VDloE6IFs8hKlbI6EmJJi3PuWAGhvQ8ueqEHzKkvC4VgJg+i67RWKf20ejChRvMNXwMpin2XRh3XdL8zgT4zPzpm7wFbicIqKkEYke1C0R8mnoKgg2ekBqYuh+1m/gMF4vjbWbqV0ugP6qJmAU5xeWR97Gpn22u0sABQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716895922; c=relaxed/simple; bh=s9zJsE3/1kg/YHUe1X0gPbq/JexKL+o52CjjXo5/REE=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=WYWQrJWO8Z4KcLsDTrWlTjodSxI6F8gP6SJmf4Q9mFNKWoByFmdclElDBrIbPo5eLxuKEhbOfS/+IDkTexBNVKJNyrsHQwsTRrM+1DusmjTYX+EqRyber1CngrBPq+x9NS4WwJMxolDT1Z0YqYpRwOqT9HH0CAmU4D7CGbppdmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=TmK2Z8ez; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44SBVenp062222; Tue, 28 May 2024 06:31:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716895900; bh=VpSNru19mBz9l4/n9K1fomuoEtlk8IP8cCmAhFDqj9k=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=TmK2Z8ezSKCZDHjB/iSRmrlXraznKS7RMMA+qdqEiftotR/sCS9Vzjzc4zgo24O0s h2JSxOhqLRvw3+8fYE1FAJ2tykEIoHb9RwtN/GyjQ8jrhMhuhk0epVj+Dk/W4bbQsA ndHKMSvNYdQqNRncDgz+G+cgH4zgu1fDoe/BJOdQ= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44SBVect036639 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 May 2024 06:31:40 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 28 May 2024 06:31:40 -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; Tue, 28 May 2024 06:31:40 -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 44SBVVrb076827; Tue, 28 May 2024 06:31:32 -0500 Message-ID: <9c88bc47-35f0-86ed-2df7-dd83640d9997@ti.com> Date: Tue, 28 May 2024 17:01:31 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 v9 07/10] lib: add basic KUnit test for lib/math Content-Language: en-US To: Andy Shevchenko CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20240526175655.1093707-1-devarsht@ti.com> <20240526180933.1126116-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 On 28/05/24 02:08, Andy Shevchenko wrote: > On Mon, May 27, 2024 at 11:37:20PM +0300, Andy Shevchenko wrote: >> On Sun, May 26, 2024 at 11:39:33PM +0530, Devarsh Thakkar wrote: > > ... > >>> +MODULE_LICENSE("GPL"); >> >> modpost validator won't be happy about this, i.e. missing MODULE_DESCRIPTION(). > > And obviously + module.h in the inclusion block. > The module.h is already included under include/kunit/test.h and that's the reason compiler did not give any error. But I can still include it under math.h for better readability as you suggested as anyway compiler will not re-include if already included by another header file. Also I see we were missing a dependency between math_kunit and kunit modules, so adding a dependency there too. Regards Devarsh