All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] trinity: fix typo in MIPS' GET_FP_MODE and SET_FP_MODE macros
@ 2015-12-14 15:00 Vicente Olivert Riera
  2015-12-14 15:00 ` [Buildroot] [PATCH 2/2] trinity: add a hash file Vicente Olivert Riera
  2015-12-14 16:55 ` [Buildroot] [PATCH 1/2] trinity: fix typo in MIPS' GET_FP_MODE and SET_FP_MODE macros Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Vicente Olivert Riera @ 2015-12-14 15:00 UTC (permalink / raw)
  To: 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 <Vincent.Riera@imgtec.com>
---
 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 <Vincent.Riera@imgtec.com>
+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 <Vincent.Riera@imgtec.com>
+---
+ 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
+
-- 
2.4.10

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

* [Buildroot] [PATCH 2/2] trinity: add a hash file
  2015-12-14 15:00 [Buildroot] [PATCH 1/2] trinity: fix typo in MIPS' GET_FP_MODE and SET_FP_MODE macros Vicente Olivert Riera
@ 2015-12-14 15:00 ` Vicente Olivert Riera
  2015-12-14 16:55 ` [Buildroot] [PATCH 1/2] trinity: fix typo in MIPS' GET_FP_MODE and SET_FP_MODE macros Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Vicente Olivert Riera @ 2015-12-14 15:00 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/trinity/trinity.hash | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 package/trinity/trinity.hash

diff --git a/package/trinity/trinity.hash b/package/trinity/trinity.hash
new file mode 100644
index 0000000..e290a40
--- /dev/null
+++ b/package/trinity/trinity.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 3ef7ae05dba14f8bb626121983a08bb09d1d51a19de38bd9a8e0f29b11d9e3c9  trinity-v1.6.tar.gz
-- 
2.4.10

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

* [Buildroot] [PATCH 1/2] trinity: fix typo in MIPS' GET_FP_MODE and SET_FP_MODE macros
  2015-12-14 15:00 [Buildroot] [PATCH 1/2] trinity: fix typo in MIPS' GET_FP_MODE and SET_FP_MODE macros Vicente Olivert Riera
  2015-12-14 15:00 ` [Buildroot] [PATCH 2/2] trinity: add a hash file Vicente Olivert Riera
@ 2015-12-14 16:55 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2015-12-14 16:55 UTC (permalink / raw)
  To: buildroot

Dear Vicente Olivert Riera,

On Mon, 14 Dec 2015 15:00:35 +0000, Vicente Olivert Riera wrote:
> 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 <Vincent.Riera@imgtec.com>
> ---
>  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

Both applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2015-12-14 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-14 15:00 [Buildroot] [PATCH 1/2] trinity: fix typo in MIPS' GET_FP_MODE and SET_FP_MODE macros Vicente Olivert Riera
2015-12-14 15:00 ` [Buildroot] [PATCH 2/2] trinity: add a hash file Vicente Olivert Riera
2015-12-14 16:55 ` [Buildroot] [PATCH 1/2] trinity: fix typo in MIPS' GET_FP_MODE and SET_FP_MODE macros Thomas Petazzoni

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.