All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Xenomai core <Xenomai-core@domain.hid>
Subject: [Xenomai-core] [PULL] x86: Fix return type of DO_SYSCALL_INNER macro
Date: Fri, 29 Apr 2011 14:19:48 +0200	[thread overview]
Message-ID: <4DBAACE4.9030307@domain.hid> (raw)

The following changes since commit 985cf80d202f97e32ae45957f2bfca764e3eb243:

  nios2: fix pipeline patch for 2.6.35-mmu -- take #2 (2011-04-29 11:34:11 +0200)

are available in the git repository at:
  git://git.xenomai.org/xenomai-jki.git for-upstream

Jan Kiszka (1):
      x86: Fix return type of DO_SYSCALL_INNER macro

 include/asm-x86/syscall.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

---

x86: Fix return type of DO_SYSCALL_INNER macro

gcc will complain about 'conversion to ‘int’ from ‘long int’ may alter
its value' with -Wconversion as DO_SYSCALL treats the return value of
DO_SYSCALL_INNER as int. Align DO_SYSCALL_INNER to its user.

Signed-off-by: Jan Kiszka <jan.kiszka@domain.hid>
---
 include/asm-x86/syscall.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/asm-x86/syscall.h b/include/asm-x86/syscall.h
index 06195c9..b02c01d 100644
--- a/include/asm-x86/syscall.h
+++ b/include/asm-x86/syscall.h
@@ -386,7 +386,7 @@ static inline void __xn_get_ebp(void **dest)
 		: "=a" (__resultvar)		\
 		: "0" (name) ASM_ARGS_##nr	\
 		: "memory", "cc", "r11", "cx");	\
-	(long) __resultvar;			\
+	(int) __resultvar;			\
 })
 
 #define DO_SYSCALL(name, nr, args...)					\
-- 
1.7.1


                 reply	other threads:[~2011-04-29 12:19 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=4DBAACE4.9030307@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=Xenomai-core@domain.hid \
    /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 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.