From patchwork Tue Feb 17 12:06:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 44742 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9DA1521544 for ; Tue, 17 Feb 2015 12:06:59 +0000 (UTC) Received: by lbiw7 with SMTP id w7sf2646139lbi.0 for ; Tue, 17 Feb 2015 04:06:58 -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=EaS98v0Vl8G8+N14UJS6pODhygUMgJrROz+KqE8rFlg=; b=ZxIvu1WWYprH57PoxJ9OFaKM0Fh6hJ7uCN/6sUSextFbVUkcrxu35NpmQmBqoW57Xd iF09E78pBQmAq46EBUUiSjw3Edl2lpra2ZaELeQEAkNYJTL8rocnA3trnz/bMT3pMJW/ ywdjDzlLuvkMMg5/lIupcTspuNaXVAFYDjrwJPLWS3slQ7wkrH+nAVPBlPx5AvxXI8Bp 7tztFG/2mFo3pZ6Nrm+th8dPlwQcWEBEZYhzBG0xHirKDsAsMAq1e/ohYogSF97LIgTj jwBx6Y20bw22vEJB6kGJuuTnhudkUBCqi1LJtiwzrpKHfxcLWdzuCBBzPt8ZuksqDsFg czFw== X-Gm-Message-State: ALoCoQleIP+5N1kOIsRA1yCihqmg265fN/SDJvgO+k82K1gOK21cXb4ZcrtdOehjD163kAoQE1iq X-Received: by 10.112.146.65 with SMTP id ta1mr656473lbb.19.1424174818634; Tue, 17 Feb 2015 04:06:58 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.9 with SMTP id bc9ls314023lab.101.gmail; Tue, 17 Feb 2015 04:06:58 -0800 (PST) X-Received: by 10.112.25.104 with SMTP id b8mr27892192lbg.69.1424174818391; Tue, 17 Feb 2015 04:06:58 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id wl10si9905804lbb.90.2015.02.17.04.06.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Feb 2015 04:06:58 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbjf15 with SMTP id f15so3960274lbj.13 for ; Tue, 17 Feb 2015 04:06:58 -0800 (PST) X-Received: by 10.152.8.33 with SMTP id o1mr28795955laa.56.1424174817953; Tue, 17 Feb 2015 04:06:57 -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 h5csp2162261lbj; Tue, 17 Feb 2015 04:06:57 -0800 (PST) X-Received: by 10.140.151.13 with SMTP id 13mr147218qhx.68.1424174816325; Tue, 17 Feb 2015 04:06: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 i204si9239514qhc.57.2015.02.17.04.06.55 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Feb 2015 04:06: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 1YNgvV-0001IL-DM; Tue, 17 Feb 2015 12:06:53 +0000 Received: from mail-lb0-f176.google.com ([209.85.217.176]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YNgvM-0001Gw-EI for lng-odp@lists.linaro.org; Tue, 17 Feb 2015 12:06:44 +0000 Received: by lbvn10 with SMTP id n10so3984058lbv.6 for ; Tue, 17 Feb 2015 04:06:38 -0800 (PST) X-Received: by 10.152.204.69 with SMTP id kw5mr23983015lac.3.1424174798678; Tue, 17 Feb 2015 04:06:38 -0800 (PST) Received: from localhost.localdomain ([188.92.105.210]) by mx.google.com with ESMTPSA id le6sm3517325lac.40.2015.02.17.04.06.36 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Feb 2015 04:06:37 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 17 Feb 2015 15:06:07 +0300 Message-Id: <1424174768-8163-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 In-Reply-To: <1424174768-8163-1-git-send-email-maxim.uvarov@linaro.org> References: <1424174768-8163-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 1/2] 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.217.176 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 odp_version_api_str() in odp api defined as non static function and there should be implementation in c file. https://bugs.linaro.org/show_bug.cgi?id=1194 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; +}