From patchwork Fri Jul 4 15:14:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 33108 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E4F3920C88 for ; Fri, 4 Jul 2014 15:14:43 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id eu11sf10770265pac.10 for ; Fri, 04 Jul 2014 08:14:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results; bh=3ivAzkMTYJaXg7O+rvXvIm9bFR1M0Tffx0qMn1Tf1io=; b=iyo8EwtdqBVSP9tuG2AJhiIxDLsBMdLCLNPRGq4k0TO6PSkHDHXNO3sMlnen9reX7n gFhI10XSpXAlCGDeyyzhB0bqnL9whqlFM875Bw/VeQxFHXjLVHQiHs/SscI56btD1BDD +s4sXck8wkOZVV548ggpfNQrTGTFeGR9jopX+t3dfw/gdLcEBNuAnx0PJQlF25vMZGmM J68s+JIc0IaWhg4h+AeWHm7aih14iP5RNCjPf7trzWGlSCpdPCffZ8Hu4QUVCJ1IUst6 d742hzmvkSImZMJZM/OraiYvCBrXb1IbceMTz4xz/EAXfvo8mplx/7LHBpjAhkb4BfhB yslQ== X-Gm-Message-State: ALoCoQm5L/Ad/ITrIXi+lvLZhq5ylrD006avGilEBDJwkxXb4ngH1NEeDS97L5sUEfHyYMq1JEeJ X-Received: by 10.70.92.98 with SMTP id cl2mr5226969pdb.6.1404486883172; Fri, 04 Jul 2014 08:14:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.19.173 with SMTP id 42ls925332qgh.27.gmail; Fri, 04 Jul 2014 08:14:43 -0700 (PDT) X-Received: by 10.220.190.197 with SMTP id dj5mr10025774vcb.19.1404486883079; Fri, 04 Jul 2014 08:14:43 -0700 (PDT) Received: from mail-ve0-x22d.google.com (mail-ve0-x22d.google.com [2607:f8b0:400c:c01::22d]) by mx.google.com with ESMTPS id xa4si15663194vcb.12.2014.07.04.08.14.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Jul 2014 08:14:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c01::22d as permitted sender) client-ip=2607:f8b0:400c:c01::22d; Received: by mail-ve0-f173.google.com with SMTP id db11so1769474veb.18 for ; Fri, 04 Jul 2014 08:14:43 -0700 (PDT) X-Received: by 10.58.209.7 with SMTP id mi7mr48760vec.80.1404486882996; Fri, 04 Jul 2014 08:14:42 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp472923vcb; Fri, 4 Jul 2014 08:14:42 -0700 (PDT) X-Received: by 10.66.65.169 with SMTP id y9mr51895pas.145.1404486881410; Fri, 04 Jul 2014 08:14:41 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id kv4si35482267pab.78.2014.07.04.08.14.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jul 2014 08:14:41 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-51553-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 17819 invoked by alias); 4 Jul 2014 15:14:31 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 17801 invoked by uid 89); 4 Jul 2014 15:14:30 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f179.google.com X-Received: by 10.195.11.34 with SMTP id ef2mr3840236wjd.123.1404486865481; Fri, 04 Jul 2014 08:14:25 -0700 (PDT) From: Will Newton To: libc-alpha@sourceware.org Subject: [PATCH] ARM: Fix compiler warnings from atomic.h Date: Fri, 4 Jul 2014 16:14:20 +0100 Message-Id: <1404486860-9676-1-git-send-email-will.newton@linaro.org> X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c01::22d as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 __arch_compare_and_exchange_bool_*_int return a boolean so in the dummy implementations for 8, 16 and 64 bits return zero rather than oldval. Zero is used rather than TRUE or FALSE to avoid needing to including any headers for these dummy functions. ChangeLog: 2014-07-04 Will Newton * sysdeps/arm/bits/atomic.h (__arch_compare_and_exchange_bool_8_int): Evaluate to zero. (__arch_compare_and_exchange_bool_16_int): Likewise. (__arch_compare_and_exchange_bool_64_int): Likewise. --- sysdeps/arm/bits/atomic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/arm/bits/atomic.h b/sysdeps/arm/bits/atomic.h index c2d5be5..88cbe67 100644 --- a/sysdeps/arm/bits/atomic.h +++ b/sysdeps/arm/bits/atomic.h @@ -96,10 +96,10 @@ void __arm_link_error (void); For all "bool" routines, we return FALSE if exchange succesful. */ # define __arch_compare_and_exchange_bool_8_int(mem, newval, oldval, model) \ - ({__arm_link_error (); oldval; }) + ({__arm_link_error (); 0; }) # define __arch_compare_and_exchange_bool_16_int(mem, newval, oldval, model) \ - ({__arm_link_error (); oldval; }) + ({__arm_link_error (); 0; }) # define __arch_compare_and_exchange_bool_32_int(mem, newval, oldval, model) \ ({ \ @@ -109,7 +109,7 @@ void __arm_link_error (void); }) # define __arch_compare_and_exchange_bool_64_int(mem, newval, oldval, model) \ - ({__arm_link_error (); oldval; }) + ({__arm_link_error (); 0; }) # define __arch_compare_and_exchange_val_8_int(mem, newval, oldval, model) \ ({__arm_link_error (); oldval; })