From patchwork Mon Feb 16 14:28:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 44700 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D876821544 for ; Mon, 16 Feb 2015 14:30:37 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e53sf20227926eek.3 for ; Mon, 16 Feb 2015 06:30:37 -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=KA0i1/IMQEgtrML34pB62eRqKbuqBwqLN58xvVwH5mWX6hEbocm4B22mmTnxjEFwlW YQOxUo/U0ECVuanfUT4K66UHbeQ2Brdfig7cLxC6sTy08O0vvie6+CjwLN5MTpcNBNx9 5TR5/zZxAen5pHFeIYS++5Z9PQvVGl6hvpzyeBqDQTXuoI/m3w2N3k26pqaEXFE3Wwy9 MvoQE0y0oA0Fzcfi9DfJ6r0oWi4e7fx77LzGLyXJ+T0qXrvUynp52ZAX1e955VeDxsOq 8aaCpuBioFHUYbcg7Txx4s7lXBPMH8Rsy4XPbkucYSmUSWWyJkNhXGrlQp7uEzu4hHOG Dx+g== X-Gm-Message-State: ALoCoQmgUvc2O66Ga3IJFCJ324CsuuNpDtaVZdJ1ymU6bH+o4rQoKJRBG6y70Qs/HToaxKhpftDF X-Received: by 10.194.178.234 with SMTP id db10mr2977106wjc.2.1424097037043; Mon, 16 Feb 2015 06:30:37 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.231 with SMTP id bb7ls293754lab.50.gmail; Mon, 16 Feb 2015 06:30:36 -0800 (PST) X-Received: by 10.112.172.131 with SMTP id bc3mr22879651lbc.79.1424097036797; Mon, 16 Feb 2015 06:30:36 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id pq3si7436695lbb.146.2015.02.16.06.30.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Feb 2015 06:30:36 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lams18 with SMTP id s18so29102977lam.11 for ; Mon, 16 Feb 2015 06:30:36 -0800 (PST) X-Received: by 10.152.43.51 with SMTP id t19mr11359438lal.73.1424097036472; Mon, 16 Feb 2015 06:30:36 -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 h5csp1617100lbj; Mon, 16 Feb 2015 06:30:35 -0800 (PST) X-Received: by 10.140.88.17 with SMTP id s17mr558315qgd.79.1424097035191; Mon, 16 Feb 2015 06:30:35 -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 m97si1138419qgm.37.2015.02.16.06.30.34 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 16 Feb 2015 06:30:35 -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 1YNMgy-0006lt-53; Mon, 16 Feb 2015 14:30:32 +0000 Received: from mail-la0-f52.google.com ([209.85.215.52]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YNMgs-0006lQ-EV for lng-odp@lists.linaro.org; Mon, 16 Feb 2015 14:30:26 +0000 Received: by lams18 with SMTP id s18so29071647lam.13 for ; Mon, 16 Feb 2015 06:30:20 -0800 (PST) X-Received: by 10.112.205.68 with SMTP id le4mr1668252lbc.96.1424097020819; Mon, 16 Feb 2015 06:30:20 -0800 (PST) Received: from localhost.localdomain (broadband-46-188-125-106.2com.net. [46.188.125.106]) by mx.google.com with ESMTPSA id cb5sm2972712lad.3.2015.02.16.06.30.13 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Feb 2015 06:30:19 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 16 Feb 2015 17:28:03 +0300 Message-Id: <1424096886-2645-3-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 In-Reply-To: <1424096886-2645-1-git-send-email-maxim.uvarov@linaro.org> References: <1424096886-2645-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 2/5] 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.43 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; +}