Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2307986pxp; Mon, 21 Mar 2022 16:30:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylxm2Uob6V8Tf5dalrcjicgCX1LAQ4cpR/mbrWs//QGo2sP7HBm6sKe+A2G1h4ZfVedJOd X-Received: by 2002:a63:6b81:0:b0:380:4fc1:ee7b with SMTP id g123-20020a636b81000000b003804fc1ee7bmr19913664pgc.298.1647905456483; Mon, 21 Mar 2022 16:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647905456; cv=none; d=google.com; s=arc-20160816; b=r3PFhoxuzpE4B5lYZleMR7+FpGVR7z9AbvVvC9rbvT4FtkKBL2vySzjeFhTwcwxBQm p0dYZfSVOXZVTcp6qBWEpiWxD3dgj2U6yGY67itCp1R0dGxonA8JNjEomahxmSyxkEvl WqtOt2joyDeQg1V8nb/ZQH8Yx+cS0rcRlQWijlqIpj7dT9cNIU8KdIZBS3bewX1npKa4 Gvrs4kv8tYrDMUcxiOfSXCfBTGOpdRaitYg/LLJ4Ikv71yBCqWglRkYymca7v9TUs2Id 8H+DOGhZSkbgR+TymSY/PAa59bzToLLeCizEYT4Vv3Anys0JwkU8cNdsm/KsBeJGC9jv bMyQ== 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=nl9GIcQj4+6G5tdgHY7wgHjaHDyNo+oNUNqO2o+6D7M=; b=ScRN5GAuUtAgCdCxaFLt6ERXecBzkesPZ9JmjbOb2CG58fEM/x2fbD+InepIITFqEk guPmTq7/LS/6UbUMEur35hu/HqQpqw4lLIZ1X7HdPzqzKn28JQ76JpRbPiYRrYCSfQlT 47ZfO9cjJFcvwXtZHFN5tgf9F+B/MMXL0nMEW4/tDVanCv7Cnj6Astr8udKqrUGwamsv GDzWqhogHjBWbB3ebo8LANJTUUqrSc6H5bju8zWxpZ4kFv4J9bVT+AEFQCGtyTkZSkhq WjkYvx8iTgdmH/7f2NoTX0yf2OEGYi34ku1Odaaxb2s2humRXXVUBNYohP9z41vFJfbo GBow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lWRqrciV; 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 c15-20020a17090aa60f00b001bd14e01f8bsi571532pjq.121.2022.03.21.16.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 16:30:56 -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=lWRqrciV; 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 95EE446FBA4; Mon, 21 Mar 2022 15:21:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348913AbiCUOG0 (ORCPT + 99 others); Mon, 21 Mar 2022 10:06:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348481AbiCUN5M (ORCPT ); Mon, 21 Mar 2022 09:57:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DB52174BBF; Mon, 21 Mar 2022 06:55:18 -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 ams.source.kernel.org (Postfix) with ESMTPS id 1954CB81644; Mon, 21 Mar 2022 13:55:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69454C340E8; Mon, 21 Mar 2022 13:55:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647870915; bh=wtBMbSUCfuXVWS0RoBupiBILo/cK+7+qvUHKeR1eerY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lWRqrciVW5cfcVt2t5DPrDmcMjEFGWW9+SWGYRxLGmbq494nSm9Njby3JxBbEzfqx zFHEhxipgr6KrN+3SNdh2SxYZnXmqlD1T3Wl+mqH3Jbk6Vvtug7Rda0A4UO0ad8g6z v6cvixByz/yvkkfrl5qbbaqNjI770qaWb+9KYF8c= 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 4.19 16/57] kselftest/vm: fix tests build with old libc Date: Mon, 21 Mar 2022 14:51:57 +0100 Message-Id: <20220321133222.457059192@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220321133221.984120927@linuxfoundation.org> References: <20220321133221.984120927@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.1 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 @@ -60,6 +60,7 @@ #include #include #include +#include #include #include #include