Message ID | 20230109171255.488749-1-david@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A32BEC61DB3 for <linux-mm@archiver.kernel.org>; Mon, 9 Jan 2023 17:13:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E0F8C8E0002; Mon, 9 Jan 2023 12:13:05 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D98248E0001; Mon, 9 Jan 2023 12:13:05 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C3A2B8E0002; Mon, 9 Jan 2023 12:13:05 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id B5F1A8E0001 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 12:13:05 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 7E079160987 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 17:13:05 +0000 (UTC) X-FDA: 80335905930.03.D61A942 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf28.hostedemail.com (Postfix) with ESMTP id EB763C001C for <linux-mm@kvack.org>; Mon, 9 Jan 2023 17:13:02 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=WMpGc8by; spf=pass (imf28.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673284383; a=rsa-sha256; cv=none; b=ttQjkJzNxuk8qUORFz1Tib0FSyE/fbBmt6Zw1MakWIejK+gxgHlfPOEp0KDcf7NZdVlwFw C72gme4wokAuXoQe1aDhDpsXK5+y+sDy5yv1Q+AON5bwzoe121Ko3kzZQ0U0qaAWB2uW3b DVFivYa+a4ijBKeLdPBpG/OXost3hT8= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=WMpGc8by; spf=pass (imf28.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673284383; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=Fo9GzvG4z/7wz8H4hq6ngHRCbnPgEy8B7PFW0+5WHAo=; b=nBlCT2dWiqnusdJHnzQScwBEz1qdgKUYQEFXYkRT+k2/GGMMzASmHHyq4WxjCcgHkQLucR pi+z9zLnixHlv9riFMEgq+x/UtU0S+dEyMDkwxMvWfT1gxPRKwrYoNpDn1acc51byM/bay BsANdxse4174JgzwfTyM9Uvke2topv0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673284382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Fo9GzvG4z/7wz8H4hq6ngHRCbnPgEy8B7PFW0+5WHAo=; b=WMpGc8byRJ8Etl8wCxy8EjsFq3S/z3+mZdnA13W92q4MoL2dMQNnwyLJA6CfKOlfR/F1zX W3DhZdtYefRg9+n65giQGdDsuN6r4Q+4k8hLy2VuGxJKA/fklTThAQ3V4cLYzqyEz6XaOp qPm+20cBjwVlO3iNZU5JSuKOmjJL968= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-8-L5VmuwvhO6-Y216kbZTMVQ-1; Mon, 09 Jan 2023 12:12:58 -0500 X-MC-Unique: L5VmuwvhO6-Y216kbZTMVQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6515085CBCB; Mon, 9 Jan 2023 17:12:58 +0000 (UTC) Received: from t480s.fritz.box (unknown [10.39.193.178]) by smtp.corp.redhat.com (Postfix) with ESMTP id 55480492C14; Mon, 9 Jan 2023 17:12:56 +0000 (UTC) From: David Hildenbrand <david@redhat.com> To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, David Hildenbrand <david@redhat.com>, Mirsad Goran Todorovac <mirsad.todorovac@alu.unizg.hr>, Andrew Morton <akpm@linux-foundation.org>, Shuah Khan <shuah@kernel.org> Subject: [PATCH mm-unstable v1] selftests/mm: define MADV_PAGEOUT to fix compilation issues Date: Mon, 9 Jan 2023 18:12:55 +0100 Message-Id: <20230109171255.488749-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Rspam-User: X-Rspamd-Queue-Id: EB763C001C X-Rspamd-Server: rspam01 X-Stat-Signature: pkit8tsec3eyhuhufau7g3tedyi8j8pk X-HE-Tag: 1673284382-734123 X-HE-Meta: U2FsdGVkX1/D0PVDtBPOXdSnMTy2I58RHRdo0GxFKiA24BWaLBmWs6XdSdI/A37c3cBIy77dZvSqiVhdl+KKkk7sTG5cqvITSD4WegySdsxSTKmYs/Ai3yorD3N47d9niaZmu6PV+lBDGrCD7Mh7Zt1J9IaQqnrAMOalkiQc1ErZ7yb+pJ4iD3VqIf/4tSfCXH1hAipoJIJKhtrgcF8fHQMrSW7H3GLxeA2Xuk8PWHNZqeB7i2+3hoEaU1LafcBSQPVeycWi7duWhhBgN7Mca+/u/u4jpf2hggbo6Xs/uEmFfN+dVh6h5+yV7WN0qddKZnskvPZo09jMI0vEQiVjVXDrCyi3b5NS0/cXywAzrtdOTPptecK55OGEzTq5dR7fsWljRhvmVHVObM7dfH/1PeJp++1Uhbhx2kJSpBjsgywAP+gSsf+ugShnwWcr+zmmxWDJEUd/lW5URxOoc/HqXdZ6zxqWU1a/sE4Hml5Ke+jVwlyHdaSTTHHzq/Y4q6eSMPOKNv1BIPFSJ3PSrCkFOPX/yBdBwtNAuSl3smCOlwCSPMZ26hhufzkJYxq6PlBb8P39es/FcST+T9uPl/q//MWok3eY3rWn9Sl9MFsVsSe1QPeBvj3BQBC0Buv8pQ86iEBbs5ufEBEBx4yxFCsWjKMkRNU7kNsOBZ+abrOiu/K09NlSkhpwufiUkwOzCqj+PcPGHtlqAhA+RE33XX9/NWUoE7B0OCyCrydrxyJVJH7x6tGGIxML4YxzxUhW8QkBiOBzpZYZSdeTo1OkI7hNJiiB2/EmbgkM8MCq62yH2HhiaeNYL9ixSGD9DoJFx//ZL5dA2q4mAkOPH2rcdDICtIuXvR6rshIUod0mUJFw1R/R66nKQj3sz6rExgrs+CbLyJkmLpP6n73nUlrvp0XgGGAr9Q/eX2g81WmyO+4IjZMZ1mQZo3h8QrDcRjOPM31U2ngZaEkwJ3T3qQTnm0Y Itg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[mm-unstable,v1] selftests/mm: define MADV_PAGEOUT to fix compilation issues
|
expand
|
diff --git a/tools/testing/selftests/mm/cow.c b/tools/testing/selftests/mm/cow.c index 16216d893d96..0eb2e8180aa5 100644 --- a/tools/testing/selftests/mm/cow.c +++ b/tools/testing/selftests/mm/cow.c @@ -30,6 +30,9 @@ #include "../kselftest.h" #include "vm_util.h" +#ifndef MADV_PAGEOUT +#define MADV_PAGEOUT 21 +#endif #ifndef MADV_COLLAPSE #define MADV_COLLAPSE 25 #endif
If MADV_PAGEOUT is not defined (e.g., on AlmaLinux 8), compilation will fail. Let's fix that like khugepaged.c does by conditionally defining MADV_PAGEOUT. Reported-by: Mirsad Goran Todorovac <mirsad.todorovac@alu.unizg.hr> Fixes: 69c66add5663 ("selftests/vm: anon_cow: test COW handling of anonymous memory") Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: David Hildenbrand <david@redhat.com> --- tools/testing/selftests/mm/cow.c | 3 +++ 1 file changed, 3 insertions(+)