From patchwork Fri Aug 21 14:50:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tulio Magno Quites Machado Filho X-Patchwork-Id: 8336 X-Patchwork-Delegate: tuliom@linux.vnet.ibm.com Received: (qmail 74363 invoked by alias); 21 Aug 2015 14:50:46 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 74352 invoked by uid 89); 21 Aug 2015 14:50:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL, BAYES_40, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: e24smtp05.br.ibm.com X-MailFrom: tuliom@linux.vnet.ibm.com X-RcptTo: libc-alpha@sourceware.org From: "Tulio Magno Quites Machado Filho" To: hjl.tools@gmail.com Cc: libc-alpha@sourceware.org Subject: [PATCH] Force type cast in INLINE_SYSCALL_RETURN Date: Fri, 21 Aug 2015 11:50:12 -0300 Message-Id: <1440168612-30763-1-git-send-email-tuliom@linux.vnet.ibm.com> In-Reply-To: References: X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15082114-0033-0000-0000-000003491A38 "H.J. Lu" writes: > diff --git a/sysdeps/unix/sysdep.h b/sysdeps/unix/sysdep.h > index 52dad58..c4316db 100644 > --- a/sysdeps/unix/sysdep.h > +++ b/sysdeps/unix/sysdep.h > @@ -73,3 +73,22 @@ > #ifndef INLINE_SYSCALL > #define INLINE_SYSCALL(name, nr, args...) __syscall_##name (args) > #endif > + > +/* Similar to INLINE_SYSCALL, but with return type. It should only be > + used with function return. */ > +#ifndef INLINE_SYSCALL_RETURN > +#define INLINE_SYSCALL_RETURN(name, nr, type, args...) \ > + INLINE_SYSCALL (name, nr, args) > +#endif This is breaking the build on ppc. Did you mean to cast the return value from INLINE_SYSCALL? 8<---------- Fix the build on ppc by casting the return value from INLINE_SYSCALL. 2015-08-21 Tulio Magno Quites Machado Filho * sysdeps/unix/sysdep.h (INLINE_SYSCALL_RETURN): Force the cast of the return value from INLINE_SYSCALL. --- sysdeps/unix/sysdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysdep.h b/sysdeps/unix/sysdep.h index c4316db..7892ec4 100644 --- a/sysdeps/unix/sysdep.h +++ b/sysdeps/unix/sysdep.h @@ -78,7 +78,7 @@ used with function return. */ #ifndef INLINE_SYSCALL_RETURN #define INLINE_SYSCALL_RETURN(name, nr, type, args...) \ - INLINE_SYSCALL (name, nr, args) + (type) INLINE_SYSCALL (name, nr, args) #endif /* Set error number and return value. It should only be used with