From patchwork Mon Dec 14 15:00:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Olivert Riera X-Patchwork-Id: 556535 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 399B4140311 for ; Tue, 15 Dec 2015 02:01:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5A22632E74; Mon, 14 Dec 2015 15:01:02 +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 G3N6oO+aJOai; Mon, 14 Dec 2015 15:00:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8709232E4A; Mon, 14 Dec 2015 15:00:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 559CD1CF29C for ; Mon, 14 Dec 2015 15:00:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A54B4948B1 for ; Mon, 14 Dec 2015 15:00:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7bkeIEPHI8k9 for ; Mon, 14 Dec 2015 15:00:51 +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 hemlock.osuosl.org (Postfix) with ESMTP id DB35A94A86 for ; Mon, 14 Dec 2015 15:00:50 +0000 (UTC) Received: from hhmail02.hh.imgtec.org (unknown [10.100.10.20]) by Websense Email Security Gateway with ESMTPS id 0ED493ECD9167 for ; Mon, 14 Dec 2015 15:00:46 +0000 (GMT) Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by hhmail02.hh.imgtec.org (10.100.10.20) with Microsoft SMTP Server (TLS) id 14.3.235.1; Mon, 14 Dec 2015 15:00:49 +0000 Received: from vriera-linux.le.imgtec.org (192.168.154.114) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.210.2; Mon, 14 Dec 2015 15:00:48 +0000 From: Vicente Olivert Riera To: Date: Mon, 14 Dec 2015 15:00:35 +0000 Message-ID: <1450105236-11224-1-git-send-email-Vincent.Riera@imgtec.com> X-Mailer: git-send-email 2.4.10 MIME-Version: 1.0 X-Originating-IP: [192.168.154.114] Subject: [Buildroot] [PATCH 1/2] trinity: fix typo in MIPS' GET_FP_MODE and SET_FP_MODE macros 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" Add a patch to fix a typo in the syscalls/prctl.c file. The PR_GET_FP_MODE and PR_SET_FP_MODE macros are defined in include/compat.h, but then syscalls/prctl.c tries to use GET_FP_MODE and SET_FP_MODE. It's lacking the PR_ preffix, and this is causing build failures like this one: CC syscalls/prctl.o syscalls/prctl.c:37:2: error: 'GET_FP_MODE' undeclared here (not in a function) GET_FP_MODE, SET_FP_MODE, ^ syscalls/prctl.c:37:15: error: 'SET_FP_MODE' undeclared here (not in a function) GET_FP_MODE, SET_FP_MODE, ^ This patch has been sent upstream. Fixes: http://autobuild.buildroot.net/results/12f/12f3144b5d99aa1872f6073f3aaac7f8a9c5cfdc/ Signed-off-by: Vicente Olivert Riera --- package/trinity/0001-mips-fix-prctl-s.patch | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/trinity/0001-mips-fix-prctl-s.patch diff --git a/package/trinity/0001-mips-fix-prctl-s.patch b/package/trinity/0001-mips-fix-prctl-s.patch new file mode 100644 index 0000000..aacd8d5 --- /dev/null +++ b/package/trinity/0001-mips-fix-prctl-s.patch @@ -0,0 +1,39 @@ +From d61dd102b95b9791e45d6bbf1e34814b8c6c1731 Mon Sep 17 00:00:00 2001 +From: Vicente Olivert Riera +Date: Mon, 14 Dec 2015 14:46:37 +0000 +Subject: [PATCH] mips: fix prctl's + +It looks like a typo in the syscalls/prctl.c file. It's lacking the PR_ +preffix, and due to that is causing build failures like this one: + + CC syscalls/prctl.o +syscalls/prctl.c:37:2: error: 'GET_FP_MODE' undeclared here (not in a +function) + GET_FP_MODE, SET_FP_MODE, + ^ +syscalls/prctl.c:37:15: error: 'SET_FP_MODE' undeclared here (not +in a function) + GET_FP_MODE, SET_FP_MODE, + ^ + +Signed-off-by: Vicente Olivert Riera +--- + syscalls/prctl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/syscalls/prctl.c b/syscalls/prctl.c +index 523f03e..5a64fb3 100644 +--- a/syscalls/prctl.c ++++ b/syscalls/prctl.c +@@ -34,7 +34,7 @@ static int prctl_opts[] = { + PR_GET_NO_NEW_PRIVS, PR_GET_TID_ADDRESS, PR_SET_THP_DISABLE, PR_GET_THP_DISABLE, + PR_MPX_ENABLE_MANAGEMENT, PR_MPX_DISABLE_MANAGEMENT, + #ifdef __mips__ +- GET_FP_MODE, SET_FP_MODE, ++ PR_GET_FP_MODE, PR_SET_FP_MODE, + #endif + PR_CAP_AMBIENT, + }; +-- +2.4.10 +