From patchwork Wed Feb 11 07:10:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 44540 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 177EF21527 for ; Wed, 11 Feb 2015 07:11:00 +0000 (UTC) Received: by lamq1 with SMTP id q1sf974705lam.0 for ; Tue, 10 Feb 2015 23:10:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=5N2Z9kliEPhWziTR3jJfG8EZJWUjlgI2x6LnvCaAHyM=; b=Kgy89ZOIC8rXH8C6yem3jNVLY9aWBVigX8f7568PNimX1BDIkvEdCK5bPFpkaTpFri DWOMcod+xjT7MYOftNfknkWrLE6xtHKdRnZK/lFfU7rus+uEioZXFZu7IEvV9mYzjdWK Rb2Fl0F3Z5g1H54gqY07Lv+chOLfmVlCKBOB9Zhcdn9IlXJEYef1Eis4TKAyX4ZrOPSI DVfzgTQbkPYKlIdGXASF0P3sWC6DI0vKNgjrvWbwcUA4eT4r0hjFB09P6/n+kWEb5ozX ZK4MK4wz6p+lT4toIeEAjGyxQgksLB7onSzX17hHNDixhpcnvgZVmcefCiWRHW67wlLq 2gJQ== X-Gm-Message-State: ALoCoQkcCuSc68zE38M1TUkBpYmQCVDuxbeKPDbCfvhZK6wGhlfvbH01hCbvV7EgEgjQ1O2iDckA X-Received: by 10.181.8.70 with SMTP id di6mr175353wid.5.1423638659082; Tue, 10 Feb 2015 23:10:59 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.168 with SMTP id an8ls25551lac.62.gmail; Tue, 10 Feb 2015 23:10:58 -0800 (PST) X-Received: by 10.152.87.229 with SMTP id bb5mr25891562lab.92.1423638658560; Tue, 10 Feb 2015 23:10:58 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id an4si13669017lac.99.2015.02.10.23.10.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Feb 2015 23:10:58 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by labpv20 with SMTP id pv20so1523774lab.8 for ; Tue, 10 Feb 2015 23:10:58 -0800 (PST) X-Received: by 10.112.135.196 with SMTP id pu4mr26166842lbb.41.1423638658170; Tue, 10 Feb 2015 23:10:58 -0800 (PST) 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.112.35.133 with SMTP id h5csp1076633lbj; Tue, 10 Feb 2015 23:10:57 -0800 (PST) X-Received: by 10.140.108.228 with SMTP id j91mr11226373qgf.68.1423638656929; Tue, 10 Feb 2015 23:10:56 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id jl8si15954136qcb.2.2015.02.10.23.10.55 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Feb 2015 23:10:56 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YLRRl-0001ac-Jl; Wed, 11 Feb 2015 07:10:53 +0000 Received: from mail-pd0-f180.google.com ([209.85.192.180]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YLRRc-0001Xq-0e for lng-odp@lists.linaro.org; Wed, 11 Feb 2015 07:10:44 +0000 Received: by pdjz10 with SMTP id z10so2522124pdj.12 for ; Tue, 10 Feb 2015 23:10:38 -0800 (PST) X-Received: by 10.70.50.41 with SMTP id z9mr44052136pdn.31.1423638638645; Tue, 10 Feb 2015 23:10:38 -0800 (PST) Received: from localhost.localdomain ([210.177.145.249]) by mx.google.com with ESMTPSA id zs8sm21442490pac.9.2015.02.10.23.10.36 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Feb 2015 23:10:37 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 11 Feb 2015 10:10:01 +0300 Message-Id: <1423638605-6342-3-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 In-Reply-To: <1423638605-6342-1-git-send-email-maxim.uvarov@linaro.org> References: <1423638605-6342-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 2/6] linux-generic: move api version to c file X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Api version is defined as non static. Move it to c file. Signed-off-by: Maxim Uvarov --- platform/linux-generic/Makefile.am | 1 + platform/linux-generic/include/odp/version.h | 14 -------------- platform/linux-generic/odp_version.c | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 platform/linux-generic/odp_version.c diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index c24d59d..16adccc 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -161,4 +161,5 @@ __LIB__libodp_la_SOURCES = \ odp_ticketlock.c \ odp_time.c \ odp_timer.c \ + odp_version.c \ odp_weak.c diff --git a/platform/linux-generic/include/odp/version.h b/platform/linux-generic/include/odp/version.h index f29320a..c98cb30 100644 --- a/platform/linux-generic/include/odp/version.h +++ b/platform/linux-generic/include/odp/version.h @@ -18,20 +18,6 @@ extern "C" { #endif #include - -/** @ingroup odp_ver_abt_log_dbg - * @{ - */ - -static inline const char *odp_version_api_str(void) -{ - return ODP_VERSION_API_STR; -} - -/** - * @} - */ - #include #ifdef __cplusplus diff --git a/platform/linux-generic/odp_version.c b/platform/linux-generic/odp_version.c new file mode 100644 index 0000000..0a57b5e --- /dev/null +++ b/platform/linux-generic/odp_version.c @@ -0,0 +1,17 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif + +#include +#include + +const char *odp_version_api_str(void) +{ + return ODP_VERSION_API_STR; +}