From patchwork Wed May 18 15:15:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 68051 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp2693991qge; Wed, 18 May 2016 08:15:59 -0700 (PDT) X-Received: by 10.140.134.134 with SMTP id 128mr8633261qhg.63.1463584559005; Wed, 18 May 2016 08:15:59 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f103si7095168qki.238.2016.05.18.08.15.58; Wed, 18 May 2016 08:15:58 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 6DBF5617E3; Wed, 18 May 2016 15:15:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 66F56617D8; Wed, 18 May 2016 15:15:54 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7F080617DE; Wed, 18 May 2016 15:15:52 +0000 (UTC) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by lists.linaro.org (Postfix) with ESMTPS id 83E7E6161C for ; Wed, 18 May 2016 15:15:50 +0000 (UTC) Received: by mail-lf0-f49.google.com with SMTP id j8so21387217lfd.2 for ; Wed, 18 May 2016 08:15:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=so1hk+M5qXUFYYFybo6eytPF0RoE69zj/fbt0GwPa6Q=; b=iOHvdVB4pOWFGKF02pIbHpwmhYsfiS/34cOT104LvMueUP70wTqyf1cGnNMDp6mjdt 9GuZ8+SO3OetbhgeWzjPysrT4toAaPHtRQEzDu2l1/YpsNeVvBeUYwTxoT9AAsQUPDWU zHrrtxRc7KPmX8pTjoPinMFGZ4wvicaC+edwlOrUyIduPA1EECtE3h4zyNkX6ZmBnylV thFyl57kmXShOaFVYUJMJzN60Q7vc79vd142uD4Is9q/LtDxc7dutBl4imvcoxX48d4i X281QFRL/LifJkm85W8Ha8w0ub1Qj+opC/0+/n6JCMye8to9e7SMf41tYNa9Mi4Y2uAz jsSA== X-Gm-Message-State: AOPr4FXf98xzsc5SvB/Wk0bKdran0OB3bpR4OCKWb/sk2sF/evE95sU8bXlcYcsUwHsfImmF15E= X-Received: by 10.25.88.14 with SMTP id m14mr2437048lfb.156.1463584549140; Wed, 18 May 2016 08:15:49 -0700 (PDT) Received: from localhost.localdomain (ppp91-77-173-31.pppoe.mtu-net.ru. [91.77.173.31]) by smtp.gmail.com with ESMTPSA id r3sm1482642lbj.26.2016.05.18.08.15.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 May 2016 08:15:48 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 18 May 2016 18:15:33 +0300 Message-Id: <1463584533-24004-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: timers patch Subject: [lng-odp] [PATCH] linux-generic: timer: disable 128 bit timer optimization for clang X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Fix compilation error for clang with disabling 128 bit optimization. In function `_odp_atomic_u128_xchg_mm': undefined reference to `__atomic_exchange' Signed-off-by: Maxim Uvarov --- I need some quick way to make clang build happy. Clean patch can go later. Maxim. platform/linux-generic/include/odp_atomic_internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/include/odp_atomic_internal.h b/platform/linux-generic/include/odp_atomic_internal.h index 3c5606c..31c8059 100644 --- a/platform/linux-generic/include/odp_atomic_internal.h +++ b/platform/linux-generic/include/odp_atomic_internal.h @@ -590,7 +590,9 @@ static inline void _odp_atomic_flag_clear(_odp_atomic_flag_t *flag) /* Check if target and compiler supports 128-bit scalars and corresponding * exchange and CAS operations */ /* GCC on x86-64 needs -mcx16 compiler option */ -#if defined __SIZEOF_INT128__ && defined __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 +#if defined(__SIZEOF_INT128__) && \ + defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16) && \ + !defined(__clang__) /** Preprocessor symbol that indicates support for 128-bit atomics */ #define ODP_ATOMIC_U128