mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
be8c765c7c
There is new patch-status QA check in oe-core: https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a This is temporary work around just to hide _many_ warnings from optional patch-status (if you add it to WARN_QA). This just added Upstream-Status: Pending everywhere without actually investigating what's the proper status. This is just to hide current QA warnings and to catch new .patch files being added without Upstream-Status, but the number of Pending patches is now terrible: 5 (26%) meta-xfce 6 (50%) meta-perl 15 (42%) meta-webserver 21 (36%) meta-gnome 25 (57%) meta-filesystems 26 (43%) meta-initramfs 45 (45%) meta-python 47 (55%) meta-multimedia 312 (63%) meta-networking 756 (61%) meta-oe Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
46 lines
1.4 KiB
Diff
46 lines
1.4 KiB
Diff
From 0a3222338efc108c831fbdd719a47d35f4b0adcd Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Wed, 18 Aug 2021 06:49:25 +0000
|
|
Subject: [PATCH] aio_linux: Check if syscall exists before using it
|
|
|
|
Return -ENOSYS if not implememented, fixes build on arches like RISCV32
|
|
Fixes
|
|
tpool/aio_linux.cc:63:20: error: '__NR_io_getevents' was not declared in this scope; did you mean 'io_getevents'?
|
|
63 | int ret= syscall(__NR_io_getevents, reinterpret_cast<long>(ctx),
|
|
| ^~~~~~~~~~~~~~~~~
|
|
| io_getevents
|
|
|
|
Upstream-Staus: Pending
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
---
|
|
Upstream-Status: Pending
|
|
|
|
tpool/aio_linux.cc | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/tpool/aio_linux.cc b/tpool/aio_linux.cc
|
|
index 4abc213..da75411 100644
|
|
--- a/tpool/aio_linux.cc
|
|
+++ b/tpool/aio_linux.cc
|
|
@@ -58,6 +58,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 - 1301 USA*/
|
|
*/
|
|
static int my_getevents(io_context_t ctx, long min_nr, long nr, io_event *ev)
|
|
{
|
|
+#ifdef __NR_io_getevents
|
|
int saved_errno= errno;
|
|
int ret= syscall(__NR_io_getevents, reinterpret_cast<long>(ctx),
|
|
min_nr, nr, ev, 0);
|
|
@@ -67,6 +68,9 @@ static int my_getevents(io_context_t ctx, long min_nr, long nr, io_event *ev)
|
|
errno= saved_errno;
|
|
}
|
|
return ret;
|
|
+#else
|
|
+ return -ENOSYS;
|
|
+#endif
|
|
}
|
|
|
|
|
|
--
|
|
2.29.2
|
|
|