From patchwork Thu Mar 27 15:32:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 27205 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-bk0-f69.google.com (mail-bk0-f69.google.com [209.85.214.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9C855202FA for ; Thu, 27 Mar 2014 15:32:18 +0000 (UTC) Received: by mail-bk0-f69.google.com with SMTP id mx12sf7571900bkb.4 for ; Thu, 27 Mar 2014 08:32:17 -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:from:to:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type; bh=EAPJFZVv3ZbwSoBjT6txiLAu4azcG/epp3AKEdwHMoo=; b=R1w+PvG9HkIMbK41R21Tq0gk5xaWi92dNgiMKzBFOsIwEx5B5narani9/yMw+UWafA ouG5uMjdfLg5vfZSUZm30A1HQ/qCx8gqMkOWa8GBfo7oCnp0ABV8SipwH+eCLTzPNDFV F5MQZW7jtUn3wV4T417NKB112Gwe+lg0Y38h/21ipUqKzFCSkf+Tv9NJDAXyfrRMUSk7 OjKXblTrD5UozSa7oLqWlTXpFFBAXDhc2TDeADENXYb+T3QLCx+kyDgj9jdNfX66kDxx dmVdukItdQwfevDJLbMnPNPl3tVjflQOBlLrf1tdx+07y6veDfLbh6Ep2yKuShAn04Ew hNfg== X-Gm-Message-State: ALoCoQntsh3kSpgrgURN+2bTGWhLFJKk673YFXY2zDC1EbZxOfU5Kkx7Nqd507xByXzMnX2TNLmL X-Received: by 10.180.198.146 with SMTP id jc18mr2111803wic.4.1395934337404; Thu, 27 Mar 2014 08:32:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: lng-odp@linaro.org Received: by 10.152.234.35 with SMTP id ub3ls172400lac.63.gmail; Thu, 27 Mar 2014 08:32:17 -0700 (PDT) X-Received: by 10.152.6.72 with SMTP id y8mr28156lay.72.1395934337149; Thu, 27 Mar 2014 08:32:17 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by mx.google.com with ESMTPS id 1si1539583lam.237.2014.03.27.08.32.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 08:32:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.49 is neither permitted nor denied by best guess record for domain of maxim.uvarov@linaro.org) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id mc6so2679507lab.8 for ; Thu, 27 Mar 2014 08:32:16 -0700 (PDT) X-Received: by 10.152.23.169 with SMTP id n9mr1335405laf.45.1395934336635; Thu, 27 Mar 2014 08:32:16 -0700 (PDT) Received: from localhost.localdomain ([81.200.0.212]) by mx.google.com with ESMTPSA id f9sm2264481laa.8.2014.03.27.08.32.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 08:32:15 -0700 (PDT) From: Maxim Uvarov To: lng-odp@linaro.org Subject: [lng-odp] [ODP/PATCH] make asm includes C99 standard friendly Date: Thu, 27 Mar 2014 19:32:15 +0400 Message-Id: <1395934335-19518-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.215.49 is neither permitted nor denied by best guess record for domain of maxim.uvarov@linaro.org) smtp.mail=maxim.uvarov@linaro.org Precedence: list Mailing-list: list lng-odp@linaro.org; contact lng-odp+owners@linaro.org List-ID: X-Google-Group-Id: 474323889996 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , asm is not defined with -std=c99 use __asm__ instead. Signed-off-by: Maxim Uvarov --- include/odp_sync.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/odp_sync.h b/include/odp_sync.h index e5bd0fb..cf56faa 100644 --- a/include/odp_sync.h +++ b/include/odp_sync.h @@ -29,15 +29,15 @@ static inline void odp_sync_stores(void) { #if defined __x86_64__ || defined __i386__ - asm __volatile__ ("sfence\n" : : : "memory"); + __asm__ __volatile__ ("sfence\n" : : : "memory"); #elif defined __arm__ - asm __volatile__ ("dmb st" : : : "memory"); + __asm__ __volatile__ ("dmb st" : : : "memory"); #elif defined __OCTEON__ - asm __volatile__ ("syncws\n" : : : "memory"); + __asm__ __volatile__ ("syncws\n" : : : "memory"); #else __sync_synchronize();