[openib-general] [PATCH] opensm: remove unused cl_memory_osd.h [was: [PATCH] OpenSM: Use memory routines directly and eliminate cl_mem* routines]
Sasha Khapyorsky
sashak at voltaire.com
Wed May 17 15:50:54 PDT 2006
On 01:02 Thu 18 May , Sasha Khapyorsky wrote:
> On 12:14 Wed 17 May , Hal Rosenstock wrote:
> > OpenSM: Use memory routines directly and eliminate cl_mem* routines
> > as these routines are part of ISO C
> >
> > Signed-off-by: Hal Rosenstock <halr at voltaire.com>
>
> Following Hal's cleanup
And more:
This removes unused cl_memory_osd.h file from complib
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
osm/complib/Makefile.am | 1
osm/include/Makefile.am | 1
osm/include/complib/cl_memory_osd.h | 79 -----------------------------------
3 files changed, 0 insertions(+), 81 deletions(-)
delete mode 100644 osm/include/complib/cl_memory_osd.h
95ce6332a6531ae1c7dab4060bfa5800e1b8f4ec
diff --git a/osm/complib/Makefile.am b/osm/complib/Makefile.am
index ecbd8e2..809a404 100644
--- a/osm/complib/Makefile.am
+++ b/osm/complib/Makefile.am
@@ -51,7 +51,6 @@ libosmcompinclude_HEADERS = $(srcdir)/..
$(srcdir)/../include/complib/cl_map.h \
$(srcdir)/../include/complib/cl_math.h \
$(srcdir)/../include/complib/cl_memory.h \
- $(srcdir)/../include/complib/cl_memory_osd.h \
$(srcdir)/../include/complib/cl_memtrack.h \
$(srcdir)/../include/complib/cl_packoff.h \
$(srcdir)/../include/complib/cl_packon.h \
diff --git a/osm/include/Makefile.am b/osm/include/Makefile.am
index c7054ad..b23b1de 100644
--- a/osm/include/Makefile.am
+++ b/osm/include/Makefile.am
@@ -124,7 +124,6 @@ EXTRA_DIST = \
$(srcdir)/opensm/osm_state_mgr_ctrl.h \
$(srcdir)/complib/cl_thread_osd.h \
$(srcdir)/complib/cl_packon.h \
- $(srcdir)/complib/cl_memory_osd.h \
$(srcdir)/complib/cl_atomic_osd.h \
$(srcdir)/complib/cl_spinlock.h \
$(srcdir)/complib/cl_passivelock.h \
diff --git a/osm/include/complib/cl_memory_osd.h b/osm/include/complib/cl_memory_osd.h
deleted file mode 100644
index 9ef17e0..0000000
--- a/osm/include/complib/cl_memory_osd.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Copyright (c) 2004, 2005 Voltaire, Inc. All rights reserved.
- * Copyright (c) 2002-2005 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
- * licenses. You may choose to be licensed under the terms of the GNU
- * General Public License (GPL) Version 2, available from the file
- * COPYING in the main directory of this source tree, or the
- * OpenIB.org BSD license below:
- *
- * Redistribution and use in source and binary forms, with or
- * without modification, are permitted provided that the following
- * conditions are met:
- *
- * - Redistributions of source code must retain the above
- * copyright notice, this list of conditions and the following
- * disclaimer.
- *
- * - Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials
- * provided with the distribution.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- * $Id$
- */
-
-
-
-/*
- * Abstract:
- * Defines sized datatypes for Linux Kernel and User mode
- * exported sizes are int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t
- * int64_t, uint64_t. uintn_t is a polymorphic type, size is native size and
- * also size of the pointer.
- *
- * Environment:
- * Linux User and Kernel Mode
- *
- * $Revision: 1.2 $
- */
-
-#ifndef _CL_MEMORY_OSD_H_
-#define _CL_MEMORY_OSD_H_
-
-#include <unistd.h>
-
-#ifdef __cplusplus
-# define BEGIN_C_DECLS extern "C" {
-# define END_C_DECLS }
-#else /* !__cplusplus */
-# define BEGIN_C_DECLS
-# define END_C_DECLS
-#endif /* __cplusplus */
-
-BEGIN_C_DECLS
-
-#ifndef __WIN__
-
-static inline uint32_t
-cl_get_pagesize( void )
-{
- return getpagesize();
-}
-
-#endif
-
-END_C_DECLS
-
-#endif /* _CL_MEMORY_OSD_H_ */
--
1.3.2
More information about the general
mailing list