From patchwork Fri Feb 10 09:23:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 1740396 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=pNVL6t55; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PCpGC5dzPz23hX for ; Fri, 10 Feb 2023 20:24:19 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6EC7D3858C31 for ; Fri, 10 Feb 2023 09:24:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6EC7D3858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676021055; bh=MENEJsiTbD+B2YhObxwrnKlmSzS/ZjyFD9iQPNmnOkA=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=pNVL6t55FTVwhFBO8FpQWHpSwmYQXt1dt3a3UuvzxUbnpwmdXQW3Ao3WSCp6I73tk IHWCncEBbm0cursi8tLJyp62RwdtZBlnkJBupNCF3fujx+lhhVyOJ04m+7aQFp1onC aBhpomhsI4WoJ2e53f5SfcuZPNk9wNgt+so7/iNk= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by sourceware.org (Postfix) with ESMTPS id 3C761385843A for ; Fri, 10 Feb 2023 09:23:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C761385843A X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ls3530 ([92.116.172.157]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N8GQs-1oVTUN3TAe-0149jI; Fri, 10 Feb 2023 10:23:51 +0100 Date: Fri, 10 Feb 2023 10:23:49 +0100 To: libc-alpha@sourceware.org, dave.anglin@bell.net, fweimer@redhat.com Subject: [PATCH] hppa: Drop old parisc-specific MADV_* constants Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Provags-ID: V03:K1:QpQOpgGMMMLqHZEK4RP9akZAokIZDbvA1mpWeCcyYl8qHuIdiqs nnjZCGR/e8dtWxpiQ+MB2YR4KYX28VRyz4nCqRmZBzQjwG8X6FUI1r581rZjqRxXqQsZMHI 0DCSI3HKVeKogP0gUZbe0N+yM9VYF6v8GoGAo1wf2wa3ACt+qeqptbxt4UisKQg32QNueTA 0ewt8uX+lcN1DgNGPxCcQ== UI-OutboundReport: notjunk:1;M01:P0:QL7f6uU2i6Q=;cXfT/wVHu5w2IeMCu20P1ci0lqJ B/U0InyMxQ/f/jO++BXqcMCxO30qFqZ6kzyencsTi9mzRJJLVfN60A/IIMLiUzSrgtLgpi0Fh 67/icSfGhr2OyRFB9nzgeE86fCmnWlFHbIXhZL0WpBv+pUOt/wa9hh+HpZwKLZXMoIYbYZvSq UZ/yucNZAL0veNOLUP0HV4LAl1ZWhaH0R+ZWKtDYOBN5YseyOlLHQe3khIskavQhWfFS85rYF tFHBVzh/rYTUUtIxk2rPGs114GtjMm2wwckRUC050N8bUC+wAp1I0P+icTpCbblOfdB24msXb QhpENDVI8if0aDsgBuSglZxbkz4W2UhfG1FQyf7VYSn2v83DecJuP4yuJekEmYfce9DJrNQoE he4g8lxlcbu/PUAtUCKBXTkbQ5EguH/mwsUzzZHAYhgG1xvq5ThF93dw1xqEKL6d8IZF+/FpH nWOAri8TEBzPFYP7CiE/K7IbInTRXkAHc7ywBHLtBZHvqXZgN22aXaUWOsIu1laxGxNR7PP/r 2/pVVHOh2dh8Bi9sLFfTSiLeMAjp+RnVce7card+/alcygMTRQNzZqjQJx+wZx03+kuhygu8Q JSHBQZ1Fq84OxdMxXPwT4dxgsOv0ynszE/GbAaQtpH3phjMJMDLv0rz/P9Vn+92jgO0cCzSDO 1sX8ZCbXvLyNvFoRbdsjxIG8t7wZEP6j+VXaNbDPxhbe7sSdTnwzDBb6vx4TwAqR9eS2MMlCI 3soS3lmRvcruPoyJbwml17yUj50KESzvityF6Egp1nzP+clGJR1Jw7tD5Rp2jk0AIuDXu3p8/ n9vgo9Bfun6M9Qu3M0vVsKbZlki0VR3FBa1SLxHszojNRraC6b9t0nPQ5B9Q1+nwjWDKS0pvF Y0HFviZxoyNa/csNOc83st3N2WSmmvyBkHubzR988dYrAecPSnHZn7CBdNov0TjXriDT5eDrr Hv2UaA== X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Helge Deller via Libc-alpha From: Helge Deller Reply-To: Helge Deller Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" The Linux kernel upstream commit 71bdea6f798b ("parisc: Align parisc MADV_XXX constants with all other architectures") dropped the parisc-specific MADV_* values in favour of the same constants as other architectures. In the same commit a wrapper was added which translates the old values to the standard MADV_* values to avoid breakage of existing programs. This upstream patch has been downported to all stable kernel trees as well. This patch now drops the parisc specific constants from glibc to allow newly compliled programs to use the standard MADV_* constants. Signed-off-by: Helge Deller diff --git a/sysdeps/unix/sysv/linux/hppa/bits/mman.h b/sysdeps/unix/sysv/linux/hppa/bits/mman.h index c315efceb0..f5a69693af 100644 --- a/sysdeps/unix/sysv/linux/hppa/bits/mman.h +++ b/sysdeps/unix/sysv/linux/hppa/bits/mman.h @@ -39,11 +39,6 @@ #define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap underlying mapping. */ -/* Advice to "madvise" */ -#ifdef __USE_MISC -# define MADV_SOFT_OFFLINE 101 /* Soft offline page for testing. */ -#endif - #include #undef MAP_TYPE @@ -59,26 +54,3 @@ #define MS_ASYNC 2 /* Sync memory asynchronously */ #undef MS_INVALIDATE #define MS_INVALIDATE 4 /* Invalidate the caches */ - -/* Advice to "madvise" */ -#ifdef __USE_MISC -# undef MADV_MERGEABLE -# define MADV_MERGEABLE 65 /* KSM may merge identical pages */ -# undef MADV_UNMERGEABLE -# define MADV_UNMERGEABLE 66 /* KSM may not merge identical pages */ -# undef MADV_HUGEPAGE -# define MADV_HUGEPAGE 67 /* Worth backing with hugepages */ -# undef MADV_NOHUGEPAGE -# define MADV_NOHUGEPAGE 68 /* Not worth backing with hugepages */ -# undef MADV_DONTDUMP -# define MADV_DONTDUMP 69 /* Explicity exclude from the core dump, - overrides the coredump filter bits */ -# undef MADV_DODUMP -# define MADV_DODUMP 70 /* Clear the MADV_NODUMP flag */ -# undef MADV_WIPEONFORK -# define MADV_WIPEONFORK 71 /* Zero memory on fork, child only. */ -# undef MADV_KEEPONFORK -# define MADV_KEEPONFORK 72 /* Undo MADV_WIPEONFORK. */ -# undef MADV_COLLAPSE -# define MADV_COLLAPSE 73 /* Synchronous hugepage collapse. */ -#endif