From patchwork Fri Nov 7 23:10:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 40451 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0A1B320D85 for ; Fri, 7 Nov 2014 23:11:13 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id n15sf2422789lbi.2 for ; Fri, 07 Nov 2014 15:11:11 -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:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=GrMA44fDgPiYmTdr3sEZOoHyQfHuYyx3lmO6cqNFT1U=; b=NqHY/0xEmtV6TOTdEGhjXlfcXFwu0i1+xwMS+57IhOJJoefsVBAx89DbHQBdAw+qJ7 fN+hcoubzAk5zZkaxmChdxMop6CPrQWPCj1TSQ9jEOKXN8XSpT6NNRBuSvC/A0K6O46e gJDpRR1JWCaknMvkJNLLWGlchGF701kb4dC1F9QCmX/CMEiUvSYpOrvu27OLvlo6XsDh vsK/gCS0CSD7nthnfD3gZ4BU9ZgiRGZl+WnP5c3dip8dAzq7gQgnzw+1uNaLyM76sQSD 1x2Xbm5wNrEuVhuKLH8SoXJ2bmZH1tk7eenxWGLBoPvOmL0xNKiCTm1uaDoKMmys2/PY Isuw== X-Gm-Message-State: ALoCoQmSrjpnubE647b4WoJEfNM7Pz6E+dKYMabvlhapJ+WG/vQ4/isQuWgk3IKi1BCC6hEMqGDj X-Received: by 10.112.38.101 with SMTP id f5mr2470074lbk.7.1415401871950; Fri, 07 Nov 2014 15:11:11 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.170 with SMTP id l10ls221706lah.18.gmail; Fri, 07 Nov 2014 15:11:11 -0800 (PST) X-Received: by 10.112.136.37 with SMTP id px5mr13114386lbb.36.1415401871482; Fri, 07 Nov 2014 15:11:11 -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 p8si16755089lag.62.2014.11.07.15.11.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Nov 2014 15:11:11 -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 mail-la0-f49.google.com with SMTP id ge10so5169570lab.22 for ; Fri, 07 Nov 2014 15:11:11 -0800 (PST) X-Received: by 10.112.201.201 with SMTP id kc9mr6222391lbc.76.1415401871273; Fri, 07 Nov 2014 15:11:11 -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.184.201 with SMTP id ew9csp285755lbc; Fri, 7 Nov 2014 15:11:10 -0800 (PST) X-Received: by 10.140.97.37 with SMTP id l34mr13236936qge.43.1415401869754; Fri, 07 Nov 2014 15:11:09 -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 69si19253293qge.37.2014.11.07.15.11.08 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 07 Nov 2014 15:11:09 -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 1XmsgM-0000cb-UB; Fri, 07 Nov 2014 23:11:06 +0000 Received: from mail-ob0-f176.google.com ([209.85.214.176]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XmsgG-0000TR-Me for lng-odp@lists.linaro.org; Fri, 07 Nov 2014 23:11:00 +0000 Received: by mail-ob0-f176.google.com with SMTP id va2so3332819obc.21 for ; Fri, 07 Nov 2014 15:10:55 -0800 (PST) X-Received: by 10.202.96.2 with SMTP id u2mr5382540oib.23.1415401855318; Fri, 07 Nov 2014 15:10:55 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id i1sm4227045oew.6.2014.11.07.15.10.54 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Nov 2014 15:10:54 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 7 Nov 2014 17:10:47 -0600 Message-Id: <1415401847-6024-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-Topics: patch Subject: [lng-odp] [prefix=PATCH] Add autoconf for --enable-allow-unimplemented (default is no) 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: bill.fischofer@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 Signed-off-by: Bill Fischofer --- configure.ac | 11 +++++++++++ platform/linux-generic/include/odp_debug_internal.h | 11 +++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1c061e9..cca76bb 100644 --- a/configure.ac +++ b/configure.ac @@ -110,6 +110,17 @@ AC_ARG_ENABLE([debug], ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG=$ODP_DEBUG" ########################################################################## +# Enable/disable ODP_ALLOW_UNIMPLEMENTED +########################################################################## +ODP_ALLOW_UNIMPLEMENTED=0 +AC_ARG_ENABLE([allow-unimplemented], + [ --enable-allow-unimplemented Enable/disable allow unimplemented], + [if test "x$enableval" = "xyes"; then + ODP_ALLOW_UNIMPLEMENTED=1 + fi]) +ODP_CFLAGS="$ODP_CFLAGS -DODP_ALLOW_UNIMPLEMENTED=$ODP_ALLOW_UNIMPLEMENTED" + +########################################################################## # Check for pthreads availability ########################################################################## diff --git a/platform/linux-generic/include/odp_debug_internal.h b/platform/linux-generic/include/odp_debug_internal.h index a87552f..b82ead4 100644 --- a/platform/linux-generic/include/odp_debug_internal.h +++ b/platform/linux-generic/include/odp_debug_internal.h @@ -25,8 +25,15 @@ extern "C" { /** * This macro is used to indicate when a given function is not implemented */ -#define ODP_UNIMPLEMENTED(fmt, ...) \ - ODP_LOG(ODP_LOG_UNIMPLEMENTED, fmt, ##__VA_ARGS__) +#if ODP_ALLOW_UNIMPLEMENTED +#define ODP_UNIMPLEMENTED(fmt, ...) \ + ODP_LOG(ODP_LOG_UNIMPLEMENTED, fmt, ##__VA_ARGS__); +#else +#define ODP_UNIMPLEMENTED(fmt, ...) do { \ + ODP_LOG(ODP_LOG_UNIMPLEMENTED, fmt, ##__VA_ARGS__); \ + odp_unimplemented(); \ + } while (0) +#endif #ifdef __cplusplus }