trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: trinity@vger.kernel.org
Subject: [PATCH 1/2] Fix build break when SYS_memfd_create doesn't exist
Date: Wed, 10 Sep 2014 14:26:53 +1000	[thread overview]
Message-ID: <1410323214-23324-1-git-send-email-mpe@ellerman.id.au> (raw)

In memfd_create() if SYS_memfd_create is not defined then uname and
flag are unused and gcc complains.
---
 fd-memfd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fd-memfd.c b/fd-memfd.c
index 2d16427a2b40..583d8ed1f373 100644
--- a/fd-memfd.c
+++ b/fd-memfd.c
@@ -17,8 +17,9 @@
 #include "sanitise.h"
 #include "shm.h"
 #include "compat.h"
+#include "trinity.h"
 
-static int memfd_create(const char *uname, unsigned int flag)
+static int memfd_create(__unused__ const char *uname, __unused__ unsigned int flag)
 {
 #ifdef SYS_memfd_create
 	return syscall(SYS_memfd_create, uname, flag);
-- 
1.9.1

             reply	other threads:[~2014-09-10  4:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-10  4:26 Michael Ellerman [this message]
2014-09-10  4:26 ` [PATCH 2/2] Fix powerpc build on Ubuntu Michael Ellerman

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=1410323214-23324-1-git-send-email-mpe@ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=trinity@vger.kernel.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).