From patchwork Tue Nov 4 12:24:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Olivert Riera X-Patchwork-Id: 406584 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id B67C21400A8 for ; Tue, 4 Nov 2014 23:24:40 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 99755336FF; Tue, 4 Nov 2014 12:24:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nzIderT-DLzp; Tue, 4 Nov 2014 12:24:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 0ED5B33764; Tue, 4 Nov 2014 12:24:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id C60E91C2866 for ; Tue, 4 Nov 2014 12:24:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C30B2336FF for ; Tue, 4 Nov 2014 12:24:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r7glNWLkdGKD for ; Tue, 4 Nov 2014 12:24:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by silver.osuosl.org (Postfix) with ESMTP id CD0C12657A for ; Tue, 4 Nov 2014 12:24:32 +0000 (UTC) Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id EDF66D3671AB1 for ; Tue, 4 Nov 2014 12:24:28 +0000 (GMT) Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 4 Nov 2014 12:24:30 +0000 Received: from localhost.localdomain (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.210.2; Tue, 4 Nov 2014 12:24:30 +0000 From: Vicente Olivert Riera To: Date: Tue, 4 Nov 2014 12:24:21 +0000 Message-ID: <1415103861-64413-2-git-send-email-Vincent.Riera@imgtec.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1415103861-64413-1-git-send-email-Vincent.Riera@imgtec.com> References: <1415103861-64413-1-git-send-email-Vincent.Riera@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [192.168.154.104] Subject: [Buildroot] [PATCH 2/2] systemd: Properly define the __NR_memfd_create macro for MIPS X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This is an upstream patch which has been applied to the master branch and I have adapted it to make it apply to the v216 version. v217 is not fixed. This patch can be removed when we bump to v218. Upstream commit: http://cgit.freedesktop.org/systemd/systemd/commit/?id=e6c019026b8cfd27a997e6e6ed1349f8f289b7e2 Fixes: http://autobuild.buildroot.net/results/596/59617a822fb2c8961881dd78a0dc8e41bdb14ede/ Signed-off-by: Vicente Olivert Riera --- ...fine-the-__NR_memfd_create-macro-for-MIPS.patch | 60 ++++++++++++++++++++ 1 files changed, 60 insertions(+), 0 deletions(-) create mode 100644 package/systemd/0004-Properly-define-the-__NR_memfd_create-macro-for-MIPS.patch diff --git a/package/systemd/0004-Properly-define-the-__NR_memfd_create-macro-for-MIPS.patch b/package/systemd/0004-Properly-define-the-__NR_memfd_create-macro-for-MIPS.patch new file mode 100644 index 0000000..6aca13c --- /dev/null +++ b/package/systemd/0004-Properly-define-the-__NR_memfd_create-macro-for-MIPS.patch @@ -0,0 +1,60 @@ +Properly define the __NR_memfd_create macro for MIPS + +This is an upstream patch which has been applied to the master branch +and I have adapted it to make it apply to the v216 version. + +Upstream commit: + http://cgit.freedesktop.org/systemd/systemd/commit/?id=e6c019026b8cfd27a997e6e6ed1349f8f289b7e2 + +Signed-off-by: Vicente Olivert Riera + +From cdd25569e583ccfff3aef0eda175a2d07c00f859 Mon Sep 17 00:00:00 2001 +From: Vicente Olivert Riera +Date: Tue, 4 Nov 2014 10:49:58 +0000 +Subject: [PATCH] Properly define the __NR_memfd_create macro for MIPS + +This macro exists for MIPS since v3.17: + https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=42944521af97a3b25516f15f3149aec3779656dc + +Signed-off-by: Vicente Olivert Riera +--- + src/shared/missing.h | 9 +++++++++ + 1 files changed, 9 insertions(+), 0 deletions(-) + +diff --git a/src/shared/missing.h b/src/shared/missing.h +index 3ff1a21..6888163 100644 +--- a/src/shared/missing.h ++++ b/src/shared/missing.h +@@ -152,6 +152,9 @@ static inline int pivot_root(const char *new_root, const char *put_old) { + # ifndef __NR_fanotify_mark + # define __NR_fanotify_mark 4337 + # endif ++# ifndef __NR_memfd_create ++# define __NR_memfd_create 4354 ++# endif + # elif _MIPS_SIM == _MIPS_SIM_NABI32 + # ifndef __NR_fanotify_init + # define __NR_fanotify_init 6300 +@@ -159,6 +162,9 @@ static inline int pivot_root(const char *new_root, const char *put_old) { + # ifndef __NR_fanotify_mark + # define __NR_fanotify_mark 6301 + # endif ++# ifndef __NR_memfd_create ++# define __NR_memfd_create 6318 ++# endif + # elif _MIPS_SIM == _MIPS_SIM_ABI64 + # ifndef __NR_fanotify_init + # define __NR_fanotify_init 5295 +@@ -166,6 +172,9 @@ static inline int pivot_root(const char *new_root, const char *put_old) { + # ifndef __NR_fanotify_mark + # define __NR_fanotify_mark 5296 + # endif ++# ifndef __NR_memfd_create ++# define __NR_memfd_create 5314 ++# endif + # endif + #else + # ifndef __NR_fanotify_init +-- +1.7.1 +