From patchwork Tue Feb 3 11:35:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 44216 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3E38D21513 for ; Tue, 3 Feb 2015 11:36:05 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id s18sf20357103lam.2 for ; Tue, 03 Feb 2015 03:36:04 -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=37BXG0WFIzf/OHAUNxL91wnxbstHjVlOJYZO8dmUE/M=; b=U9giA3QznzB9SHVgvK+7vaJn6z+mGpnZOyx4w920lCU333cMjbPbqGrPQuPSxspMRx OJAiER06mwpvtzTC0+56651rQigyue8WUuJ07qKhTqFoPVODAav47zJaLKp31iaIUoZs KBJ3EjHht/Kq2kt+TlsHCGcSuxoEMtHmW39XYd0q38fx9OmeO3WbVfXFR18EWBAHfaio Rrme4ZimiAyNXcNOztCnJT45ISAQeVTIl0BNmCxjD/t5eMg7hE+GiMuugAIRf/Spezgr Vulj1SOqxK81axcVNCmtSa/UEFYMAmf0PyYE+xwxrmtrL2TSTVpHSlQJVU05ONU5HBcN Cdrw== X-Gm-Message-State: ALoCoQlMrHZlGI3erXmJ0Up/5GVPV3Lpomvc2+mkKAzmLuTUbEg7a3/hx89ei6mWHVENAV/+22yG X-Received: by 10.152.26.74 with SMTP id j10mr3029492lag.10.1422963364224; Tue, 03 Feb 2015 03:36:04 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.97 with SMTP id z1ls731523laz.35.gmail; Tue, 03 Feb 2015 03:36:04 -0800 (PST) X-Received: by 10.112.26.110 with SMTP id k14mr8740955lbg.29.1422963363996; Tue, 03 Feb 2015 03:36:03 -0800 (PST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id jo18si18030921lab.32.2015.02.03.03.36.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Feb 2015 03:36:03 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id hz20so50518882lab.6 for ; Tue, 03 Feb 2015 03:36:03 -0800 (PST) X-Received: by 10.112.98.99 with SMTP id eh3mr23298673lbb.32.1422963363877; Tue, 03 Feb 2015 03:36:03 -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 h5csp1879173lbj; Tue, 3 Feb 2015 03:36:03 -0800 (PST) X-Received: by 10.224.54.67 with SMTP id p3mr51855235qag.96.1422963362382; Tue, 03 Feb 2015 03:36:02 -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 c6si28476925qan.67.2015.02.03.03.36.01 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 03 Feb 2015 03:36:02 -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 1YIblv-0000G6-EG; Tue, 03 Feb 2015 11:35:59 +0000 Received: from mail-qc0-f173.google.com ([209.85.216.173]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIblm-0000F6-9S for lng-odp@lists.linaro.org; Tue, 03 Feb 2015 11:35:50 +0000 Received: by mail-qc0-f173.google.com with SMTP id m20so34542703qcx.4 for ; Tue, 03 Feb 2015 03:35:45 -0800 (PST) X-Received: by 10.140.37.39 with SMTP id q36mr46801525qgq.89.1422963345096; Tue, 03 Feb 2015 03:35:45 -0800 (PST) Received: from mike-desktop.?.holmesfamily.ws ([98.221.136.245]) by mx.google.com with ESMTPSA id e88sm20973034qgf.22.2015.02.03.03.35.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Feb 2015 03:35:44 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Tue, 3 Feb 2015 06:35:24 -0500 Message-Id: <1422963328-31760-2-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1422963328-31760-1-git-send-email-mike.holmes@linaro.org> References: <1422963328-31760-1-git-send-email-mike.holmes@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH v2 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.215.47 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.