Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp146527rdg; Thu, 12 Oct 2023 01:07:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxeIZT29tShMNxRmqwsIYW6Gwk3kwlyFkJoZvPK6yAxBLi6wQRJcEJxOXEdMfCgKhacMnS X-Received: by 2002:a17:903:32cb:b0:1c3:2ee6:3811 with SMTP id i11-20020a17090332cb00b001c32ee63811mr30213902plr.8.1697098032561; Thu, 12 Oct 2023 01:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697098032; cv=none; d=google.com; s=arc-20160816; b=MtlOr63fFxjja8Y35fqkdpOq0Qbu6S/fmeIF32+76kg5q+u3cvRqBnzl/3SGgIiVK3 GOjDEttNl2vHTT9E1KEI5xoE8JTewkPJE6M/KRWU4i8NyeQ/LKIQtZUv/ASdqK5ibRA5 sn0U/9tHhGvQAL9iyV376fhVWQuxvU3JVGAjb+psa5a0T0G+J/Uom37Gy+AoSIWO3m7u 44VWm+1VBQPvWJWVWRLxCnQtPQbOU1cbkpjW7bj0CY4s82hUBV8FMWn9Nas9uo3xQs2Z 8z80QoXprT/pkEdVo/oTcGSfQo8/uh3AhKuXrIQUHY4/cyMoUn1JTvMVNazSAaSTOBuB sChw== 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=k0vIM1sRqQKJnZzI84mmXO5dq+HYhQRKyItvtDfpthA=; fh=cs4OH29SQViTGX2spZugdX7JqX3O1f58MUUf0R9n4dI=; b=t0ucZjkq/8M3me2KgNk9X2/fevVX01afngnFDY7JN4fj/dwfo0+aYKatZxXFsdMm47 C7zQh2hF5FyN3xsL2tJid77aSlE0TPYgdq9+fooJcPR9yhE42wmXPXdrc8mSl51vItXS KpD9Adh7E20n1BFzHAVSpdrhMuN9+MhMX5kGtWPw30PQIca/1XQc8JTUQu4c+OVRypuP tMIPLFIFrNZtSwMteRGHTju7UZl8EMw0EbkCjW5atDk4MAn3Y7IfHUbEOtWGzt+JhY1i 2zDWddfnGvKcS5k+RJCHr4fkGpX+rDJN+toSGZPn1hf8Jrt7rd4oFbEkwy4e0jhW5Kt/ vbpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Yg3t2OfW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id b7-20020a170903228700b001c746b986e2si1795275plh.346.2023.10.12.01.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 01:07:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Yg3t2OfW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id ECCE580FE96A; Thu, 12 Oct 2023 01:07:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347262AbjJLIHB (ORCPT + 99 others); Thu, 12 Oct 2023 04:07:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347243AbjJLIHA (ORCPT ); Thu, 12 Oct 2023 04:07:00 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B65FD90; Thu, 12 Oct 2023 01:06:57 -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 C80FB6607334; Thu, 12 Oct 2023 09:06:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1697098016; bh=yTMOxirkSsfi40134zfm8Df7fb3tsgxzrLHw09uiTt0=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=Yg3t2OfWI6DpDHvhjd/0qpO/Nx+icjlIuiMDPHPGOlFE//iEJd6k75n2eucjGAJby VEUD21UE9nsOdG5/vr1+Cd/AMi/BdAaG3Kn4mn/HLuG3GLW7ZFLO7c6AOSJdPxXfsR CFdavNmyJp+PRonMc5rU4LfQc0DfMn8pgaW6Krzn9cGNC4dNXlrJgFoIERysZhRAlB TnMwXmDe0Kqg0mtzk9mrVCM+c7mvhDrAysrJyr11gJSEMr9Qt4ryNm6R/BwT3wIuNZ EOMIgRHTJ+NnvD1PPmO3zBZPWE01wRBMsvq8vTm/tpe9226k77ERYh0Y+V9xU3BUGv PmYtrBxUZyUEg== Message-ID: <3be75492-36e7-4ffe-ab0e-ef583b801af1@collabora.com> Date: Thu, 12 Oct 2023 13:06:48 +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> From: Muhammad Usama Anjum In-Reply-To: <20231012064048.433346-1-samasth.norway.ananda@oracle.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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 12 Oct 2023 01:07:10 -0700 (PDT) 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 -- BR, Muhammad Usama Anjum