Package: dietlibc
Tags: hppa, patch
Version:  0.34~cvs20160606-14

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 dietlibc to
allow newly compliled programs to use the standard MADV_* constants.

Please apply for next upload.

Signed-off-by: Helge Deller <del...@gmx.de>

---

diff -up ./include/sys/mman.h.org ./include/sys/mman.h
--- ./include/sys/mman.h.org    2023-02-10 09:38:51.324985574 +0000
+++ ./include/sys/mman.h        2023-02-10 09:39:02.325090819 +0000
@@ -167,7 +167,7 @@ __BEGIN_DECLS

 #elif defined(__hppa__)
 #undef MAP_TYPE
-#define MAP_TYPE       0x03    /* Mask for type of mapping */
+#define MAP_TYPE       0x2b    /* Mask for type of mapping */
 #define MAP_FIXED      0x04    /* Interpret addr exactly */
 #define MAP_ANONYMOUS  0x10    /* don't use a file */

@@ -196,28 +196,6 @@ __BEGIN_DECLS
 #define MADV_SPACEAVAIL 5      /* insure that resources are reserved */
 #define MADV_VPS_PURGE 6       /* Purge pages from VM page cache */
 #define MADV_VPS_INHERIT 7     /* Inherit parents page size */
-#define MADV_4K_PAGES  12      /* Use 4K pages  */
-#define MADV_16K_PAGES 14      /* Use 16K pages */
-#define MADV_64K_PAGES 16      /* Use 64K pages */
-#define MADV_256K_PAGES 18     /* Use 256K pages */
-#define MADV_1M_PAGES  20      /* Use 1 Megabyte pages */
-#define MADV_4M_PAGES  22      /* Use 4 Megabyte pages */
-#define MADV_16M_PAGES 24      /* Use 16 Megabyte pages */
-#define MADV_64M_PAGES 26      /* Use 64 Megabyte pages */
-
-#undef MADV_MERGEABLE
-#undef MADV_UNMERGEABLE
-#undef MADV_HUGEPAGE
-#undef MADV_NOHUGEPAGE
-#undef MADV_DONTDUMP
-#undef MADV_DODUMP
-
-#define MADV_MERGEABLE 65
-#define MADV_UNMERGEABLE 66
-#define MADV_HUGEPAGE 67
-#define MADV_NOHUGEPAGE 68
-#define MADV_DONTDUMP 69
-#define MADV_DODUMP 70

 #elif defined(__ia64__)

Reply via email to