From patchwork Tue Feb 24 10:27:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 44927 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6966020502 for ; Tue, 24 Feb 2015 10:28:23 +0000 (UTC) Received: by lbvp9 with SMTP id p9sf16204699lbv.1 for ; Tue, 24 Feb 2015 02:28:22 -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=JZn/1kDKTGqcU7wL2GX4OZkvdu8MVh1jhjMhSO65HOc=; b=f3rlJq88FopYKSfUdbxW3vTe/coxtgBHDg6oF/f8AA4lUAMIAJO/zrhvNSfMnHAND0 embl7KkidS0Q/IePjA0JEXQ7GEBFOVQr36mfhb7FNbmAFdNNMCi5tUtgygncY2/T4Yw1 u3CeXpPeEBK/V2eS83iPz+6NgvnAXur0khDsXpCICnJEt8wLROnAMtqUiGfn2j+QhjIv ulQHVrSCRt7x7ykcy9j6sra85tQlOYAKbfobhuk+4jOylbUqSr2UkpEJ5x/8zbKvwyPX sByh3CNpmfaPQCBQF0ME1tJWQ76tk+VrbvBWgEvfqTj4CLu6MKWVDbEqCfBecXCgxBum zSkw== X-Gm-Message-State: ALoCoQlqvKi4WyzQpvPKh8ZoZHJsjjDKRaySs7PdAIqJqQyDBFrS+Cg21rgYBWKaYj+5bgpEDC9t X-Received: by 10.152.4.229 with SMTP id n5mr2005191lan.1.1424773702323; Tue, 24 Feb 2015 02:28:22 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.72 with SMTP id le8ls546930lac.41.gmail; Tue, 24 Feb 2015 02:28:22 -0800 (PST) X-Received: by 10.112.185.66 with SMTP id fa2mr9826265lbc.117.1424773702186; Tue, 24 Feb 2015 02:28:22 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id m6si25855594lah.141.2015.02.24.02.28.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Feb 2015 02:28:22 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by labgq15 with SMTP id gq15so24843723lab.3 for ; Tue, 24 Feb 2015 02:28:22 -0800 (PST) X-Received: by 10.112.185.66 with SMTP id fa2mr9826255lbc.117.1424773702070; Tue, 24 Feb 2015 02:28:22 -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 h5csp1819877lbj; Tue, 24 Feb 2015 02:28:21 -0800 (PST) X-Received: by 10.140.44.134 with SMTP id g6mr32602349qga.85.1424773700708; Tue, 24 Feb 2015 02:28:20 -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 x9si14717145qam.95.2015.02.24.02.28.19 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 24 Feb 2015 02:28:20 -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 1YQCiv-0005GU-AU; Tue, 24 Feb 2015 10:28:17 +0000 Received: from mail-la0-f46.google.com ([209.85.215.46]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YQCil-00058V-69 for lng-odp@lists.linaro.org; Tue, 24 Feb 2015 10:28:07 +0000 Received: by labhs14 with SMTP id hs14so24697938lab.1 for ; Tue, 24 Feb 2015 02:28:01 -0800 (PST) X-Received: by 10.152.184.39 with SMTP id er7mr13644096lac.116.1424773680970; Tue, 24 Feb 2015 02:28:00 -0800 (PST) Received: from localhost.localdomain ([80.77.38.170]) by mx.google.com with ESMTPSA id w9sm6248291laj.24.2015.02.24.02.27.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Feb 2015 02:28:00 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Tue, 24 Feb 2015 12:27:51 +0200 Message-Id: <1424773673-10840-2-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424773673-10840-1-git-send-email-taras.kondratiuk@linaro.org> References: <1424453231-28250-1-git-send-email-mike.holmes@linaro.org> <1424773673-10840-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 1/3] api: hints: add printf format attribute 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.45 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 The patch triggers checkpatch warning, but the warning is Linux kernel specific and should be ignored. Signed-off-by: Taras Kondratiuk Reviewed-by: Mike Holmes --- include/odp/api/hints.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/odp/api/hints.h b/include/odp/api/hints.h index b7b0609..4211994 100644 --- a/include/odp/api/hints.h +++ b/include/odp/api/hints.h @@ -46,6 +46,11 @@ extern "C" { #define ODP_COLD_CODE __attribute__((__cold__)) /** + * Printf format attribute + */ +#define ODP_PRINTF_FORMAT(x, y) __attribute__((format(printf, (x), (y)))) + +/** * Branch likely taken */ #define odp_likely(x) __builtin_expect((x), 1)