Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1628778pxp; Thu, 17 Mar 2022 13:05:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwArzL4eNZrSnpDeVcDgrIE4ckfg/bJYSzs8xuVyezGhVAyW9YfNBort8Ie/cK/SkAer49S X-Received: by 2002:a17:903:283:b0:153:ad21:21d3 with SMTP id j3-20020a170903028300b00153ad2121d3mr6528440plr.163.1647547536995; Thu, 17 Mar 2022 13:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647547536; cv=none; d=google.com; s=arc-20160816; b=LGss6KEbWqGNAhCS+GFRJFQgYkT8cUUKVFQkqcIsN1Yi/PBqEyhDj0r75wtNYEGCSW Sz8FkiWcUUrRXh2QMhnMcEUI6R8PJ/z8UKncZ2yVPlVfqylAsAwDraoeFz6ofGzlCsQF OpBCXJRQNPWBfR0jsNRKkvDpgixZiLc1RYrI8cqH3WNg9dzhUHd5CNdbSU0K/L78TQD6 KRXO+1+2FL3NhqJAVofPC5TIt7jEDtRIkTX6Uq6cdECmSoYwEDUh9X1upkSu9AOQ+qeu 5070Z+LH/woNCmbz0rSg2tHzRC0f5jbLMrKtV2mQ8vcgHef9I+df+pdpdhzRDTQ+YzCu lCrQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Krvbg1P5FANNLihBRwTn8d5UNt2fvoY0lRV85JJJn6M=; b=nqPLG/ohf4hUxIT8wX8hHHckhmvMPNkX4PhdnF3Pag71Wm2PO9Phqn3J9FpKBvGuZd JX1uRRiMFRvGo0rOyM1ew1L7RRtL3Xy1UX6oi2kq2J5KbfcuyeRRFyF2BVie+oMYWByz tOWiKhUuauJYaLZiV946Z2qqPLVB/TNyZJvvR9xGzFd5zeAKAt0SLijuWFP4pXfm1tFc zntAglWH/8RF3IlS2BL0MBQ3qpi5FzMf9kYO0BxfuCkuYZktiLeAVHrStNEVTpFLXh7e 9n2rpp9vqvSvq6Il+k6V86h9CnFOeYkVyOL0x7LhF4GuYI1KhZjMXLMbEpTEtItg0Dnz Pg8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Al49Q8Fl; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d5-20020a170902728500b00153be6474c2si23984pll.531.2022.03.17.13.05.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:05:36 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Al49Q8Fl; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5294F284E77; Thu, 17 Mar 2022 12:54:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234059AbiCQMvk (ORCPT + 99 others); Thu, 17 Mar 2022 08:51:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233866AbiCQMvB (ORCPT ); Thu, 17 Mar 2022 08:51:01 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EBA41F2DF7; Thu, 17 Mar 2022 05:49:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id AF7ACCE233F; Thu, 17 Mar 2022 12:49:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CC09C340E9; Thu, 17 Mar 2022 12:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647521345; bh=imLRbNBIttWRNaw4IAFVGr5nNbkEISMaVibcAl0KihE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Al49Q8FlVvI8evPOotC+rkq8d67kr+9+s+sgo5SwpBRWqLolyPFmm5HgXp2RQ7V2I pNT/tiuhbASuXX8QHAtTZ7mSkqH7BjMjTiyrTYwe1onTDkwUCgtuZbP7wtEQgrQNWR jit4Mk4BFbMPgwS1Pz8UwinP9DfwMgCRCcRwJ0EE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chengming Zhou , Shuah Khan , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 5.4 43/43] kselftest/vm: fix tests build with old libc Date: Thu, 17 Mar 2022 13:45:54 +0100 Message-Id: <20220317124528.864642891@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220317124527.672236844@linuxfoundation.org> References: <20220317124527.672236844@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chengming Zhou [ Upstream commit b773827e361952b3f53ac6fa4c4e39ccd632102e ] The error message when I build vm tests on debian10 (GLIBC 2.28): userfaultfd.c: In function `userfaultfd_pagemap_test': userfaultfd.c:1393:37: error: `MADV_PAGEOUT' undeclared (first use in this function); did you mean `MADV_RANDOM'? if (madvise(area_dst, test_pgsize, MADV_PAGEOUT)) ^~~~~~~~~~~~ MADV_RANDOM This patch includes these newer definitions from UAPI linux/mman.h, is useful to fix tests build on systems without these definitions in glibc sys/mman.h. Link: https://lkml.kernel.org/r/20220227055330.43087-2-zhouchengming@bytedance.com Signed-off-by: Chengming Zhou Reviewed-by: Shuah Khan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- tools/testing/selftests/vm/userfaultfd.c | 1 + 1 file changed, 1 insertion(+) --- a/tools/testing/selftests/vm/userfaultfd.c +++ b/tools/testing/selftests/vm/userfaultfd.c @@ -46,6 +46,7 @@ #include #include #include +#include #include #include #include