From patchwork Thu Jan 29 22:52:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 43992 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8669324128 for ; Thu, 29 Jan 2015 22:53:01 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id fb4sf16401920wid.3 for ; Thu, 29 Jan 2015 14:53:00 -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=37BXG0WFIzf/OHAUNxL91wnxbstHjVlOJYZO8dmUE/M=; b=ljcmzlQUmjBPKM7MVAZ+hNW96mQ8on0iVrlltewPh+Bd/iEMFT1s7esS0bQyBGEIoi wuasgkuwX9uQZ2byLjXNAPuxajrOS1jj2S5kD7snWWCsWrHJ3UUHIcrsg8/QHZF5afLQ 25fYfTrrc4bh5eD2ICYNvBbs9sv+VrxhS6GjGeD7ZxG4Ifpba7FRYAtqRAbsheR9t3Nc oBBGNtqkm+YgI5F+/gTXjDjuxwZ68QdRc1b04m69uyMDhNt1hogvhKvWnnnmiEMqhrY0 yirZc8uFt5EqVRQ8ipm4+cDoRI9kbs3lPqwgaMpJ40RPY+BySx1WlsFZvqspZgzlEQTo IaRQ== X-Gm-Message-State: ALoCoQnbzEM1GlMmMBlScS1pLpAmuNVK1cy9nfWDdSTIrxcvhJxMIl1FEzBIGOZ5c18Dk9SeIix9 X-Received: by 10.194.204.201 with SMTP id la9mr422549wjc.6.1422571980824; Thu, 29 Jan 2015 14:53:00 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.35 with SMTP id lt3ls357976lac.45.gmail; Thu, 29 Jan 2015 14:53:00 -0800 (PST) X-Received: by 10.152.42.198 with SMTP id q6mr3595489lal.48.1422571980635; Thu, 29 Jan 2015 14:53:00 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id dc1si8713414lad.115.2015.01.29.14.53.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Jan 2015 14:53:00 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by mail-lb0-f177.google.com with SMTP id p9so33476828lbv.8 for ; Thu, 29 Jan 2015 14:53:00 -0800 (PST) X-Received: by 10.152.43.103 with SMTP id v7mr3619727lal.29.1422571980339; Thu, 29 Jan 2015 14:53:00 -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 h5csp95409lbj; Thu, 29 Jan 2015 14:52:59 -0800 (PST) X-Received: by 10.140.84.136 with SMTP id l8mr5899963qgd.86.1422571979065; Thu, 29 Jan 2015 14:52:59 -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 d9si12008606qag.47.2015.01.29.14.52.57 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 29 Jan 2015 14:52:59 -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 1YGxxH-0008L7-By; Thu, 29 Jan 2015 22:52:55 +0000 Received: from mail-qg0-f41.google.com ([209.85.192.41]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YGxx8-0008Kd-B6 for lng-odp@lists.linaro.org; Thu, 29 Jan 2015 22:52:46 +0000 Received: by mail-qg0-f41.google.com with SMTP id q108so35500965qgd.0 for ; Thu, 29 Jan 2015 14:52:41 -0800 (PST) X-Received: by 10.140.94.195 with SMTP id g61mr5891398qge.80.1422571961101; Thu, 29 Jan 2015 14:52:41 -0800 (PST) Received: from mike-desktop.?.holmesfamily.ws ([98.221.136.245]) by mx.google.com with ESMTPSA id q5sm8304624qat.47.2015.01.29.14.52.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jan 2015 14:52:40 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Thu, 29 Jan 2015 17:52:28 -0500 Message-Id: <1422571952-5132-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH 1/5] api: odp_hints: Add ODP_NORETURN 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: mike.holmes@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.177 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 Add the ability to mark a function as never returning to the caller. Signed-off-by: Mike Holmes --- include/odp/api/hints.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/odp/api/hints.h b/include/odp/api/hints.h index 7f04886..a7aa90e 100644 --- a/include/odp/api/hints.h +++ b/include/odp/api/hints.h @@ -25,6 +25,10 @@ extern "C" { #ifdef __GNUC__ +/** Define a fn that does not return + */ +#define ODP_NORETURN __attribute__((__noreturn__)) + /** Define a weak symbol * This is primarily useful in defining library functions that can be * overridden in user code.