Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp921214lqt; Fri, 7 Jun 2024 02:44:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0VhEFj+mObIZyoHDstHv+8nHYs63th2R1vQO0BRrSPa28k77PibO8DvxlJ4iANjPAq6ZN2ebfqL1XeoyZrNeJh0CCsGmU9bCWgwxqoQ== X-Google-Smtp-Source: AGHT+IGGEapojNyDMfDZ2gv3bvuv2KHDZqvFwS4YY23XUoKpy/F6fKJxKsVq36kVgqa4jklkdUAF X-Received: by 2002:a05:6a20:918f:b0:1aa:92b3:acd0 with SMTP id adf61e73a8af0-1b2f9a157b0mr2425145637.25.1717753484400; Fri, 07 Jun 2024 02:44:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717753484; cv=pass; d=google.com; s=arc-20160816; b=RhmNVSBtu6hYF8vO+6qdA+BGfYVAySOtZ7Wz5+M+ZNmsPDzkePDBGvFL5+O0kH67w/ ZD6nTzKY9AZJuZtAz5zHQx8LBNr5lqAbVQDMuexgGcshckKUWc/cmYR4J1ALHShh+NTH B1NMFkh5ICbarP7Bn6nPrjcs2zEB4SxkfNe2t98XXHoZUgWxtwIc3julubUyfqTebXX6 TBUCSx6f6kLB4drIfWuJDxrtaNK1y4vA0YPE7K8SqFgMMNNdShpNa5+X1OXoeXM9BW6g WWD4VAGq+FBBiopKUJ/LuIkfFBzpqJgt7JuBWXxo73eCXtn9Msnz/9dpXHVK6GI8g+XO BN2A== 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=HDjQPIHL0H9v7s08tmQO2o5EsAH+JdltksHP3LDa1ck=; fh=Q3vIZAg0FC7ObY+U1Ku8oquIDs+ozNatwlxki3EOyag=; b=HG+TyU8CSBFnLDe2ny3MOHCUaR4q43+Vec3HxNZzb/Syq7BSB/nDPkJAB6SssLAgx3 ngSSXEEP/e9hkQ3PLCI1+LxpikffknGfeqEIn/JLXNej8h6Jeolc1/u4nXcd4+bxkLUB I41ICKQj4nXF9VD28T6WSFV7EIy18oS+4yibSwPcD52ax/V5GQH3/TjiySTPyq5U3VTC gZUOxVhIyFpH2lsaCjoz+/kjtaGd3CaC1K4qfdL5PMqRhBDJ617L6+GA5U9yTzKjJmcK S+4Kx/Fy4uA1DRgYA34JaWvFhDkHCYohptpbZb+LLgTBd3/sLUkbypsnRLE51ZtbvHd1 ltZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=0edyv3px; 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-205753-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205753-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de294f8ab7si2677615a12.720.2024.06.07.02.44.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 02:44:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205753-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=0edyv3px; 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-205753-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205753-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0E2542823B3 for ; Fri, 7 Jun 2024 09:44:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E34415CD78; Fri, 7 Jun 2024 09:44:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="0edyv3px" 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 E6AAA15B122; Fri, 7 Jun 2024 09:44:21 +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=1717753463; cv=none; b=mbpR8/pbZSsK76E3HlUM43xfWYSrf7tL+mh7/MDyn3kmcStbbsljw3/zbZ8MR07XZSoN1reZ6r7JMEEv3W4oIVS30O+hGwzUV5HMeDZCEaW9ahOhcxiYYBVWuB1ghtFY45tlIrb+A9db4nIuPNMtU42jacNsGeHXV5XTtsjfCSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717753463; c=relaxed/simple; bh=dQkXUytkyefTpJTOjW53oGPquKBi+JFRsTG1LaCoypQ=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=dMm5yfeeytbIeZZzSW90i1Xdo3nPq7nOZ0bLPtNutP2Gp5F3z/lZqosmCm+HQmaIc34tX/L9FxB1E15+/9wCoHoOj1LuwiKLt5PdHkMTwMWCry/O9ZliWL1ERDC0vcSpRVVnoe43PRoCnnwgEyFbi/mTkqJbvI5pl7Lv8qYoIf4= 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=0edyv3px; 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=1717753460; bh=dQkXUytkyefTpJTOjW53oGPquKBi+JFRsTG1LaCoypQ=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=0edyv3px19syu5RPaQqFOA4Iew+3rFhQjoIYCjce4DL3tIFEGwZKamNgJjlD0Yvoz jRaJsNZlpwkfRyRa0GE4my+Vs60ypVSOtmOtdr8fVNTvTszWFiYt+D55PpfVwFhENa WEQ3tPBWskovf5o0I7eyFIPrtYXysUuGRf5O0Dxr5HLcb8MvoWSa9SjXPxvooCK6OJ 43J+gZbTV1wg6L89aiSF+h7hqJarpw8rEM03kc943zgD7hi7L9faVKxOUBdCVB7/WJ LCswp/yySfsku6IWwcgnqava8tY+ZAy2gk/TX9U+P2n3B4yD62q/c/8wsyyTbDLYCs k3yKZ1yVnkjSg== 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 E306537811D1; Fri, 7 Jun 2024 09:44:15 +0000 (UTC) Message-ID: Date: Fri, 7 Jun 2024 14:44:50 +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: <20240605223637.1374969-2-edliaw@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 > #if !defined(MAP_HUGETLB) > #define MAP_HUGETLB 0x40000 > #endif -- BR, Muhammad Usama Anjum