Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1560823pxp; Thu, 17 Mar 2022 11:33:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZx9X1BMd593piyMg1BhA8sIQi0SmSg2Wnhc06HUGa0VCVgQVA9H8gT3lrDFJd1M2bjvnP X-Received: by 2002:a05:6a00:188e:b0:4f7:570:63fd with SMTP id x14-20020a056a00188e00b004f7057063fdmr6249770pfh.27.1647541989393; Thu, 17 Mar 2022 11:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647541989; cv=none; d=google.com; s=arc-20160816; b=Jrlpt/r+hS/Ms7NXOAWQEiYS2rwwRqXyzAwHhjhwVy/M3IkV6cU931DopHRw1WUtbG e4DzPdCTFaURabRPs/JOduGcKKZwmroFF8DW7+CLvvswr1HgK9PIZ89EkIvLar2Wb29j WwBGOsM0i9+451P36e1MdIabF8Xj08P3jWcbnFeG3vS1Hh+zZki2nCKKrVimimJSTExy 6y46QsVlNjzYTCqIXZ1EQnoRQRMYKTY2rPn4TcX/HWJ5hBNM/3u9n/R+XhsZ4VI44qgG x1FxqlJjrPOFRMelcI73TmfU00d17Rp2oU1uOb3aLXxeGuUw5Clq8ZrelykqypOokxOv h1bA== 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=02iBU/z9DwFyFyUy7ZrDRKoDtpcmhGpbWeiozHgDMGwOkax3PW5HuTelaiVLA1IxrU N6VWCxyv8jhGzSOWm63n0+5fJ9DTDGNlB8QdY/embMlFK5AMaszjYZaifeWEaud5LN30 7K+9TWF8qvVi5Ybyq6ktlwkMgSXAVEvsSLUac0cZm7f4+MaRUqnAsIZssHOFG9Nwz/2e PX7qFPgUajJPsvTTcdCYV2qTZJbBRKAsEusB5SIn+iT211IpVTzRKc7pkXnM3p21/dj1 6Elw5MlmKGJc5SMZZ3P+O0Bb7fMHXikNWVdX8ZglbxmC5SLZgEwjJfvrtaQ+rE1kDtJv WcjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IWjhBYoi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y4-20020a633204000000b003816043f0desi2708999pgy.723.2022.03.17.11.32.54; Thu, 17 Mar 2022 11:33:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IWjhBYoi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235521AbiCQM7K (ORCPT + 99 others); Thu, 17 Mar 2022 08:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234180AbiCQMzQ (ORCPT ); Thu, 17 Mar 2022 08:55:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E50079A981; Thu, 17 Mar 2022 05:53:49 -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 85F9CB81E01; Thu, 17 Mar 2022 12:53:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA3CEC340E9; Thu, 17 Mar 2022 12:53:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647521627; bh=imLRbNBIttWRNaw4IAFVGr5nNbkEISMaVibcAl0KihE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IWjhBYoiUwTrVz/aZI5WRvbsVPaE+lQMkz52HIEH6InwK6rr0sgh8P4fy0xpuygtq jf0LEE+sIwRuRAKPnBOZq1enrmwv4I/4loXjD+4O1U0pxbdRIOcDjUEqDl0BUxyHmJ LahKIPNxyNxcOGfCV3xjtLQ4PRXfEnDdJZyq40lw= 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.16 27/28] kselftest/vm: fix tests build with old libc Date: Thu, 17 Mar 2022 13:46:18 +0100 Message-Id: <20220317124527.534855605@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220317124526.768423926@linuxfoundation.org> References: <20220317124526.768423926@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=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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