From patchwork Thu Feb 5 09:13:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 44410 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8F4E121173 for ; Thu, 5 Feb 2015 09:14:08 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id ms9sf1099905lab.3 for ; Thu, 05 Feb 2015 01:14:07 -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: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=c+jNSukpbgdQQ9ysRVnI7SRkilHwL54jmp7EiW/w5T8=; b=KRjh4KmWpd8zrDcHH934X8WWLInvd/PgW9Opy5lxCaFqhnFguz+nBK5Wy4LN/8Pe+t yATQQX4ogmF27doPb8a1zferwNfga5IVb7IPsefJHZ9+ywG6E5bkfUlfmIlt8MQFX990 hvVqfWj9yBWcnG7qBMYJ70WTfdtrrqBEk8cN66Qu3fsEkczt/0G3gZqeSOseyZ6Qvk07 bF0yTb1j0CzQ7ipo7YJ1tBwuvgPYMiSubg5gCKinoJaUBGrnw+JQOFhSpBh5Miw0dlmx iPTJuvAUrTx373AlX66xGbTIUsHTFC71qNmxPGu0s1eI7erNbYO7Y0hEfK6yIE+vKFhk seLg== X-Gm-Message-State: ALoCoQkm66O3FFfsr6pUQlCy7rbSkcHbth8KsEI3GNWrRYpur6OZw8aKuvAHPm8lrnUTYIJbrUgr X-Received: by 10.112.148.198 with SMTP id tu6mr311535lbb.3.1423127647159; Thu, 05 Feb 2015 01:14:07 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.136 with SMTP id k8ls129064lak.21.gmail; Thu, 05 Feb 2015 01:14:06 -0800 (PST) X-Received: by 10.112.61.228 with SMTP id t4mr2411825lbr.0.1423127646867; Thu, 05 Feb 2015 01:14:06 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id nz7si3446891lbb.61.2015.02.05.01.14.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Feb 2015 01:14:06 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id p9so5936132lbv.4 for ; Thu, 05 Feb 2015 01:14:06 -0800 (PST) X-Received: by 10.152.219.37 with SMTP id pl5mr2401811lac.6.1423127646402; Thu, 05 Feb 2015 01:14:06 -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 h5csp1016035lbj; Thu, 5 Feb 2015 01:14:05 -0800 (PST) X-Received: by 10.140.19.175 with SMTP id 44mr5621290qgh.79.1423127644973; Thu, 05 Feb 2015 01:14:04 -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 l4si5427689qay.75.2015.02.05.01.14.02 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Feb 2015 01:14:04 -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 1YJIVc-0006Yf-Fl; Thu, 05 Feb 2015 09:14:00 +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 1YJIVW-0006Ya-Nq for lng-odp@lists.linaro.org; Thu, 05 Feb 2015 09:13:54 +0000 Received: by mail-lb0-f176.google.com with SMTP id w7so1538968lbi.7 for ; Thu, 05 Feb 2015 01:13:48 -0800 (PST) X-Received: by 10.112.26.110 with SMTP id k14mr2288619lbg.29.1423127628532; Thu, 05 Feb 2015 01:13:48 -0800 (PST) Received: from localhost.localdomain ([80.77.38.170]) by mx.google.com with ESMTPSA id xn1sm839113lbb.27.2015.02.05.01.13.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Feb 2015 01:13:47 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Thu, 5 Feb 2015 11:13:39 +0200 Message-Id: <1423127619-20674-1-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: move compiler hints to a proper place 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.217.173 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 Signed-off-by: Taras Kondratiuk --- 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 a7aa90e..ebf83fc 100644 --- a/include/odp/api/hints.h +++ b/include/odp/api/hints.h @@ -46,6 +46,16 @@ extern "C" { #define ODP_COLD_CODE __attribute__((__cold__)) /** + * 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) @@ -80,6 +90,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. */