Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp151415rdg; Thu, 12 Oct 2023 01:18:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGb61vhrvvFEgnfbSc2JPgNzQvCghjKbAf/CNpxGGMZ/cnDskSYc7+N7vOBW7Dcx21EwBBG X-Received: by 2002:a17:90b:4d8f:b0:27d:e1c:5345 with SMTP id oj15-20020a17090b4d8f00b0027d0e1c5345mr3137145pjb.15.1697098686573; Thu, 12 Oct 2023 01:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697098686; cv=none; d=google.com; s=arc-20160816; b=cQkIKAQBvbeZSVBIFpCiHV9GNEr2Jzo12JxqFagBCfZHlZ/NdqB8keZosVoGJlwphh M4nS5N2scMWG/ZUoGcIH6ZRd/RXfmUkttg5to9ImX1600q/CfWwiVeiZJ4oQFCD24Wgc 7f9zz0+gBgFolXbZiFMPYIPXPvBr1tCjHk2v99JzLK1yP5e2iTdIm0yiCg9hffUVK2kG H5K6XO6aCrPJJMiDDgnhCCNFcLYmZ3U1v2lCgy1cpEq+Y44GCO0eCr2RnFnzb0h9KhJC MVD7+ra4GFf974H7kBAcjGkrDZ1zNI3hiZk0Whyt0+Fud+omvIBcOpxdWHg1O4myECpj G1EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=rnxXp6+2t2V80K2IPOnOihTvCs6Cdb3WvLtEBGJ2V+U=; fh=cs4OH29SQViTGX2spZugdX7JqX3O1f58MUUf0R9n4dI=; b=jjl8gheeP6egUyC/Va8BGUa5bDB9zYDpWkN/Iqxg98Egwn23V7z164dA/6QS669iAA H71ZcPfwF8VyBPo5Gnxx2bGc+rciGoSvM90R+Qqy4lf3gA6vpttDuIWiIEhaXwxOUabY sMpwSYSKny3Jm/d6a9vDlwsLYtMBWA2pID5hF/rZYy+BtN6Vgb+WfT6QT2SPAeMeB0ZC vdguXPFivipmt+phDjIbLh7UZr9mRjKDQGrVbeYo/zrUTYEypN2M1ipPaIxBjqtncMVO mfH9jsmpOJ5j6EgyreBse+D1lhndwPJgHfwye3FpWGVt5R25e7xiNRmQRQGXZP9o5mPf Iklw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=mRXVtGmX; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id w3-20020a17090a4f4300b00274cf8042b6si1692051pjl.102.2023.10.12.01.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 01:18:06 -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=@collabora.com header.s=mail header.b=mRXVtGmX; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id BFAFB8022C82; Thu, 12 Oct 2023 01:18:03 -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 S235354AbjJLIRj (ORCPT + 99 others); Thu, 12 Oct 2023 04:17:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234125AbjJLIRi (ORCPT ); Thu, 12 Oct 2023 04:17:38 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B29F698; Thu, 12 Oct 2023 01:17:36 -0700 (PDT) Received: from [192.168.100.7] (unknown [59.103.217.136]) (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 madras.collabora.co.uk (Postfix) with ESMTPSA id EE52D6607341; Thu, 12 Oct 2023 09:17:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1697098655; bh=vTyt7TX3DQPFdic8eB59rza9v8LPVCGALn0DN3U7wgU=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=mRXVtGmXf2LRNZ9ly0IQErkYho8It0SyLVNULBWfzX0YFL1W2hY/yg2lSAn+/55zT N24wZrYkKYycpSXYUc7GgPIShtLF6hpN85bG2QtUiZftzg6hTR00z/G62cY0R6tYm2 PIQBMzcKgbaPiMzM1QukZTki9x7n7tHV24I1trzXvqSfcOliqvitWRH7oy0bf7GjPs AIH9LqcgzcDyTUgu3WXM5IuycqyMAPO5npLsvssEl1rzlokWBlKem6IbjQV1OpKfjP Do+bW3xd8H17elg8y/Ak7MEYyECN9sYIvQRG2KY+ZzBN/EHfx9SFDhM4ScZvL27N+l xjebSRrsBx3vQ== Message-ID: <018dfa44-785c-403a-a085-c13ee73933df@collabora.com> Date: Thu, 12 Oct 2023 13:17:27 +0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] selftests/mm: include mman header to access MREMAP_DONTUNMAP identifier Content-Language: en-US To: Samasth Norway Ananda , akpm@linux-foundation.org, shuah@kernel.org References: <20231012064048.433346-1-samasth.norway.ananda@oracle.com> <3be75492-36e7-4ffe-ab0e-ef583b801af1@collabora.com> From: Muhammad Usama Anjum In-Reply-To: <3be75492-36e7-4ffe-ab0e-ef583b801af1@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=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 01:18:04 -0700 (PDT) On 10/12/23 1:06 PM, Muhammad Usama Anjum wrote: > On 10/12/23 11:40 AM, Samasth Norway Ananda wrote: >> Definition for MREMAP_DONTUNMAP not present in the selftest for >> mremap_dontunmap thus throwing an undeclared error when running make >> on mm. > Thanks for sending the patch. > > You have mentioned in other email that MREMAP_DONTUNMAP isn't present in > glibc older than 2.32. So including linux/mman.h solves the build error for > people having older glibc. Please add this to the description of the patch > to give the exact reason this patch should be accepted. > >> >> 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/ >> 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 > Tested-by: Muhammad Usama Anjum Just to add more context, the build error doesn't trigger on latest glibc. I've tested building this test with glic 2.31 and there is build error. This patch fixes the build error. > -- BR, Muhammad Usama Anjum