All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] lapi/mmap.h: Add MAP_SHARED_VALIDATE
@ 2023-03-24 10:16 Petr Vorel
  2023-03-28  7:41 ` Li Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Vorel @ 2023-03-24 10:16 UTC (permalink / raw)
  To: ltp; +Cc: paulson

It will be needed in new mmap20.c test for CentOS 7.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi,

Fix required for patch:
https://patchwork.ozlabs.org/project/ltp/patch/20230323121330.92244-1-paulson@zilogic.com/

CI shows failures on CentOS 7:

https://github.com/pevik/ltp/actions/runs/4509751194/jobs/7939880067

/__w/ltp/ltp/testcases/kernel/syscalls/mmap/mmap20.c:48:25: error: 'MAP_SHARED_VALIDATE' undeclared (first use in this function)
          INVALID_FLAG | MAP_SHARED_VALIDATE, fd, 0);
/__w/ltp/ltp/testcases/kernel/syscalls/mmap/mmap20.c:48:25: note: each undeclared identifier is reported only once for each function it appears in

More at he patch

 include/lapi/mmap.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/lapi/mmap.h b/include/lapi/mmap.h
index 48795369d..7512e9f81 100644
--- a/include/lapi/mmap.h
+++ b/include/lapi/mmap.h
@@ -10,6 +10,10 @@
 #include "config.h"
 #include <sys/mman.h>
 
+#ifndef MAP_SHARED_VALIDATE
+# define MAP_SHARED_VALIDATE 0x03
+#endif
+
 #ifndef MAP_HUGETLB
 # define MAP_HUGETLB 0x40000
 #endif
-- 
2.40.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH 1/1] lapi/mmap.h: Add MAP_SHARED_VALIDATE
  2023-03-24 10:16 [LTP] [PATCH 1/1] lapi/mmap.h: Add MAP_SHARED_VALIDATE Petr Vorel
@ 2023-03-28  7:41 ` Li Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Li Wang @ 2023-03-28  7:41 UTC (permalink / raw)
  To: Petr Vorel; +Cc: ltp, paulson

Reviewed-by: Li Wang <liwang@redhat.com>

-- 
Regards,
Li Wang


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-28  7:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-24 10:16 [LTP] [PATCH 1/1] lapi/mmap.h: Add MAP_SHARED_VALIDATE Petr Vorel
2023-03-28  7:41 ` Li Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.