Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2486340lqo; Mon, 20 May 2024 07:23:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6ON/7reVcpD+3+F/rCrMdCoziJW2iPq9IEVgX/nTmI0khagjnSIL1X2OpcbZM9xOdlo+RFolTonmRnRfxsWdG50sSGE+OhPkgKmoJAg== X-Google-Smtp-Source: AGHT+IFaGrJrlfoWuLJdY20YTBDXXt4YSFJzJDOKZvw9BbeuNqRjaJDP+oPdcIPBxv197opnfDmn X-Received: by 2002:a05:6a00:1701:b0:6ed:2f52:9acd with SMTP id d2e1a72fcca58-6f4e0347d62mr33888669b3a.24.1716214995963; Mon, 20 May 2024 07:23:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716214995; cv=pass; d=google.com; s=arc-20160816; b=cdwR0p/tTA8XUrT3kdOX2yb5c6XAjt8OAfPvBjLyLPLPzcM4Zg32dBVNs8SVAoL+2o ufzD76h8YoGfOIsD1hfwcUKtAGru/M2Nugwj7Vd3mbUYSg5C/d6o7552rGujox7IZEAC DBMsnIqRd5296IbKar4sKq+hMRIW7/eZmGtRXaF/0v7wvP2eReahYbvRtcNLUoeA+di7 b4HFTzdH8GN5ym0hhpCZIEO00+62btjjkpk/7s4j5fPvfl66wSgj7QsGekGblfMacUW6 NvbWqPVZ0+pp/F5/8CF+sipl4a5YIRiTR/edUHJ7YMjx9trg9RdtjIjMh1kw+/ZIpMxV Bxlw== 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=SkFgN9UwfacOpW7pnIR1XMF1buDzs5cFhviEj/eFykI=; fh=O+hVcBnb8dyvDtjImAlaGWAIyxcWZo5C2JwM0Tm79iU=; b=HqhgE6oY02O3YUQWoNmJz30bCUEyFmDkumvPjtjQUWaAcaWZrKv5XedQx8Nw2gv/tf HhDI67QXF6xLQmq4WVPoMTWizrgjUp00x2YKFbro8ORc2K6UdW+OhFRHra4yB2v+EXN8 vQBqcF6l7yKLwb0VQ3sxT+oDgA9vIXr/PzI8lWYIe96YTaoWMBDdrCswHtmDyrTM3Jp4 x0w9fYyHnF8IgxnHlmbM+lAJ1ajzOflUGmcHl2AOE25n+OkqsOHpfhQ8tY3QwpTTNtY6 OJaJTlqzh1MPkoyqrs/hrOyoDWgHOpGTyyD5ahZtac19+MMoqq7yACxRv8YCX5DavsNn X/BQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Zg5m/EYe"; 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-183832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183832-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6626fa8e614si3492463a12.134.2024.05.20.07.23.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 07:23:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Zg5m/EYe"; 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-183832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183832-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BBF6CB22162 for ; Mon, 20 May 2024 14:22:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F61E13699C; Mon, 20 May 2024 14:22:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Zg5m/EYe" 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 9D4F35337F; Mon, 20 May 2024 14:21:57 +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=1716214919; cv=none; b=HfXghVzelYSTFmUBpjD59uBLiMUuQ1v3iW08ZudWFDOiCJfGez2rBQy2Hb3Ra60dIrNueUKSHV9OdQac7MIOddxVQIoCyU5I+jluNFSo5aSfSsazh4ac4m3r9N8YCOFsBdTX/3V154oaqYDFh1JwjwR7qixl8tg41Roq9i0wJtg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716214919; c=relaxed/simple; bh=W8ut+XNbQ2V6AEIhii4Uzcp3qt/xqI/pHaxJswk+rZc=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=NZ1wFfm7zkN5aI3mq2XnEybGlPH3jel5pUDb3ThatcBIJES2qYrR8Tugvc1oguFWf6vPvi+Z5zKhY8bVMk79E81ge9tj5B+5eE83sr0l95Kckfo5373290YvOyIrgVAyi4eo4W/BSxlVUbMfRmCyYhw9WiZyPWmvp/QcSJk7E4E= 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=Zg5m/EYe; 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 fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44KELX8Y090865; Mon, 20 May 2024 09:21:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716214893; bh=SkFgN9UwfacOpW7pnIR1XMF1buDzs5cFhviEj/eFykI=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=Zg5m/EYePT4COBPibcYNKHuApVYotWNtdx7jyQUacVYFhsP1FyMRIQqYvd4pWX3t/ O9iz0rUndYEzkkT9hsHbljGJrngJuE91+OjQPU45izy7KwJXpGL2jcO4w6M6Wz44qm RvwKLQN+e3hxtzwAecI05FATGorJRjeog3y8KuWE= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44KELX1U045568 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 20 May 2024 09:21:33 -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; Mon, 20 May 2024 09:21:33 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) 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; Mon, 20 May 2024 09:21:32 -0500 Received: from [172.24.227.193] (devarsht.dhcp.ti.com [172.24.227.193] (may be forged)) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44KELOPC079538; Mon, 20 May 2024 09:21:25 -0500 Message-ID: <01bd1d88-2cff-ad12-c7fb-3f2eddcfd899@ti.com> Date: Mon, 20 May 2024 19:51:24 +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 v8 07/10] lib: add basic KUnit test for lib/math Content-Language: en-US To: Andy Shevchenko CC: Daniel Latypov , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20240517171532.748684-1-devarsht@ti.com> <20240517173607.800549-1-devarsht@ti.com> <7b8cd37b-5b16-2d99-ab62-5d6876e6571c@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 20/05/24 17:52, Andy Shevchenko wrote: > On Mon, May 20, 2024 at 05:11:18PM +0530, Devarsh Thakkar wrote: >> On 18/05/24 01:44, Andy Shevchenko wrote: >>> On Fri, May 17, 2024 at 11:06:07PM +0530, Devarsh Thakkar wrote: > > [..] > [..] > Yes, and one should follow IWYU principle and not cargo cult or whatever > arbitrary lists. > Agreed. >>>> +#include >>> >>> + math.h // obviously >>> + module.h >>> >>>> +#include >>> >>> + types.h >> >> All the above headers are already included as part of kernel.h > > Yes, that's why you should not use "proxy" headers. > Have you read the top comment in the kernel.h? > Yes, it says it is not recommended to include this inside another header file. Although here we are adding it inside c file, but I can still try avoid it and include only the required headers instead of kernel.h as you recommended. Regards Devarsh