From patchwork Tue Mar 25 16:55:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 27073 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 05DEC20539 for ; Tue, 25 Mar 2014 16:58:48 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id n16sf2893414oag.1 for ; Tue, 25 Mar 2014 09:58:48 -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:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=im+8+dVZhSwcvh6aFwnZ/1IEZvgndWKz/VhP8vWOTjA=; b=Rp0Y8Cm0vRsgk5PcXindAQYD0xwLfokqD4WHxg0DLim50Z6Du3oERoQ7jcJcEG5NnI 6830UHqoFWGutdJo57VaFRPsvscnRDXiIYuQAjnJKEeePa/nBV4L0seBSu+nxHWxNbN8 JHDQGRldZ5R69Xw7v9Zan1ZPJPi2QEK4IT/aS7xqKzFcPHs/Po9Hrm/xc8ZM11s5qdur +BnLeoFG09XfV4fBdsRn4SQCtD8A4XKL+60LFWFl2V0lcwFI7PzQqTZCVllXXSkLdG5L MkoWHw+88rhLKdMqboJ+9iFcqD+BeklZUgZytUZxakdTzNDoIhSPEP+BFVlJCKAnzIZD q6Tw== X-Gm-Message-State: ALoCoQmjsM1ztM4CQYQws1uoZKtSw/biBEOpAuE+TC7ZM29J9hhQ6RmKL5RK1Rfd1mRWwci18IMz X-Received: by 10.182.216.200 with SMTP id os8mr27758599obc.0.1395766728589; Tue, 25 Mar 2014 09:58:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.166 with SMTP id q35ls288163qga.89.gmail; Tue, 25 Mar 2014 09:58:48 -0700 (PDT) X-Received: by 10.52.180.98 with SMTP id dn2mr406404vdc.58.1395766728512; Tue, 25 Mar 2014 09:58:48 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id v2si3867063vet.88.2014.03.25.09.58.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:58:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hu19so942788vcb.1 for ; Tue, 25 Mar 2014 09:58:48 -0700 (PDT) X-Received: by 10.52.12.36 with SMTP id v4mr49093896vdb.20.1395766728441; Tue, 25 Mar 2014 09:58:48 -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.220.78.9 with SMTP id i9csp320435vck; Tue, 25 Mar 2014 09:58:46 -0700 (PDT) X-Received: by 10.42.203.202 with SMTP id fj10mr8369848icb.51.1395766726556; Tue, 25 Mar 2014 09:58:46 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id qd8si28325950igc.28.2014.03.25.09.58.46 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:58:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUem-0000xv-W4; Tue, 25 Mar 2014 16:56:57 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUeg-0000kF-Fs for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 16:56:50 +0000 Received: from [85.158.143.35:7337] by server-1.bemta-4.messagelabs.com id 07/CF-09853-155B1335; Tue, 25 Mar 2014 16:56:49 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-12.tower-21.messagelabs.com!1395766608!4624861!1 X-Originating-IP: [74.125.83.46] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 26874 invoked from network); 25 Mar 2014 16:56:49 -0000 Received: from mail-ee0-f46.google.com (HELO mail-ee0-f46.google.com) (74.125.83.46) by server-12.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 25 Mar 2014 16:56:49 -0000 Received: by mail-ee0-f46.google.com with SMTP id t10so685561eei.33 for ; Tue, 25 Mar 2014 09:56:48 -0700 (PDT) X-Received: by 10.15.51.1 with SMTP id m1mr70790970eew.25.1395766608804; Tue, 25 Mar 2014 09:56:48 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id h47sm33377501eey.13.2014.03.25.09.56.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 09:56:48 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 25 Mar 2014 16:55:36 +0000 Message-Id: <1395766541-23979-30-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Daniel De Graaf , Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH 29/34] xen/xsm: flask: ss: remove unused function determine_oocontext X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 List-Archive: This function is not used neither exported. Signed-off-by: Julien Grall Cc: Daniel De Graaf Acked-by: Daniel De Graaf --- xen/xsm/flask/ss/services.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/xen/xsm/flask/ss/services.c b/xen/xsm/flask/ss/services.c index 59234ff..f0e459a 100644 --- a/xen/xsm/flask/ss/services.c +++ b/xen/xsm/flask/ss/services.c @@ -2035,20 +2035,6 @@ out: return rc; } -int determine_ocontext( char *ocontext ) -{ - if ( strcmp(ocontext, "pirq") == 0 ) - return OCON_PIRQ; - else if ( strcmp(ocontext, "ioport") == 0 ) - return OCON_IOPORT; - else if ( strcmp(ocontext, "iomem") == 0 ) - return OCON_IOMEM; - else if ( strcmp(ocontext, "pcidevice") == 0 ) - return OCON_DEVICE; - else - return -1; -} - int security_ocontext_add( u32 ocon, unsigned long low, unsigned long high ,u32 sid ) {