From: jon@ringle.org
To: ptxdist@pengutronix.de
Cc: Jon Ringle <jringle@gridpoint.com>
Subject: [ptxdist] [PATCH 1/2] systemd: upstream patch: add __nr_statx defines for extra architectures
Date: Tue, 5 Jun 2018 14:26:00 -0400 [thread overview]
Message-ID: <1528223160-9037-2-git-send-email-jon@ringle.org> (raw)
In-Reply-To: <1528223160-9037-1-git-send-email-jon@ringle.org>
From: Jon Ringle <jringle@gridpoint.com>
https://github.com/systemd/systemd/issues/8501
Signed-off-by: Jon Ringle <jringle@gridpoint.com>
---
| 36 ++++++++++++++++++++++
patches/systemd-238/series | 3 +-
2 files changed, 38 insertions(+), 1 deletion(-)
create mode 100644 patches/systemd-238/0004-add-__nr_statx-defines-for-extra-architectures.patch
--git a/patches/systemd-238/0004-add-__nr_statx-defines-for-extra-architectures.patch b/patches/systemd-238/0004-add-__nr_statx-defines-for-extra-architectures.patch
new file mode 100644
index 0000000..3cd8733
--- /dev/null
+++ b/patches/systemd-238/0004-add-__nr_statx-defines-for-extra-architectures.patch
@@ -0,0 +1,36 @@
+From: Jon Ringle <jringle@gridpoint.com>
+Date: Tue, 5 Jun 2018 13:32:27 -0400
+Subject: [PATCH] add __nr_statx defines for extra architectures
+
+This includes:
+ - arm
+ - arm64
+ - alpha
+ - powerpc64
+ - sparc
+
+Taken from kernel 4.16.6
+---
+ src/basic/missing_syscall.h | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
+index 34b8956a122e..86422ced7245 100644
+--- a/src/basic/missing_syscall.h
++++ b/src/basic/missing_syscall.h
+@@ -416,8 +416,14 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) {
+
+ #if !HAVE_STATX
+ # ifndef __NR_statx
+-# if defined __i386__
++# if defined __aarch64__ || defined __arm__
++# define __NR_statx 397
++# elif defined __alpha__
++# define __NR_statx 522
++# elif defined __i386__ || defined __powerpc64__
+ # define __NR_statx 383
++# elif defined __sparc__
++# define __NR_statx 360
+ # elif defined __x86_64__
+ # define __NR_statx 332
+ # else
diff --git a/patches/systemd-238/series b/patches/systemd-238/series
index a82258c..c944349 100644
--- a/patches/systemd-238/series
+++ b/patches/systemd-238/series
@@ -3,4 +3,5 @@
0001-core-don-t-include-libmount.h-in-a-header-file-8580.patch
0002-core-do-not-free-heap-allocated-strings-8391.patch
0003-units-Fix-SuccessAction-that-belongs-to-Unit-section.patch
-# a7dcd36b3678800e0e34e75e553a1837 - git-ptx-patches magic
+0004-add-__nr_statx-defines-for-extra-architectures.patch
+# 6b5baff5bd25fe8378e83fcbe60f9d0c - git-ptx-patches magic
--
1.9.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2018-06-05 18:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-05 18:25 [ptxdist] [PATCH v2] libelf: version bump 0.170 -> 0.171 jon
2018-06-05 18:26 ` jon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1528223160-9037-2-git-send-email-jon@ringle.org \
--to=jon@ringle.org \
--cc=jringle@gridpoint.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox