From patchwork Tue Oct 7 16:15:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 38414 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 56524202E7 for ; Tue, 7 Oct 2014 16:17:07 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id ge10sf4299001lab.9 for ; Tue, 07 Oct 2014 09:17:05 -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: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=jVSJaAgkTGvKhC4t2FmY++pibuE95dZ/ifsD0mcpSfA=; b=grshXhEvJkbf+V2kW3doBXQx0ZqUe2vrY8W4Ro6pQfWXtLyiLEGYPSV7BMVS4eKDim 4PkzfoTV0jIbizLhEaaRtAk7xID+k5iMsoI4YR/KTOUMcsQifVm+7MM/sw6ZP0Wci1TP AO9zafR4JW5dbVrdcSjmks0cWNMQmxnPDOC3EPzinMKJ1P0EpDGU5O5TBiAa1JaZIU/B fbf+XGkUkMIUqxU1fLxNWynslSnmf1JAcCZ4YcyGotG6xg3rLeTHITwuGSWipSm30Thb ubjHukWYB7vOcLWN/JEyBOkMDQoIxRNU4LNOfKqKvb+04UvXBtW8D0eQ/9aua5F6wkBm 1zNw== X-Gm-Message-State: ALoCoQlcCsv6RRFmXBTqx4asKQ1i6RnVsEYL2Xy/ASYV2V6mUA2mXMIWBE5R3OZD4y/FjUVjzk4k X-Received: by 10.194.170.167 with SMTP id an7mr669032wjc.4.1412698625721; Tue, 07 Oct 2014 09:17:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.40 with SMTP id 8ls651597laj.65.gmail; Tue, 07 Oct 2014 09:17:05 -0700 (PDT) X-Received: by 10.112.135.137 with SMTP id ps9mr5060199lbb.24.1412698625558; Tue, 07 Oct 2014 09:17:05 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by mx.google.com with ESMTPS id zm10si29310724lbb.125.2014.10.07.09.17.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Oct 2014 09:17:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id z12so6503579lbi.30 for ; Tue, 07 Oct 2014 09:17:05 -0700 (PDT) X-Received: by 10.152.204.231 with SMTP id lb7mr5247324lac.44.1412698625293; Tue, 07 Oct 2014 09:17:05 -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.112.130.169 with SMTP id of9csp377230lbb; Tue, 7 Oct 2014 09:17:04 -0700 (PDT) X-Received: by 10.220.68.77 with SMTP id u13mr2249518vci.75.1412698623951; Tue, 07 Oct 2014 09:17:03 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id q3si10484145vdx.2.2014.10.07.09.17.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 07 Oct 2014 09:17:03 -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-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XbXRe-0008TQ-5x; Tue, 07 Oct 2014 16:17:02 +0000 Received: from mail-yk0-f175.google.com ([209.85.160.175]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XbXRX-0008Sl-SS for lng-odp@lists.linaro.org; Tue, 07 Oct 2014 16:16:55 +0000 Received: by mail-yk0-f175.google.com with SMTP id 19so2982895ykq.20 for ; Tue, 07 Oct 2014 09:16:50 -0700 (PDT) X-Received: by 10.236.80.8 with SMTP id j8mr6674821yhe.130.1412698608454; Tue, 07 Oct 2014 09:16:48 -0700 (PDT) Received: from bala-PowerEdge-T110-II.caveonetworks.com ([111.93.218.67]) by mx.google.com with ESMTPSA id t3sm8676115yhp.19.2014.10.07.09.16.46 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Oct 2014 09:16:48 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Tue, 7 Oct 2014 21:45:30 +0530 Message-Id: <1412698530-2999-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Topics: patch Subject: [lng-odp] [ODP/PATCH 2/2 v1] ODP Macro for unimplemented function 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: bala.manoharan@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.171 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 This patch provides ODP macro for unimplemented function Signed-off-by: Balasubramanian Manoharan --- platform/linux-generic/include/api/odp_debug.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/linux-generic/include/api/odp_debug.h b/platform/linux-generic/include/api/odp_debug.h index 344b0a9..bb67cef 100644 --- a/platform/linux-generic/include/api/odp_debug.h +++ b/platform/linux-generic/include/api/odp_debug.h @@ -82,6 +82,13 @@ do { fprintf(stderr, "%s:%d:%s(): " fmt, __FILE__, \ } while (0) /** + * This macro is used to indicate when a given function is not implemented + */ +#define ODP_UNIMPLEMENTED() \ + fprintf(stderr, "%s:%d:The function %s() is yet to be implemented", \ + __FILE__, __LINE__, __func__); + +/** * Print output to stderr (file, line and function), * then abort. */