Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp403435rdg; Thu, 12 Oct 2023 08:53:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGblAmIhsfbG2vZpJDthTTGro+LB1DU9LCf93sxTpVfV7Po33PA4BTJ9oQg8mUkkmKvg99i X-Received: by 2002:a05:6a20:e11c:b0:175:6c37:836d with SMTP id kr28-20020a056a20e11c00b001756c37836dmr1816661pzb.35.1697126013168; Thu, 12 Oct 2023 08:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697126013; cv=none; d=google.com; s=arc-20160816; b=Nan1fZl02tkUjZBah4BvrNstOBpJnyeRJIu3ASpMp/h1DCvuXb4k5SOjpnMcXxtL0v Dp6NJUN9IgDchQ/1+wNwlrKKZD0fpwNkgagZt3r6VvTqRonzBw16GKXyd6v8ihiOZ75m eZGrmatguaXQhGIPybovv/9G7enmgX2FdfWhvXnBOGME2/XH8INgDv5dEp1ytWCg5Bpf SYT1vIbHE7OF6FUr3of/pwmaAbfm7wTiHAiiE6aepDXJ9FOJXrNhaMYRY31kSLVQZ2SP KxSri2fkXrEx9lhrmQ2UuHLJFVOhvgs084SvJfv7Htm7sTgJkACB8ZMiYo+zuof5zcKV OF1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=t1DYKhHZTfqr7i7SSmL8YEmuW/k4Tq42LmD0jvjmNUo=; fh=ZVLyAnsXSkzuxmOpH7RkG2kZD1e+q+bAVuWcYNW+kD8=; b=Zg0T6zr5/+tdb/aoGFSTGq25CSdgoXzNbxykgFlSZ+NljHDiwQGgZKS6YBcvQx6o6p RDjiq3lh/ka9VKUANpIeG4GOaz4oeQoZf+SBvKOn5MbzuJgXtgX3gubSG+i9U4wHUMPk xzIAWMiLh9m+iJIguo1TFbTOjV6ByfTWJgZISfnq83MZwJyfHgR8hCl8WjFwHQU4mJEU Hj6TYgvi4nSxDFPoK6xJZE5jRZEUnqDu2WM4BqCgzfGV4UjNtRbdrWkYDEaj2Tg6a0la d6AeDWW1vprTP11IaZ9fDGPdmp5c6sS1IspHH0XwGsrxX6CqHF4aS++5oBdTYhqYX56M IA5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=pPZ4w11k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id n25-20020a635c59000000b00563fac86c55si2529511pgm.134.2023.10.12.08.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 08:53:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=pPZ4w11k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id CC5108208F3B; Thu, 12 Oct 2023 08:53:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347300AbjJLPxT (ORCPT + 99 others); Thu, 12 Oct 2023 11:53:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234165AbjJLPxS (ORCPT ); Thu, 12 Oct 2023 11:53:18 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09FAFC6; Thu, 12 Oct 2023 08:53:14 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39CFhvCR015580; Thu, 12 Oct 2023 15:53:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=corp-2023-03-30; bh=t1DYKhHZTfqr7i7SSmL8YEmuW/k4Tq42LmD0jvjmNUo=; b=pPZ4w11k9WuGc2l9kpU9Swba9/aQ9GRWDlkDfJ4wQYNg88tY7yD31IDSspqGz0WKTsmV Jt5A6N+/LqI7TO7zwQkY130CrfX49nluZ3uL1SROCSmH4vWfKf3hT/EcOc6ZAQV7kq3F URHXodrhAFwnZHIcsGPdLhcYo1YPRdL2FJRmTMMhDz1ALtoGVRBeuX95RC3sKgVB2DXQ kCnRdwmjqhWlh2xlUvZSIDDAoas5iMSdRZL9TqIHVTfGF33n3OfwMUpxH24UYRTsf7pV sWggJGgfwf2WCixh1bPcmpVW3LEEuztNc4tQ5Q0dkSUQb1iky/Li2GSoBZ+XaZ9EUhVj LQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3tmh8a0gfw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Oct 2023 15:53:00 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 39CEXxjl006321; Thu, 12 Oct 2023 15:52:59 GMT Received: from pps.reinject (localhost [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3tjwsfva35-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Oct 2023 15:52:59 +0000 Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39CFo0pZ008306; Thu, 12 Oct 2023 15:52:58 GMT Received: from ca-dev112.us.oracle.com (ca-dev112.us.oracle.com [10.129.136.47]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTP id 3tjwsfva2e-1; Thu, 12 Oct 2023 15:52:58 +0000 From: Samasth Norway Ananda To: akpm@linux-foundation.org, shuah@kernel.org, usama.anjum@collabora.com Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, samasth.norway.ananda@oracle.com Subject: [PATCH v2] selftests/mm: include mman header to access MREMAP_DONTUNMAP identifier Date: Thu, 12 Oct 2023 08:52:57 -0700 Message-ID: <20231012155257.891776-1-samasth.norway.ananda@oracle.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-12_05,2023-10-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 spamscore=0 adultscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310120131 X-Proofpoint-GUID: 6CytDmMlBPo3-yWodICHHpLORodjKGFa X-Proofpoint-ORIG-GUID: 6CytDmMlBPo3-yWodICHHpLORodjKGFa X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 08:53:30 -0700 (PDT) Definition for MREMAP_DONTUNMAP is not present in glibc older than 2.32 thus throwing an undeclared error when running make on mm. Including linux/mman.h solves the build error for people having older glibc. Fixes: 0183d777c29a ("selftests: mm: remove duplicate unneeded defines") Reported-by: Linux Kernel Functional Testing Closes: https://lore.kernel.org/linux-mm/CA+G9fYvV-71XqpCr_jhdDfEtN701fBdG3q+=bafaZiGwUXy_aA@mail.gmail.com/ Tested-by: Muhammad Usama Anjum Signed-off-by: Samasth Norway Ananda --- tools/testing/selftests/mm/mremap_dontunmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/mm/mremap_dontunmap.c b/tools/testing/selftests/mm/mremap_dontunmap.c index ca2359835e75..a06e73ec8568 100644 --- a/tools/testing/selftests/mm/mremap_dontunmap.c +++ b/tools/testing/selftests/mm/mremap_dontunmap.c @@ -7,6 +7,7 @@ */ #define _GNU_SOURCE #include +#include #include #include #include -- 2.42.0