Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp930969lqt; Fri, 7 Jun 2024 03:06:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVioMOEfWutY0CPeKhER9rBrzki1I9mE+xoblqEey+EVYMtLM6Zviz70tgye0PKPjJNpKEIBtlZjMzoPZ7fGlirjfAd6TRdOEbI5i6Vg== X-Google-Smtp-Source: AGHT+IGgMPNsg8pVnRcHhQZhrv0BDhwksfluxsUSU/x5jn8c2zYAppQyuP/HXG1pIAID4ylPpGSf X-Received: by 2002:a17:907:3f1c:b0:a68:e6a5:b3ea with SMTP id a640c23a62f3a-a6cd561f14dmr166027266b.5.1717754792441; Fri, 07 Jun 2024 03:06:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717754792; cv=pass; d=google.com; s=arc-20160816; b=wh7A3x7NPF4R/8geZuFm1L2zXkIgHF6dL+buzdA2DBHQdb3t3fssu3HPGTL+8tq1oB az3H0AOcgnkIbWgSsM3/CC1lXAaXQmhzwjudg3r89y/h9rm7JZqSfC9bsI79aTZZU5m8 bS5m8NGhuz8GkbggE4A6zSCR8s2+lVIDn7NWiqyf4ghObcumPICOmTtJl+gKOikxEPoe vM5PHkXSBDkbfgBzEIA1oglVHwpEgVu8FORKYfSiO2Yja2pVqBq6dXwhWBR40aWtJRSs MtqbFhK4348bs+oPnxWSB+18KzarudwBWPOISIPGRFlMXC+ESJXZzNja/Mpwx/s7UKjS Zi9A== 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:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=OVQO9dIjZy69XVQtJgUQOo3JoEp7w5ooIDEFsOv+TOw=; fh=Q3vIZAg0FC7ObY+U1Ku8oquIDs+ozNatwlxki3EOyag=; b=KFQ+jvfRPpMxtc0c88SiZn1aErAmen2RsUKe6t7XqAoWlgwX+WZnbcsPmLPFyEoySe 9lZ4WFhPdv3EC7I38S/i3G+nCT7CSBjJGMli9b9Fl7nbLG5ci5pZtkeHyiDkulPf7FTr zKb3+g/BjcGHCALvEPZPtbpUObpL8N22sYot4jeA3S02zx0xdIuuQFsiITTEsxWx6Ot2 Ecn5LrQAky9X9L81rBgmJOwu1P7hH0r/H04nRIzJ8fmUHjDtA73ZjrW5Q/pqjHpQ2jwD SAXFszPXur+uSnWZvxmZwxUQ4GdkfhhQcWDJyas4xLhX2AXCjbBYZsDFOqQwGSaHOGCB VLnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WWS2h7mK; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-205786-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205786-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c8070873asi170123866b.677.2024.06.07.03.06.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 03:06:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205786-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WWS2h7mK; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-205786-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205786-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 2D7CD1F22883 for ; Fri, 7 Jun 2024 10:06:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E072315ECEF; Fri, 7 Jun 2024 10:03:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="WWS2h7mK" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 B116E15DBBA; Fri, 7 Jun 2024 10:03:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717754615; cv=none; b=t50IItQcRC+4k6yffGGBQMZ+MCjJOLn0Hunk+uCdhSGPCKKWru7xubw8HQzUVEnZAMllaDvXQX8vDPoN9FxKBwHacdd8GAkBfXQTBjArmc/mlSwR2+63fsUldRbUXBWik1aSqfMlIILR62fCtxvfpP+Fse9vFqz8OXRTKEEvE+k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717754615; c=relaxed/simple; bh=amMZc6m1aRSEtTlrDesVe38Db++HH1vW/7Yeem0LOHc=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=q01kqFWv7iA2Col1oaBs8of71/o88YayZGHLGUIDRZplJ83jMzQvz+R8+1z8QeagtWK5gZrOSxjdnqU0nyTmpld50bHBAmIxxuVNtbGYqQsdXLGaVMZP99tKuGLWRWT39pYHfP2+uopkD6e05RzBLFPtKM77OK1RQ1wB9Xe8M9g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=WWS2h7mK; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1717754612; bh=amMZc6m1aRSEtTlrDesVe38Db++HH1vW/7Yeem0LOHc=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=WWS2h7mKUHQ/KjyyIMm4ZMV44uFbqpA23mdxJKsHdJ7buh3vkY7dDGJuTdJ+wHg+C hkyUxCvAUb8OpmSSwVqodtMbREdF2yIJh8oWpS3sgIfrWZGRnykvdYOjtiJvRM3WKD VrQ7ocvgE2iqIxy970gR/R/51ZwQeoGyQamDPfFUPXNtH8USjPcjkDv1Th+0X3AG0T 5mmydkFWRKzfuWp9YyDh6FZFwm+vYJsiKAo+1cZtpbvJ/vc7PbuLoydZLQz4h0WgLe 8t5c/hQ6z2cYB5cixQLjsDiHSIuzmGSjqAXgYLs8/A0H88hpnzVlHus8HU89ur6Rss BtW2xhMV7xurg== Received: from [100.113.15.66] (ec2-34-240-57-77.eu-west-1.compute.amazonaws.com [34.240.57.77]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 517EA37811D1; Fri, 7 Jun 2024 10:03:27 +0000 (UTC) Message-ID: <06c41273-47c3-421a-8fbe-dbcf8321de7e@collabora.com> Date: Fri, 7 Jun 2024 15:04:01 +0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , cmllamas@google.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, llvm@lists.linux.dev, linux-mm@kvack.org Subject: Re: [PATCH v1 1/2] selftests/mm: Include linux/mman.h To: Edward Liaw , shuah@kernel.org, Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Andrew Morton References: <20240605223637.1374969-1-edliaw@google.com> <20240605223637.1374969-2-edliaw@google.com> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/7/24 2:44 PM, Muhammad Usama Anjum wrote: > On 6/6/24 3:36 AM, Edward Liaw wrote: >> thuge-gen defines MAP_HUGE_* macros that are provided by linux/mman.h >> since 4.15. Removes the macros and includes linux/mman.h instead. >> >> Signed-off-by: Edward Liaw >> --- >> tools/testing/selftests/mm/thuge-gen.c | 5 +---- >> 1 file changed, 1 insertion(+), 4 deletions(-) >> >> diff --git a/tools/testing/selftests/mm/thuge-gen.c b/tools/testing/selftests/mm/thuge-gen.c >> index ea7fd8fe2876..034635317935 100644 >> --- a/tools/testing/selftests/mm/thuge-gen.c >> +++ b/tools/testing/selftests/mm/thuge-gen.c >> @@ -15,6 +15,7 @@ >> >> #define _GNU_SOURCE 1 >> #include >> +#include >> #include >> #include >> #include >> @@ -28,10 +29,6 @@ >> #include "vm_util.h" >> #include "../kselftest.h" >> >> -#define MAP_HUGE_2MB (21 << MAP_HUGE_SHIFT) >> -#define MAP_HUGE_1GB (30 << MAP_HUGE_SHIFT) >> -#define MAP_HUGE_SHIFT 26 >> -#define MAP_HUGE_MASK 0x3f > Totally makes sense. > Reviewed-by: Muhammad Usama Anjum Fixing typo: Reviewed-by: Muhammad Usama Anjum > >> #if !defined(MAP_HUGETLB) >> #define MAP_HUGETLB 0x40000 >> #endif > -- BR, Muhammad Usama Anjum