[ofw] [PATCH] remove dead code

Sean Hefty sean.hefty at intel.com
Wed Feb 27 15:02:18 PST 2008


Remove some dead code from the tree.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
Patch also attached.  I think this is the correct format for WinOF.

Index: al/user/ual_ci_ca.h
===================================================================
--- al/user/ual_ci_ca.h	(revision 945)
+++ al/user/ual_ci_ca.h	(working copy)
@@ -35,12 +35,7 @@
 
 #include <iba/ib_uvp.h>
 #include "al_common.h"
-/* #include "al_ci_ca.h" */
-/* Dummy function declerations */
-/* The arguments must be defined later */
 
-
-
 ib_api_status_t
 create_ci_ca(
 	IN		ib_al_handle_t						h_al,
@@ -52,15 +47,9 @@
 	IN		const	ib_net64_t					ca_guid,
 	IN	OUT			struct _al_ci_ca* const		p_ci_ca );
 
-#if 0
 ib_api_status_t
 ual_close_ca(
-	IN		ib_ca_handle_t						h_ca);
-#else
-ib_api_status_t
-ual_close_ca(
 	IN		struct _al_ci_ca					*p_ci_ca );
-#endif
 
 ib_api_status_t
 ual_modify_ca(
Index: al/user/ual_dm.h
===================================================================
--- al/user/ual_dm.h	(revision 945)
+++ al/user/ual_dm.h	(working copy)
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2005 SilverStorm Technologies.  All rights reserved.
- * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. 
- *
- * This software is available to you under 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$
- */
-
-#if !defined(__IB_UAL_DM_H__)
-#define __IB_UAL_DM_H__
-
-#endif /* __IB_UAL_DM_H__ */
Index: al/user/ual_mr.h
===================================================================
--- al/user/ual_mr.h	(revision 945)
+++ al/user/ual_mr.h	(working copy)
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2005 SilverStorm Technologies.  All rights reserved.
- * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. 
- *
- * This software is available to you under 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$
- */
-
-#if !defined(__UAL_MR_H__)
-#define __UAL_MR_H__
-
-#endif /* __UAL_MR_H__ */
Index: al/user/ual_mw.h
===================================================================
--- al/user/ual_mw.h	(revision 945)
+++ al/user/ual_mw.h	(working copy)
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2005 SilverStorm Technologies.  All rights reserved.
- * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. 
- *
- * This software is available to you under 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$
- */
-
-#if !defined(__UAL_MW_H__)
-#define __UAL_MW_H__
-
-#endif /* __UAL_MW_H__ */
Index: al/user/ual_query.h
===================================================================
--- al/user/ual_query.h	(revision 945)
+++ al/user/ual_query.h	(working copy)
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2005 SilverStorm Technologies.  All rights reserved.
- * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. 
- *
- * This software is available to you under 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$
- */
-
-#if !defined(__UAL_QUERY_H__)
-#define __UAL_QUERY_H__
-
-#endif /* __UAL_QUERY_H__ */
Index: al/user/ual_res_mgr.h
===================================================================
--- al/user/ual_res_mgr.h	(revision 945)
+++ al/user/ual_res_mgr.h	(working copy)
@@ -33,27 +33,13 @@
 #if !defined(__UAL_RES_MGR_H__)
 #define __UAL_RES_MGR_H__
 
-/* Commented out until we define them */
 /*
-#include "ual_pd.h"
-#include "ual_mr.h"
-#include "ual_mw.h"
-#include "ual_qp.h"
-#include "ual_cq.h"
-#include "ual_av.h"
-#include "ual_mcast.h"
-*/
-
-
-
-/*
  * Global handle to the access layer.  This is used by internal components
  * when calling the external API.  This handle is initialized by the access
  * layer manager.
  */
 extern ib_al_handle_t			gh_al;
 
-
 /*
  *
  *
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-dead-code.patch
Type: application/octet-stream
Size: 7804 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080227/d711bebd/attachment.obj>


More information about the ofw mailing list