From patchwork Tue Jun 17 17:55:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 32087 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BD64820C81 for ; Tue, 17 Jun 2014 17:55:51 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id y20sf44004086ier.5 for ; Tue, 17 Jun 2014 10:55:51 -0700 (PDT) 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:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=icEfV7E1LEpQ3UwRIuZSDloPr0tk1F2gXvU7BmWhlUk=; b=CnD8Sgzel2ne5UrS0D6TP8eWiNcsb5GQGdGXmrXEBMvML4ETtQeX9puh8ZtBjUGNHJ RNou07IMba0JIz6xtgZfJH9heIHwNjrwdy8zjedgQka255HdN/xjVekFSkTO+47GoYvE gSP1eDYPj2nvKRJO1coW0eBldWF/9Z+FZySVUNr/FokDmOKNA3L07lpSDRkjAo0ERtax s5Z78bvL0pzqLF571kwua4SQAp3B0/BJ977RMx6vYLH6Rox7udXwTC6q6XiUy9nS2zAT cDaZXGwABleyfVmw7Ge43TB++IsgcPoLUB3De48vG/JSgrCrO1OYYePmxSgXvegJeclc f2Wg== X-Gm-Message-State: ALoCoQlMtxZWM/iuOLXo/KYAlWzPoPwLbF8Rv8hBxD+/3SHmU741ZeWSdirtHsw7pdSfaMFbz9zi X-Received: by 10.42.86.145 with SMTP id u17mr1402168icl.11.1403027751288; Tue, 17 Jun 2014 10:55:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.10 with SMTP id l10ls568805qga.72.gmail; Tue, 17 Jun 2014 10:55:51 -0700 (PDT) X-Received: by 10.220.183.4 with SMTP id ce4mr1619704vcb.54.1403027751166; Tue, 17 Jun 2014 10:55:51 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id ez8si5756506vdc.81.2014.06.17.10.55.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:55:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db12so7915145veb.35 for ; Tue, 17 Jun 2014 10:55:51 -0700 (PDT) X-Received: by 10.58.198.46 with SMTP id iz14mr1651484vec.53.1403027751057; Tue, 17 Jun 2014 10:55:51 -0700 (PDT) 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.221.54.6 with SMTP id vs6csp227544vcb; Tue, 17 Jun 2014 10:55:50 -0700 (PDT) X-Received: by 10.140.43.100 with SMTP id d91mr36939048qga.11.1403027750662; Tue, 17 Jun 2014 10:55:50 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id b2si17873770qar.16.2014.06.17.10.55.49 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:55:50 -0700 (PDT) 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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WwxaA-0004oU-KD; Tue, 17 Jun 2014 17:54:06 +0000 Received: from mail-la0-f46.google.com ([209.85.215.46]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WwxZx-0004mn-6U for lng-odp@lists.linaro.org; Tue, 17 Jun 2014 17:53:53 +0000 Received: by mail-la0-f46.google.com with SMTP id gl10so4174763lab.19 for ; Tue, 17 Jun 2014 10:55:30 -0700 (PDT) X-Received: by 10.152.5.230 with SMTP id v6mr931224lav.33.1403027730003; Tue, 17 Jun 2014 10:55:30 -0700 (PDT) Received: from localhost.localdomain (176-241-155-136-dynamic.retail.datagroup.ua. [176.241.155.136]) by mx.google.com with ESMTPSA id d3sm11646351lbw.2.2014.06.17.10.55.29 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:55:29 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Tue, 17 Jun 2014 20:55:04 +0300 Message-Id: <1403027720-9738-3-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1403027720-9738-1-git-send-email-taras.kondratiuk@linaro.org> References: <1403027720-9738-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH v2 02/18] include: move force/bitwise into odp_compiler.h 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.128.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 Signed-off-by: Taras Kondratiuk --- include/odp_byteorder.h | 14 -------------- include/odp_compiler.h | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/odp_byteorder.h b/include/odp_byteorder.h index 80f6081..22e5a64 100644 --- a/include/odp_byteorder.h +++ b/include/odp_byteorder.h @@ -48,20 +48,6 @@ extern "C" { #endif -/* for use with type checkers such as sparse */ -#ifdef __CHECKER__ -/** @internal bitwise attribute */ -#define __odp_bitwise __attribute__((bitwise)) -/** @internal force attribute */ -#define __odp_force __attribute__((force)) -#else -/** @internal bitwise attribute */ -#define __odp_bitwise -/** @internal force attribute */ -#define __odp_force -#endif - - typedef uint16_t __odp_bitwise uint16le_t; /**< unsigned 16bit little endian */ typedef uint16_t __odp_bitwise uint16be_t; /**< unsigned 16bit big endian */ diff --git a/include/odp_compiler.h b/include/odp_compiler.h index a4e6e78..5ec0262 100644 --- a/include/odp_compiler.h +++ b/include/odp_compiler.h @@ -35,6 +35,20 @@ extern "C" { #define __odp_builtin_bswap16(u16) __builtin_bswap16(u16) #endif + +/* for use with type checkers such as sparse */ +#ifdef __CHECKER__ +/** @internal bitwise attribute */ +#define __odp_bitwise __attribute__((bitwise)) +/** @internal force attribute */ +#define __odp_force __attribute__((force)) +#else +/** @internal bitwise attribute */ +#define __odp_bitwise +/** @internal force attribute */ +#define __odp_force +#endif + #ifdef __cplusplus } #endif