Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2571712lqb; Tue, 28 May 2024 04:22:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEbr/q0hCc0rSrAfKont6HHsw3VMb6YanWBHM3EKCHSBcyuax/DKPjzJPr8yQVJCWJRkFXKWUGmJBUHNyINfiWxQPFnegZWQNmWQmC5g== X-Google-Smtp-Source: AGHT+IEOUokq3jbFUAw0qL7k0tlaVysy9uVYfEIKjWe3yr++4mrZr1RniAly6mDJlVnemvn0bE+5 X-Received: by 2002:a05:6a21:398b:b0:1b0:e78:ffa0 with SMTP id adf61e73a8af0-1b212b74b0dmr14527102637.0.1716895353019; Tue, 28 May 2024 04:22:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716895353; cv=pass; d=google.com; s=arc-20160816; b=ZAvqbEOZs38dA8myUYusl5e5kxhWNpSKsZXofpyjwjG7abVsLG3/T4/O8FI++ott4e t/9K1J1IPPvCbWe/Fnq0FrwONbQOCeMLDWXssJH5Gqmlexm/pGrmctmhn9pG2VCvJ9Ob t+dycVMtfgUW1lbdtNyuooTrdfhYatBtvBqDsbfpGlGVdOq2LhhBRUw5onuxakuzAj0t i0RJfCPBhzzk5Rz7uLVbU1DakSD5jgJIh5zGpvisLrVr90N/9FvFB3WhBTkYd1clwe8b 05zlcwN5Adq+BJck+zWeuN3lzm46D+JIDdO4vVhxASBwmprUPeyEYIY6Zcokedqortcx U8NA== 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=LsFWexuqmOIvPySLRES2Xzrrtm5Z8axMJcdqDhRHPIU=; fh=xEO3FYGHk3QAvBMTBRsmJpr0lWdIVV3Wr046zfF3JfQ=; b=Oxh4PPn/Pc6hnP87lFYtI8gn3UNFIylEKLlpn8VmwcTq4T9aOEDOUxetIyIYE7fcTu 1RcF+dd21pe0G4gRUN8ilF+TQMOeW3nM4Kfcwo6rGzWNWpJovOzFploS+F6hSP4EO26E nZdyJQNpjP1pPahYe9jqi76r7SR+3rcEbScmBbBx2HFelaJ/DXeR6CHwA9WyrcJjx3Ds ZndQl9pB8gHh2wcETT69vTEdFBJDavFPbrOTJiF/QsCJMJpDgwD3oBebljEsfuSSZgsG oH/N3oV2qpQcvl9SCQC/Kqwk9VeKhFdSPSAaTdX9MRv3NvKKA6wggJ7hm0tMP/Ox8WMS v3PQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wuGTpzYn; 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-192162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192162-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c96fc7csi75965515ad.282.2024.05.28.04.22.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 04:22:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wuGTpzYn; 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-192162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192162-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A0A3B2840FE for ; Tue, 28 May 2024 11:22:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AC0016C84B; Tue, 28 May 2024 11:22:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="wuGTpzYn" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 CE7D116C69F; Tue, 28 May 2024 11:22:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716895336; cv=none; b=cuWZVyJ2Bj20FovpDlCho/otdiMjp9/TOSaBRR05FNfohUqUg9YQAs6QbVgpPf9IMV3iqGVKYGq1W2QAjzuCt0bJW/LJmPuK0h0JkIgTlH7EG+21+gmlH/gzz93rByBZBnj6lJ8qPXzyFao7k4hC7LYY7kquFJH8A3p+nXGQHNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716895336; c=relaxed/simple; bh=GjmT2bEqMBnoTSgHTxCU0dHsFJxOjGlZl+fZ27D94Ag=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=lQHtjZ/iNPzykisr4S0tMD8jV2ln/evt74hWlGg2lec4aQwcsuuPRQ8mhD2x/aq6g/4nupHmwz3/6gQg1Qr8ElPbeCL1QbwxbRiMDI6A2vKfrHRDzk5Yhxkae57CU0kUNVJO6Nv7PBvPEaiZ5a23Pf57nb2d4kdcEnBWHumCt64= 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=wuGTpzYn; arc=none smtp.client-ip=198.47.23.248 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 fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44SBLueP049633; Tue, 28 May 2024 06:21:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716895316; bh=LsFWexuqmOIvPySLRES2Xzrrtm5Z8axMJcdqDhRHPIU=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=wuGTpzYnhl01qto8/tnlANOM/r0jXRM08h9L6jT3vpx+HKPSyZFE91q9bj9aJFi8g 1HXCdhmat6FK/RzElvVGnhxo1Bsjcn/fPgXO/2Zlt0Ibpi0wtow5wW0i5HIQ+l5UhN U9vh0FjduxBxcEhRqpI77VJv4YdAG4wDmtowNoyA= 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 44SBLuU9046143 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 May 2024 06:21:56 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) 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; Tue, 28 May 2024 06:21:56 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE100.ent.ti.com (157.170.170.30) 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:21:56 -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 44SBLkbg062841; Tue, 28 May 2024 06:21:47 -0500 Message-ID: <4a8cea8c-4575-bdd8-e8a8-634a2b267ff5@ti.com> Date: Tue, 28 May 2024 16:51:46 +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 Hi Andy, Thanks for the review. On 28/05/24 02:07, Andy Shevchenko wrote: [..] >> +#include >> +#include >> +#include > > + math.h (where abs()/DIV_ROUND_*()/etc come from?) > I believe I mentioned that. > I did compile and test this, so math.h was indirectly getting included via some other header file already included but I would not rely on that and include math.h separately as you suggested. >> +#include > > ... > >> +MODULE_LICENSE("GPL"); > > modpost validator won't be happy about this, i.e. missing MODULE_DESCRIPTION(). > Indeed, it gives below logs, let me add that too. WARNING: modpost: missing MODULE_DESCRIPTION() in lib/math/math_kunit.o Regards Devarsh