public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
From: Marcus Shawcroft <marcus.shawcroft@linaro.org>
To: libc-ports@sourceware.org
Subject: [PATCH] AArch64 Resolve warnings for defined but unused _x0 and sc_err symbols.
Date: Fri, 07 Dec 2012 12:59:00 -0000	[thread overview]
Message-ID: <CABXK9nc6E9nN1OcHPt+YzfSC_-8vny68MXReYtGjqUjUc0N9KA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

This patch resolves  the compiler warnings for defined but unused _x0
and sc_err symbols...

/Marcus

2012-12-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>

	* sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):
	Remove _x0 and sc_err declarations.

[-- Attachment #2: 0003-aarch64-Resolve-sc_err-and-_x0-defined-but-not-used-.patch --]
[-- Type: application/octet-stream, Size: 788 bytes --]

diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h b/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
index 62871d4..67132e3 100644
--- a/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
@@ -208,12 +208,10 @@ __local_syscall_error:						\
     __label__ out;							      \
     __label__ iserr;							      \
     long sc_ret;							      \
-    long sc_err;							      \
     INTERNAL_SYSCALL_DECL (sc_err);					      \
 									      \
     if (__vdso_##name != NULL)						      \
       {									      \
-	register long _x0 asm ("x0");					      \
 	sc_ret = INTERNAL_VSYSCALL_NCS (__vdso_##name, sc_err, nr, ##args);   \
 	if (!INTERNAL_SYSCALL_ERROR_P (sc_ret, sc_err))			      \
 	  goto out;							      \
-- 
1.7.11.5


                 reply	other threads:[~2012-12-07 12:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CABXK9nc6E9nN1OcHPt+YzfSC_-8vny68MXReYtGjqUjUc0N9KA@mail.gmail.com \
    --to=marcus.shawcroft@linaro.org \
    --cc=libc-ports@sourceware.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).