From patchwork Thu Feb 26 12:21:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 45163 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0CE0721487 for ; Thu, 26 Feb 2015 12:21:28 +0000 (UTC) Received: by wghk14 with SMTP id k14sf7717532wgh.0 for ; Thu, 26 Feb 2015 04:21:27 -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:cc: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=89D5lQ8zOSnHXNccBby7WIGdMfrzu6tM/2dk7O+HoG0=; b=EPB4i3G3TLivg0PWroyflguG2l1LeTNtKalVgWgpKkBgP/Xa8IYAVC14aR6I4kJV/D tKpI6riXD4Uf4a4dZrHnp1I15cIQ5gisFMJkbrde3ScNkC1/WBVyEQsiCWAxpXd/arso Fb5VLiIOlYDE8wUK2haftQFEZF0p30636SXiQ+w+8rYdukeuSm6iqmX5L5FISCfFjc5p kH99m91+UUWB2RMXsGQTB3x/rqeBhpkBMeeJLTm5soPVBecwe2BLgFCUDKu9xLbfnWGx LOlFMfzk9aCRllYKZWVpWWbyhyDDIWA1k+WxXPnBrdbLuWkRRIcaYNu1a1wwQmqGYWy4 hTjQ== X-Gm-Message-State: ALoCoQmW6oEISgl/pkOaagQPvy9/MHUUu4gRi2V+OsYybrLSauAdKtNHdZBQLPEsdLSst8kf4OeZ X-Received: by 10.180.39.164 with SMTP id q4mr1284395wik.5.1424953287333; Thu, 26 Feb 2015 04:21:27 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.10.132 with SMTP id i4ls26937lab.25.gmail; Thu, 26 Feb 2015 04:21:27 -0800 (PST) X-Received: by 10.112.51.114 with SMTP id j18mr6959161lbo.97.1424953287172; Thu, 26 Feb 2015 04:21:27 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id j1si534842lbc.6.2015.02.26.04.21.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Feb 2015 04:21:27 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lamq1 with SMTP id q1so10548071lam.5 for ; Thu, 26 Feb 2015 04:21:27 -0800 (PST) X-Received: by 10.152.22.67 with SMTP id b3mr6985209laf.117.1424953286976; Thu, 26 Feb 2015 04:21:26 -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 h5csp3261856lbj; Thu, 26 Feb 2015 04:21:26 -0800 (PST) X-Received: by 10.140.234.136 with SMTP id f130mr17929997qhc.49.1424953285552; Thu, 26 Feb 2015 04:21:25 -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 72si569196qhs.6.2015.02.26.04.21.24 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 26 Feb 2015 04:21:25 -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 1YQxRS-0005Rz-As; Thu, 26 Feb 2015 12:21:22 +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 1YQxRN-0005Ru-6Y for lng-odp@lists.linaro.org; Thu, 26 Feb 2015 12:21:17 +0000 Received: by lbiz12 with SMTP id z12so10298427lbi.11 for ; Thu, 26 Feb 2015 04:21:11 -0800 (PST) X-Received: by 10.152.43.51 with SMTP id t19mr7045786lal.73.1424953271117; Thu, 26 Feb 2015 04:21:11 -0800 (PST) Received: from localhost.localdomain ([80.77.38.170]) by mx.google.com with ESMTPSA id it4sm165005lac.3.2015.02.26.04.21.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Feb 2015 04:21:10 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Thu, 26 Feb 2015 14:21:00 +0200 Message-Id: <1424953260-27265-1-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: X-Topics: patch Cc: petri.savolainen@nokia.com Subject: [lng-odp] [PATCHv2] api: hints: move internal hints into a public header 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: taras.kondratiuk@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.49 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 It is useful to have ODP_UNUSED and ODP_DEPRECATED macros in a public header. For example to mark some API as deprecated in future. Signed-off-by: Taras Kondratiuk Reviewed-by: Mike Holmes --- v2: Updated commit name and message. include/odp/api/hints.h | 12 ++++++++++++ platform/linux-generic/include/odp_debug_internal.h | 19 ------------------- 2 files changed, 12 insertions(+), 19 deletions(-) diff --git a/include/odp/api/hints.h b/include/odp/api/hints.h index 4211994..ea67fc4 100644 --- a/include/odp/api/hints.h +++ b/include/odp/api/hints.h @@ -51,6 +51,16 @@ extern "C" { #define ODP_PRINTF_FORMAT(x, y) __attribute__((format(printf, (x), (y)))) /** + * Indicate deprecated variables, functions or types + */ +#define ODP_DEPRECATED __attribute__((__deprecated__)) + +/** + * Intentionally unused variables ot functions + */ +#define ODP_UNUSED __attribute__((__unused__)) + +/** * Branch likely taken */ #define odp_likely(x) __builtin_expect((x), 1) @@ -85,6 +95,8 @@ extern "C" { #define ODP_WEAK_SYMBOL #define ODP_HOT_CODE #define ODP_COLD_CODE +#define ODP_DEPRECATED +#define ODP_UNUSED #define odp_likely(x) #define odp_unlikely(x) #define odp_prefetch(x) diff --git a/platform/linux-generic/include/odp_debug_internal.h b/platform/linux-generic/include/odp_debug_internal.h index 2b643eb..dec5c15 100644 --- a/platform/linux-generic/include/odp_debug_internal.h +++ b/platform/linux-generic/include/odp_debug_internal.h @@ -29,25 +29,6 @@ extern "C" { * @{ */ -#ifdef __GNUC__ - -/** - * Indicate deprecated variables, functions or types - */ -#define ODP_DEPRECATED __attribute__((__deprecated__)) - -/** - * Intentionally unused variables ot functions - */ -#define ODP_UNUSED __attribute__((__unused__)) - -#else - -#define ODP_DEPRECATED -#define ODP_UNUSED - -#endif - /** * Runtime assertion-macro - aborts if 'cond' is false. */