From patchwork Thu Feb 4 14:13:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 76988 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o14EDGJf023300 for ; Thu, 4 Feb 2010 14:13:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932277Ab0BDONQ (ORCPT ); Thu, 4 Feb 2010 09:13:16 -0500 Received: from mail-vw0-f46.google.com ([209.85.212.46]:50923 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932088Ab0BDONP (ORCPT ); Thu, 4 Feb 2010 09:13:15 -0500 Received: by vws20 with SMTP id 20so909177vws.19 for ; Thu, 04 Feb 2010 06:13:14 -0800 (PST) Received: by 10.220.80.83 with SMTP id s19mr1529475vck.99.1265292789465; Thu, 04 Feb 2010 06:13:09 -0800 (PST) Received: from ?10.4.1.29? ([62.219.166.71]) by mx.google.com with ESMTPS id 39sm1298934vws.14.2010.02.04.06.13.06 (version=SSLv3 cipher=RC4-MD5); Thu, 04 Feb 2010 06:13:08 -0800 (PST) Message-ID: <4B6AD5F0.5000207@dev.mellanox.co.il> Date: Thu, 04 Feb 2010 16:13:04 +0200 From: Yevgeny Kliteynik User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky CC: Linux RDMA Subject: [PATCH] opensm/complib/cl_types.h: convert cl_status_t to int Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 04 Feb 2010 14:13:16 +0000 (UTC) diff --git a/opensm/include/complib/cl_types.h b/opensm/include/complib/cl_types.h index 17e0df8..a773e51 100644 --- a/opensm/include/complib/cl_types.h +++ b/opensm/include/complib/cl_types.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved. - * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved. + * Copyright (c) 2002-2010 Mellanox Technologies LTD. All rights reserved. * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. * * This software is available to you under a choice of one of two @@ -263,31 +263,30 @@ typedef uint64_t net64_t; * * SYNOPSIS */ -typedef enum _cl_status { - CL_SUCCESS = 0, - CL_ERROR, - CL_INVALID_STATE, - CL_INVALID_OPERATION, - CL_INVALID_SETTING, - CL_INVALID_PARAMETER, - CL_INSUFFICIENT_RESOURCES, - CL_INSUFFICIENT_MEMORY, - CL_INVALID_PERMISSION, - CL_COMPLETED, - CL_NOT_DONE, - CL_PENDING, - CL_TIMEOUT, - CL_CANCELED, - CL_REJECT, - CL_OVERRUN, - CL_NOT_FOUND, - CL_UNAVAILABLE, - CL_BUSY, - CL_DISCONNECT, - CL_DUPLICATE, +#define CL_SUCCESS 0 +#define CL_ERROR 1 +#define CL_INVALID_STATE 2 +#define CL_INVALID_OPERATION 3 +#define CL_INVALID_SETTING 4 +#define CL_INVALID_PARAMETER 5 +#define CL_INSUFFICIENT_RESOURCES 6 +#define CL_INSUFFICIENT_MEMORY 7 +#define CL_INVALID_PERMISSION 8 +#define CL_COMPLETED 9 +#define CL_NOT_DONE 10 +#define CL_PENDING 11 +#define CL_TIMEOUT 12 +#define CL_CANCELED 13 +#define CL_REJECT 14 +#define CL_OVERRUN 15 +#define CL_NOT_FOUND 16 +#define CL_UNAVAILABLE 17 +#define CL_BUSY 18 +#define CL_DISCONNECT 19 +#define CL_DUPLICATE 20 +#define CL_STATUS_COUNT 21 /* should be the last value */ - CL_STATUS_COUNT /* should be the last value */ -} cl_status_t; +typedef int cl_status_t; /* * SEE ALSO * Data Types, CL_STATUS_MSG