All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] uclibc: disable posix_madvise for noMMU
@ 2016-11-29  5:39 Waldemar Brodkorb
  2016-11-30 15:15 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2016-11-29  5:39 UTC (permalink / raw)
  To: buildroot

Now that the madvise defines are disabled for noMMU targets,
architectures with MMU and noMMU support as ARM are failing to compile
in noMMU mode, since the defines are used internally in posix_madvise.c.

Disable compilation for posix_madvise() for noMMU.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 ...003-posix_madvise-not-available-for-noMMU.patch | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/uclibc/0003-posix_madvise-not-available-for-noMMU.patch

diff --git a/package/uclibc/0003-posix_madvise-not-available-for-noMMU.patch b/package/uclibc/0003-posix_madvise-not-available-for-noMMU.patch
new file mode 100644
index 0000000..e3a0cd7
--- /dev/null
+++ b/package/uclibc/0003-posix_madvise-not-available-for-noMMU.patch
@@ -0,0 +1,30 @@
+From 9945c6d21797553e78cbef8034f6dd16b3824df5 Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@openadk.org>
+Date: Mon, 28 Nov 2016 07:31:00 +0100
+Subject: [PATCH] posix_madvise not available for noMMU
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+---
+ libc/sysdeps/linux/common/posix_madvise.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/libc/sysdeps/linux/common/posix_madvise.c b/libc/sysdeps/linux/common/posix_madvise.c
+index 2f95bcb..541dabe 100644
+--- a/libc/sysdeps/linux/common/posix_madvise.c
++++ b/libc/sysdeps/linux/common/posix_madvise.c
+@@ -4,6 +4,7 @@
+ #include <sys/mman.h>
+ #include <sys/syscall.h>
+ 
++#ifdef __ARCH_USE_MMU__
+ #if defined __NR_madvise && defined __USE_XOPEN2K && defined __UCLIBC_HAS_ADVANCED_REALTIME__
+ int posix_madvise(void *addr, size_t len, int advice)
+ {
+@@ -23,3 +24,4 @@ int posix_madvise(void *addr, size_t len, int advice)
+ 	return INTERNAL_SYSCALL_ERRNO (result, err);
+ }
+ #endif
++#endif
+-- 
+2.1.4
+
-- 
2.1.4

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

* [Buildroot] [PATCH] uclibc: disable posix_madvise for noMMU
  2016-11-29  5:39 [Buildroot] [PATCH] uclibc: disable posix_madvise for noMMU Waldemar Brodkorb
@ 2016-11-30 15:15 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2016-11-30 15:15 UTC (permalink / raw)
  To: buildroot

>>>>> "Waldemar" == Waldemar Brodkorb <wbx@openadk.org> writes:

 > Now that the madvise defines are disabled for noMMU targets,
 > architectures with MMU and noMMU support as ARM are failing to compile
 > in noMMU mode, since the defines are used internally in posix_madvise.c.

 > Disable compilation for posix_madvise() for noMMU.

 > Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2016-11-30 15:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-29  5:39 [Buildroot] [PATCH] uclibc: disable posix_madvise for noMMU Waldemar Brodkorb
2016-11-30 15:15 ` Peter Korsgaard

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.